summaryrefslogtreecommitdiff
path: root/extras/scsi_id/scsi_id.h
diff options
context:
space:
mode:
authorEdward Goggin <egoggin@emc.com>2005-09-14 20:23:48 +0200
committerKay Sievers <kay.sievers@suse.de>2005-09-14 20:23:48 +0200
commit50be1401743704419ba52174302b4c1d06b3898b (patch)
tree93852844c79062fa6231cd1480687fdad0b75260 /extras/scsi_id/scsi_id.h
parent85701baede56edd4fba042f98550b8dec1a73127 (diff)
scsi_id: derive a UID for a SCSI-2 not compliant with the page 83
This patch is to enable the use of scsi_id to derive a UID for a SCSI-2 device which is not compliant with the page 83 inquiry reply format for either SPC-2 or SPC-3. In this case, the page 83 reply does not contain a list of Identification descriptors but a single binary encoded hexa-decimal Vendor Specified Identifier. The update is being driven by the need for scsi_id to support older model EMC Symmetrix hardware, that is, models 4, 5, and 6.
Diffstat (limited to 'extras/scsi_id/scsi_id.h')
-rw-r--r--extras/scsi_id/scsi_id.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/extras/scsi_id/scsi_id.h b/extras/scsi_id/scsi_id.h
index 74b449e984..1c9ed969a7 100644
--- a/extras/scsi_id/scsi_id.h
+++ b/extras/scsi_id/scsi_id.h
@@ -53,3 +53,13 @@ extern void log_message (int level, const char *format, ...)
#ifndef u8
typedef unsigned char u8;
#endif
+
+/*
+ * Page code values.
+ */
+enum page_code {
+ PAGE_83_PRE_SPC3 = -0x83,
+ PAGE_UNSPECIFIED = 0x00,
+ PAGE_80 = 0x80,
+ PAGE_83 = 0x83,
+};