summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/nscsi_bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/nscsi_bus.h')
-rw-r--r--src/devices/machine/nscsi_bus.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/devices/machine/nscsi_bus.h b/src/devices/machine/nscsi_bus.h
index fc724984e56..af975050868 100644
--- a/src/devices/machine/nscsi_bus.h
+++ b/src/devices/machine/nscsi_bus.h
@@ -119,6 +119,30 @@ protected:
SS_QUEUE_FULL = 0x28
};
+ // SCSI sense keys
+ enum {
+ SK_NO_SENSE = 0x00,
+ SK_RECOVERED_ERROR = 0x01,
+ SK_NOT_READY = 0x02,
+ SK_MEDIUM_ERROR = 0x03,
+ SK_HARDWARE_ERROR = 0x04,
+ SK_ILLEGAL_REQUEST = 0x05,
+ SK_UNIT_ATTENTION = 0x06,
+ SK_DATA_PROTECT = 0x07,
+ SK_BLANK_CHECK = 0x08,
+ SK_VENDOR_SPECIFIC = 0x09,
+ SK_COPY_ABORTED = 0x0a,
+ SK_ABORTED_COMMAND = 0x0b,
+ SK_VOLUME_OVERFLOW = 0x0d,
+ SK_MISCOMPARE = 0x0e,
+ SK_COMPLETED = 0x0f
+ };
+
+ // SCSI addtional sense code qualifiers
+ enum {
+ SK_ASC_MEDIUM_NOT_PRESENT = 0x3a
+ };
+
// SCSI commands
static const char *const command_names[256];
enum {