scsi.7 (2010 09)

s
scsi(7) scsi(7)
uint32_t third_pc :1;
uint32_t rsvd2 :2;
uint32_t protect :1;
uint32_t bque :1; /* Obsolete for SPC-4 */
uint32_t encserv :1;
uint32_t vs1 :1;
uint32_t multip :1;
uint32_t mchngr :1; /* Obsolete for SPC-4 */
uint32_t obslt2 :2;
uint32_t addr16 :1;
uint32_t obslt3 :2;
uint32_t wbus16 :1;
uint32_t sync :1;
uint32_t linked :1; /* Obsolete for SPC-4 */
uint32_t obslt4 :1;
uint32_t cmdque :1;
uint32_t vs2 :1;
uint8_t vendor_id[8];
uint8_t product_id[16];
uint8_t rev_num[4];
uint8_t vendor_spec[20];
uint16_t rsvd3 :4;
uint16_t clcking :2;
uint16_t qas :1;
uint16_t ius :1;
uint16_t rsvd4 :8;
vdesc_t vers_desc[8];
uint8_t rsvd6[22];
uint8_t vendor_parm_bytes[32];
} inquiry_5_t;
/* union for SIOC_INQUIRY ioctl */
union inquiry_data {
struct inquiry inq1; /* SCSI-1 inquiry */
inquiry_2_t inq2; /* SCSI-2 inquiry */
inquiry_3_t inq3; /* SCSI-3 inquiry */
inquiry_3_t_new inq3n; /* SCSI-3 (SPC) inquiry */
inquiry_4_t inq4; /* SPC-2 inquiry */
inquiry_5_t inq5; /* SPC-3 and SPC-4 inquiry */
};
/* structure for SIOC_CAPACITY ioctl */
struct capacity {
uint32_t lba;
uint32_t blksz;
};
/* structure for SIOC_STORAGE_CAPACITY ioctl */
typedef struct {
uint64_t lba;
uint32_t blksz;
} storage_capacity_t;
The SIOC_XSENSE ioctl returns detailed information about device status and errors when such infor-
mation is available. Since there have been multiple versions of the SCSI standard for sense (status) data,
multiple versions of the sense data declaration are provided. The SCSI-1 and non-aligned versions are
provided for backward compatibility only. If no new CHECK-CONDITION-caused REQUEST SENSE
command data has been obtained since the last SIOC_XSENSE ioctl call, the
xsense_aligned.error_class and sense_2_aligned.error_code fields will contain the
value zero. Applications which require more accurate REQUEST SENSE data handling should use the
SCSI device-control driver (see scsi_ctl (7)).
HP-UX 11i Version 3: September 2010 5 Hewlett-Packard Company 5