diff options
author | mav <mav@FreeBSD.org> | 2015-10-05 11:38:51 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-10-05 11:38:51 +0000 |
commit | 25a75171592d227e009cc6b482cb94edc48d20d2 (patch) | |
tree | aa006f1ef9cd1de77a44645644f5db369f4d46fb /sys/cam/scsi | |
parent | 85b5a86dbdd825182ee25aabfb085017635d26a5 (diff) | |
download | FreeBSD-src-25a75171592d227e009cc6b482cb94edc48d20d2.zip FreeBSD-src-25a75171592d227e009cc6b482cb94edc48d20d2.tar.gz |
MFC r288358: Add CD/DVD Capabilities and Mechanical Status Page.
This page is obsolete since MMC-4, but still used by some software.
approved by:
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r-- | sys/cam/scsi/scsi_cd.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_cd.h b/sys/cam/scsi/scsi_cd.h index e141404..cf8baaf 100644 --- a/sys/cam/scsi/scsi_cd.h +++ b/sys/cam/scsi/scsi_cd.h @@ -783,6 +783,37 @@ struct cd_audio_page #define RIGHT_PORT 1 }; +struct scsi_cddvd_capabilities_page_sd { + uint8_t reserved; + uint8_t rotation_control; + uint8_t write_speed_supported[2]; +}; + +struct scsi_cddvd_capabilities_page { + uint8_t page_code; +#define SMS_CDDVD_CAPS_PAGE 0x2a + uint8_t page_length; + uint8_t caps1; + uint8_t caps2; + uint8_t caps3; + uint8_t caps4; + uint8_t caps5; + uint8_t caps6; + uint8_t obsolete[2]; + uint8_t nvol_levels[2]; + uint8_t buffer_size[2]; + uint8_t obsolete2[2]; + uint8_t reserved; + uint8_t digital; + uint8_t obsolete3; + uint8_t copy_management; + uint8_t reserved2; + uint8_t rotation_control; + uint8_t cur_write_speed; + uint8_t num_speed_descr; + struct scsi_cddvd_capabilities_page_sd speed_descr[]; +}; + union cd_pages { struct cd_audio_page audio; |