Lines Matching +full:all +full:- +full:inputs +full:- +full:2

5 - Edward A. Falk <efalk@google.com>
9 This document attempts to describe the ioctl(2) calls supported by
10 the CDROM layer. These are by-and-large implemented (as of Linux 2.6)
28 CDROMREADMODE2 Read CDROM mode 2 data (2336 Bytes)
33 CDROMEJECT_SW enable(1)/disable(0) auto-ejecting
34 CDROMMULTISESSION Obtain the start-of-last-session
40 CDROMRESET hard-reset the drive
47 CDROMPLAYBLK scsi-cd only, (struct cdrom_blk)
48 CDROMREADALL read all 2646 bytes
49 CDROMGETSPINDOWN return 4-bit spindown value
50 CDROMSETSPINDOWN set 4-bit spindown value
54 CDROM_SELECT_SPEED Set the CD-ROM speed
55 CDROM_SELECT_DISC Select disc (for juke-boxes)
79 ------------------------------------------------------------------------------
83 Unless otherwise specified, all ioctl calls return 0 on success
84 and -1 with errno set to an appropriate value on error. (Some
85 ioctls return non-negative data values.)
87 Unless otherwise specified, all ioctl calls return -1 and set
93 Unless otherwise specified, all data structures and constants
96 ------------------------------------------------------------------------------
108 inputs:
117 - ENOSYS cd drive not audio-capable.
129 inputs:
138 - ENOSYS cd drive not audio-capable.
153 inputs:
162 - ENOSYS cd drive not audio-capable.
165 - MSF stands for minutes-seconds-frames
166 - LBA stands for logical block address
167 - Segment is described as start and end times, where each time
184 inputs:
193 - ENOSYS cd drive not audio-capable.
196 - Segment is described as start and end times, where each time
213 inputs:
222 - ENOSYS cd drive not audio-capable.
238 inputs:
247 - ENOSYS cd drive not audio-capable.
248 - EINVAL entry.cdte_format not CDROM_MSF or CDROM_LBA
249 - EINVAL requested track out of bounds
250 - EIO I/O error reading TOC
253 - TOC stands for Table Of Contents
254 - MSF stands for minutes-seconds-frames
255 - LBA stands for logical block address
268 inputs:
277 - ENOSYS cd drive not audio-capable.
280 - Exact interpretation of this ioctl depends on the device,
293 inputs:
302 - ENOSYS cd drive not audio-capable.
305 - Exact interpretation of this ioctl depends on the device,
311 - Ejects the cdrom media
319 inputs:
328 - ENOSYS cd drive not capable of ejecting
329 - EBUSY other processes are accessing drive, or door is locked
332 - See CDROM_LOCKDOOR, below.
346 inputs:
355 - ENOSYS cd drive not capable of closing the tray
356 - EBUSY other processes are accessing drive, or door is locked
359 - See CDROM_LOCKDOOR, below.
374 inputs:
383 - ENOSYS cd drive not audio-capable.
399 inputs:
408 - ENOSYS cd drive not audio-capable.
424 inputs:
433 - ENOSYS cd drive not audio-capable.
434 - EINVAL format not CDROM_MSF or CDROM_LBA
437 - Format is converted to CDROM_MSF or CDROM_LBA
456 inputs:
466 - EINVAL address less than 0, or msf less than 0:2:0
467 - ENOMEM out of memory
470 - As of 2.6.8.1, comments in <linux/cdrom.h> indicate that this
475 - MSF values are converted to LBA values via this formula::
477 lba = (((m * CD_SECS) + s) * CD_FRAMES + f) - CD_MSF_OFFSET;
494 Read CDROM mode 2 data (2336 Bytes)
513 inputs:
522 - EINVAL format not CDROM_MSF or CDROM_LBA
523 - EINVAL nframes not in range [1 75]
524 - ENXIO drive has no queue (probably means invalid fd)
525 - ENOMEM out of memory
529 enable(1)/disable(0) auto-ejecting
538 inputs:
539 Flag specifying auto-eject flag.
547 - ENOSYS Drive is not capable of ejecting.
548 - EBUSY Door is locked
554 Obtain the start-of-last-session address of multi session disks
564 inputs:
574 - EINVAL format not CDROM_MSF or CDROM_LBA
590 inputs:
599 - ENOSYS Drive is not capable of reading MCN data.
602 - Source code comments state::
608 across all discs!
622 hard-reset the drive
630 inputs:
639 - EACCES Access denied: requires CAP_SYS_ADMIN
640 - ENOSYS Drive is not capable of resetting.
655 inputs:
664 Not implemented on all drives.
671 read all 2646 bytes
688 inputs:
699 scsi-cd only
710 inputs:
721 Obsolete, was ide-cd only
730 inputs:
735 The value of the current 4-bit spindown value.
742 Obsolete, was ide-cd only
751 inputs:
752 4-bit value used to control spindown (TODO: more detail here)
773 inputs:
777 CDO_AUTO_CLOSE close tray on first open(2)
786 ioctl return value. Returns -1 on error.
789 - ENOSYS selected option(s) not supported by drive.
804 Set the CD-ROM speed
813 inputs:
822 - ENOSYS speed selection not supported by drive.
827 Select disc (for juke-boxes)
836 inputs:
845 - EINVAL Disk number beyond capacity of drive
859 inputs:
867 has been changed, or -1 on error.
870 - ENOSYS Drive can't detect media change
871 - EINVAL Slot number beyond capacity of drive
872 - ENOMEM Out of memory
886 inputs:
902 -1 error
906 - ENOSYS Drive can't detect drive status
907 - EINVAL Slot number beyond capacity of drive
908 - ENOMEM Out of memory
922 inputs:
931 - CDS_NO_INFO
932 - CDS_AUDIO
933 - CDS_MIXED
934 - CDS_XA_2_2
935 - CDS_XA_2_1
936 - CDS_DATA_1
942 - Source code comments state::
947 assumption that CDs are all CDS_DATA_1 or all CDS_AUDIO, etc.
957 to use bitmasks... -Erik
959 Well, now we have the option CDS_MIXED: a mixed-type CD.
962 ---david
976 inputs:
982 CD changer. Typically 1 for non-multi-disk devices.
999 inputs:
1008 - EDRIVE_CANT_DO_THIS
1011 - EBUSY
1018 all CD drives will be locked or unlocked together. This is
1036 inputs:
1045 - EACCES Access denied: requires CAP_SYS_ADMIN
1058 inputs:
1078 inputs:
1083 The ioctl return value is the new audio buffer size, or -1
1087 - ENOSYS Not supported by this driver.
1090 Not supported by all drivers.
1103 inputs:
1128 - EINVAL physical.layer_num exceeds number of layers
1129 - EIO Received invalid response from drive
1147 inputs:
1156 - ENOTTY ai.type not recognized.
1170 inputs:
1180 - EIO
1183 - EPERM
1187 is opened read-only, or because the command
1189 - EINVAL
1205 inputs:
1230 inputs: