CAM Enhancements for AHCI driver work, import some structures from OpenBSD.
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Jun 2009 18:02:52 +0000 (11:02 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Jun 2009 18:02:52 +0000 (11:02 -0700)
commit0b0362e1910e09f3a814029dfd37d7fcf0dd0e69
tree32eb36d3f95b3c77d40cb53d878a5466bc97d559
parent1ee98ca800ed443edfaa9f6a7900e0cc700aea5a
CAM Enhancements for AHCI driver work, import some structures from OpenBSD.

Add a CAM bit in the ccb to indicate that a polled operation is being
requested.  This is easier for the driver to find then putting it in
the periph structure.

Rename the scsi_read_capacity_data_long structure to
scsi_read_capacity_data_16 to match OpenBSD, and add a
command code for READ_CAPACITY_16 to match OpenBSD and reduce
confusion.  Also add missing fields to scsi_read_capacity_data_16.

Add SCSI_REV_SPC3.  Taken from OpenBSD.

Add a page description structure for UNIT_DEVID (page 0x83), taken from
OpenBSD.

Add unions for SCSI CDB command structures and response fields to improve
code readability.
sys/bus/cam/cam_ccb.h
sys/bus/cam/cam_periph.h
sys/bus/cam/cam_xpt.c
sys/bus/cam/scsi/scsi_all.c
sys/bus/cam/scsi/scsi_all.h
sys/bus/cam/scsi/scsi_da.c