From 181311508173b9c70205bd14450f104550fe7bac Mon Sep 17 00:00:00 2001 From: njl Date: Fri, 18 Oct 2002 22:03:39 +0000 Subject: * Add CDRIOC{READ,WRITE}SPEED ioctls to cd(4). Units are in KB/sec. * Change atapi-cd ioctls to use the same units. * Change burncd, cdcontrol to convert CDROM speed to KB/sec before calling the ioctl. Add a "max" speed option for their command lines. This change does not break ABI but does change the units passed through the ioctl so 3rd party software that uses cdrio.h will have to convert (most likely by multiplying CDROM speed by 177 to get KB/s). PR: kern/36845 Submitted by: Philipp Mergenthaler (CAM ioctls) Reviewed by: sos, ken MFC after: 1 month --- sys/cam/scsi/scsi_cd.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sys/cam/scsi/scsi_cd.h') diff --git a/sys/cam/scsi/scsi_cd.h b/sys/cam/scsi/scsi_cd.h index fc52119..f242139 100644 --- a/sys/cam/scsi/scsi_cd.h +++ b/sys/cam/scsi/scsi_cd.h @@ -169,6 +169,16 @@ struct scsi_read_cd_capacity u_int8_t control; }; +struct scsi_set_speed +{ + u_int8_t opcode; + u_int8_t byte2; + u_int8_t readspeed[2]; + u_int8_t writespeed[2]; + u_int8_t reserved[5]; + u_int8_t control; +}; + struct scsi_report_key { u_int8_t opcode; @@ -251,6 +261,7 @@ struct scsi_read_dvd_structure #define PLAY_12 0xa5 /* cdrom pause in 'play audio' mode */ #define PLAY_TRACK_REL_BIG 0xa9 /* cdrom play track/index mode */ #define READ_DVD_STRUCTURE 0xad /* read dvd structure */ +#define SET_CD_SPEED 0xbb /* set c/dvd speed */ struct scsi_report_key_data_header { -- cgit v1.1