
Go to the source code of this file.
Data Structures | |
| struct | scsi_inquiry_data |
| SCSI Standard Inquiry data structure. More... | |
| struct | scsi_mode_param_header6 |
| SCSI Mode Parameter Header used by MODE SELECT(6) and MODE SENSE(6). More... | |
| struct | scsi_mode_param_header10 |
| SCSI Mode Parameter Header used by MODE SELECT(10) and MODE SENSE(10). More... | |
| struct | scsi_mode_page_0_header |
| SCSI Page_0 Mode Page header (SPF not set). More... | |
Defines | |
| #define | SCSI_INQ_REQ_EVPD 0x01 |
| Enable Vital Product Data. | |
| #define | SCSI_INQ_PQ_CONNECTED 0x00 |
| Peripheral connected. | |
| #define | SCSI_INQ_PQ_NOT_CONN 0x20 |
| Peripheral not connected. | |
| #define | SCSI_INQ_PQ_NOT_SUPP 0x60 |
| Peripheral not supported. | |
| #define | SCSI_INQ_DT_DIR_ACCESS 0x00 |
| Direct Access. | |
| #define | SCSI_INQ_DT_SEQ_ACCESS 0x01 |
| Sequential Access. | |
| #define | SCSI_INQ_DT_PRINTER 0x02 |
| Printer. | |
| #define | SCSI_INQ_DT_PROCESSOR 0x03 |
| Processor device. | |
| #define | SCSI_INQ_DT_WRITE_ONCE 0x04 |
| Write-once device. | |
| #define | SCSI_INQ_DT_CD_DVD 0x05 |
| CD/DVD device. | |
| #define | SCSI_INQ_DT_OPTICAL 0x07 |
| Optical Memory. | |
| #define | SCSI_INQ_DT_MC 0x08 |
| Medium Changer. | |
| #define | SCSI_INQ_DT_ARRAY 0x0c |
| Storage Array Controller. | |
| #define | SCSI_INQ_DT_ENCLOSURE 0x0d |
| Enclosure Services. | |
| #define | SCSI_INQ_DT_RBC 0x0e |
| Simplified Direct Access. | |
| #define | SCSI_INQ_DT_OCRW 0x0f |
| Optical card reader/writer. | |
| #define | SCSI_INQ_DT_BCC 0x10 |
| Bridge Controller Commands. | |
| #define | SCSI_INQ_DT_OSD 0x11 |
| Object-based Storage. | |
| #define | SCSI_INQ_DT_NONE 0x1f |
| No Peripheral. | |
| #define | SCSI_INQ_RMB 0x80 |
| Removable Medium. | |
| #define | SCSI_INQ_VER_NONE 0x00 |
| No standards conformance. | |
| #define | SCSI_INQ_VER_SPC 0x03 |
| SCSI Primary Commands. | |
| #define | SCSI_INQ_VER_SPC2 0x04 |
| SCSI Primary Commands - 2. | |
| #define | SCSI_INQ_VER_SPC3 0x05 |
| SCSI Primary Commands - 3. | |
| #define | SCSI_INQ_NORMACA 0x20 |
| Normal ACA Supported. | |
| #define | SCSI_INQ_HISUP 0x10 |
| Hierarchial LUN addressing. | |
| #define | SCSI_INQ_RSP_SPC2 0x02 |
| SPC-2 / SPC-3 response format. | |
| #define | SCSI_INQ_ADDL_LEN(tot) ((tot) - 5) |
| Total length is tot. | |
| #define | SCSI_PAGE_CODE_PS (1 << 7) |
| Parameters Saveable. | |
| #define | SCSI_PAGE_CODE_SPF (1 << 6) |
| SubPage Format. | |
Variables | |
| struct scsi_inquiry_data | __packed |
| SCSI Standard Inquiry data structure. | |
This file contains definitions of some of the commands found in the SPC-2 standard.
Definition in file spc_protocol.h.
| #define SCSI_INQ_ADDL_LEN | ( | tot | ) | ((tot) - 5) |
| #define SCSI_INQ_DT_ARRAY 0x0c |
| #define SCSI_INQ_DT_BCC 0x10 |
| #define SCSI_INQ_DT_CD_DVD 0x05 |
| #define SCSI_INQ_DT_DIR_ACCESS 0x00 |
| #define SCSI_INQ_DT_ENCLOSURE 0x0d |
| #define SCSI_INQ_DT_MC 0x08 |
| #define SCSI_INQ_DT_NONE 0x1f |
| #define SCSI_INQ_DT_OCRW 0x0f |
| #define SCSI_INQ_DT_OPTICAL 0x07 |
| #define SCSI_INQ_DT_OSD 0x11 |
| #define SCSI_INQ_DT_PRINTER 0x02 |
| #define SCSI_INQ_DT_PROCESSOR 0x03 |
| #define SCSI_INQ_DT_RBC 0x0e |
| #define SCSI_INQ_DT_SEQ_ACCESS 0x01 |
| #define SCSI_INQ_DT_WRITE_ONCE 0x04 |
| #define SCSI_INQ_HISUP 0x10 |
| #define SCSI_INQ_NORMACA 0x20 |
| #define SCSI_INQ_PQ_CONNECTED 0x00 |
| #define SCSI_INQ_PQ_NOT_CONN 0x20 |
| #define SCSI_INQ_PQ_NOT_SUPP 0x60 |
| #define SCSI_INQ_REQ_EVPD 0x01 |
| #define SCSI_INQ_RMB 0x80 |
| #define SCSI_INQ_RSP_SPC2 0x02 |
| #define SCSI_INQ_VER_NONE 0x00 |
| #define SCSI_INQ_VER_SPC 0x03 |
| #define SCSI_INQ_VER_SPC2 0x04 |
| #define SCSI_INQ_VER_SPC3 0x05 |
| #define SCSI_PAGE_CODE_PS (1 << 7) |
| #define SCSI_PAGE_CODE_SPF (1 << 6) |
| struct scsi_inquiry_data __packed |
SCSI Standard Inquiry data structure.
1.5.8