Revision 7f777bf3 hw/ide.c
b/hw/ide.c | ||
---|---|---|
299 | 299 |
#define ATAPI_INT_REASON_TAG 0xf8 |
300 | 300 |
|
301 | 301 |
/* same constants as bochs */ |
302 |
#define ASC_ILLEGAL_OPCODE 0x20 |
|
302 | 303 |
#define ASC_LOGICAL_BLOCK_OOR 0x21 |
303 | 304 |
#define ASC_INV_FIELD_IN_CMD_PACKET 0x24 |
304 | 305 |
#define ASC_MEDIUM_NOT_PRESENT 0x3a |
... | ... | |
1009 | 1010 |
ide_atapi_cmd_reply(s, 12, max_len); |
1010 | 1011 |
break; |
1011 | 1012 |
default: |
1012 |
goto error_cmd; |
|
1013 |
error_cmd: |
|
1014 |
ide_atapi_cmd_error(s, SENSE_ILLEGAL_REQUEST, |
|
1015 |
ASC_INV_FIELD_IN_CMD_PACKET); |
|
1016 |
break; |
|
1013 | 1017 |
} |
1014 | 1018 |
} |
1015 | 1019 |
break; |
... | ... | |
1040 | 1044 |
ide_atapi_cmd_reply(s, 36, max_len); |
1041 | 1045 |
break; |
1042 | 1046 |
default: |
1043 |
error_cmd: |
|
1044 | 1047 |
ide_atapi_cmd_error(s, SENSE_ILLEGAL_REQUEST, |
1045 |
ASC_INV_FIELD_IN_CMD_PACKET);
|
|
1048 |
ASC_ILLEGAL_OPCODE);
|
|
1046 | 1049 |
break; |
1047 | 1050 |
} |
1048 | 1051 |
} |
Also available in: Unified diff