scsi.7 (2010 09)

s
scsi(7) scsi(7)
/* SCSI-2 inquiry structure */
struct inquiry_2 {
unsigned int periph_qualifier:3;
unsigned int dev_type :5;
unsigned int rmb :1;
unsigned int dtq :7;
unsigned int iso :2;
unsigned int ecma :3;
unsigned int ansi :3;
unsigned int aenc :1;
unsigned int trmiop :1;
unsigned int resv1 :2;
unsigned int rdf :4;
unsigned char added_len;
unsigned char resv2[2];
unsigned int reladr :1;
unsigned int wbus32 :1;
unsigned int wbus16 :1;
unsigned int sync :1;
unsigned int linked :1;
unsigned int resv3 :1;
unsigned int cmdque :1;
unsigned int sftre :1;
char vendor_id[8];
char product_id[16];
char rev_num[4];
unsigned char vendor_spec[20];
unsigned char resv4[40];
unsigned char vendor_parm_bytes[32];
} inquiry_2_t;
/* Definition for version description in SPC-2, SPC-3, and SPC-4 inquiry */
typedef uint8_t vdesc_t[2];
/* SCSI-3 inquiry structure */
/*
* Note that this stucture does not match the SCSI-3 (SPC) spec. Structures
* have been added below for SPC, SPC-2, SPC-3, and SPC-4. This structure is
* kept here for binary compatibility.
*/
typedef struct inquiry_3 {
uint32_t pq :3;
uint32_t pdt :5;
uint32_t rmb :1;
uint32_t rsvd1 :7;
uint32_t version :8;
uint32_t aerc :1;
uint32_t obslt1 :1;
uint32_t naca :1;
uint32_t hisup :1;
uint32_t rdf :4;
uint32_t added_len :8;
uint32_t sccs :1;
uint32_t rsvd2 :7;
uint32_t bque :1;
uint32_t encserv :1;
uint32_t vs1 :1;
uint32_t multip :1;
uint32_t mchngr :1;
uint32_t obslt2 :1;
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010