Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
cdrom.h File Reference
#include <linux/types.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Data Structures

struct  cdrom_msf0
 
union  cdrom_addr
 
struct  cdrom_msf
 
struct  cdrom_ti
 
struct  cdrom_tochdr
 
struct  cdrom_volctrl
 
struct  cdrom_subchnl
 
struct  cdrom_tocentry
 
struct  cdrom_read
 
struct  cdrom_read_audio
 
struct  cdrom_multisession
 
struct  cdrom_mcn
 
struct  cdrom_blk
 
struct  cdrom_generic_command
 
struct  dvd_layer
 
struct  dvd_physical
 
struct  dvd_copyright
 
struct  dvd_disckey
 
struct  dvd_bca
 
struct  dvd_manufact
 
union  dvd_struct
 
struct  dvd_lu_send_agid
 
struct  dvd_host_send_challenge
 
struct  dvd_send_key
 
struct  dvd_lu_send_challenge
 
struct  dvd_lu_send_title_key
 
struct  dvd_lu_send_asf
 
struct  dvd_host_send_rpcstate
 
struct  dvd_lu_send_rpcstate
 
union  dvd_authinfo
 
struct  request_sense
 
struct  mrw_feature_desc
 
struct  rwrt_feature_desc
 
struct  disc_information
 
struct  track_information
 
struct  feature_header
 
struct  mode_page_header
 

Macros

#define EDRIVE_CANT_DO_THIS   EOPNOTSUPP
 
#define CDROMPAUSE   0x5301 /* Pause Audio Operation */
 
#define CDROMRESUME   0x5302 /* Resume paused Audio Operation */
 
#define CDROMPLAYMSF   0x5303 /* Play Audio MSF (struct cdrom_msf) */
 
#define CDROMPLAYTRKIND
 
#define CDROMREADTOCHDR
 
#define CDROMREADTOCENTRY
 
#define CDROMSTOP   0x5307 /* Stop the cdrom drive */
 
#define CDROMSTART   0x5308 /* Start the cdrom drive */
 
#define CDROMEJECT   0x5309 /* Ejects the cdrom media */
 
#define CDROMVOLCTRL
 
#define CDROMSUBCHNL
 
#define CDROMREADMODE2
 
#define CDROMREADMODE1
 
#define CDROMREADAUDIO   0x530e /* (struct cdrom_read_audio) */
 
#define CDROMEJECT_SW   0x530f /* enable(1)/disable(0) auto-ejecting */
 
#define CDROMMULTISESSION
 
#define CDROM_GET_MCN
 
#define CDROM_GET_UPC
 
#define CDROMRESET   0x5312 /* hard-reset the drive */
 
#define CDROMVOLREAD
 
#define CDROMREADRAW
 
#define CDROMREADCOOKED   0x5315 /* read data in cooked mode */
 
#define CDROMSEEK   0x5316 /* seek msf address */
 
#define CDROMPLAYBLK   0x5317 /* (struct cdrom_blk) */
 
#define CDROMREADALL   0x5318 /* read all 2646 bytes */
 
#define CDROMGETSPINDOWN   0x531d
 
#define CDROMSETSPINDOWN   0x531e
 
#define CDROMCLOSETRAY   0x5319 /* pendant of CDROMEJECT */
 
#define CDROM_SET_OPTIONS   0x5320 /* Set behavior options */
 
#define CDROM_CLEAR_OPTIONS   0x5321 /* Clear behavior options */
 
#define CDROM_SELECT_SPEED   0x5322 /* Set the CD-ROM speed */
 
#define CDROM_SELECT_DISC   0x5323 /* Select disc (for juke-boxes) */
 
#define CDROM_MEDIA_CHANGED   0x5325 /* Check is media changed */
 
#define CDROM_DRIVE_STATUS   0x5326 /* Get tray position, etc. */
 
#define CDROM_DISC_STATUS   0x5327 /* Get disc type, etc. */
 
#define CDROM_CHANGER_NSLOTS   0x5328 /* Get number of slots */
 
#define CDROM_LOCKDOOR   0x5329 /* lock or unlock door */
 
#define CDROM_DEBUG   0x5330 /* Turn debug messages on/off */
 
#define CDROM_GET_CAPABILITY   0x5331 /* get capabilities */
 
#define CDROMAUDIOBUFSIZ   0x5382 /* set the audio buffer size */
 
#define DVD_READ_STRUCT   0x5390 /* Read structure */
 
#define DVD_WRITE_STRUCT   0x5391 /* Write structure */
 
#define DVD_AUTH   0x5392 /* Authentication */
 
#define CDROM_SEND_PACKET   0x5393 /* send a packet to the drive */
 
#define CDROM_NEXT_WRITABLE   0x5394 /* get next writable block */
 
#define CDROM_LAST_WRITTEN   0x5395 /* get last block written on disc */
 
#define CDROM_PACKET_SIZE   12
 
#define CGC_DATA_UNKNOWN   0
 
#define CGC_DATA_WRITE   1
 
#define CGC_DATA_READ   2
 
#define CGC_DATA_NONE   3
 
#define CD_MINS   74 /* max. minutes per CD, not really a limit */
 
#define CD_SECS   60 /* seconds per minute */
 
#define CD_FRAMES   75 /* frames per second */
 
#define CD_SYNC_SIZE   12 /* 12 sync bytes per raw data frame */
 
#define CD_MSF_OFFSET   150 /* MSF numbering offset of first frame */
 
#define CD_CHUNK_SIZE   24 /* lowest-level "data bytes piece" */
 
#define CD_NUM_OF_CHUNKS   98 /* chunks per frame */
 
#define CD_FRAMESIZE_SUB   96 /* subchannel data "frame" size */
 
#define CD_HEAD_SIZE   4 /* header (address) bytes per raw data frame */
 
#define CD_SUBHEAD_SIZE   8 /* subheader bytes per raw XA data frame */
 
#define CD_EDC_SIZE   4 /* bytes EDC per most raw data frame types */
 
#define CD_ZERO_SIZE   8 /* bytes zero per yellow book mode 1 frame */
 
#define CD_ECC_SIZE   276 /* bytes ECC per most raw data frame types */
 
#define CD_FRAMESIZE   2048 /* bytes per frame, "cooked" mode */
 
#define CD_FRAMESIZE_RAW   2352 /* bytes per frame, "raw" mode */
 
#define CD_FRAMESIZE_RAWER   2646 /* The maximum possible returned bytes */
 
#define CD_FRAMESIZE_RAW1   (CD_FRAMESIZE_RAW-CD_SYNC_SIZE) /*2340*/
 
#define CD_FRAMESIZE_RAW0   (CD_FRAMESIZE_RAW-CD_SYNC_SIZE-CD_HEAD_SIZE) /*2336*/
 
#define CD_XA_HEAD   (CD_HEAD_SIZE+CD_SUBHEAD_SIZE) /* "before data" part of raw XA frame */
 
#define CD_XA_TAIL   (CD_EDC_SIZE+CD_ECC_SIZE) /* "after data" part of raw XA frame */
 
#define CD_XA_SYNC_HEAD   (CD_SYNC_SIZE+CD_XA_HEAD) /* sync bytes + header of XA frame */
 
#define CDROM_LBA   0x01 /* "logical block": first frame is #0 */
 
#define CDROM_MSF   0x02 /* "minute-second-frame": binary, not bcd here! */
 
#define CDROM_DATA_TRACK   0x04
 
#define CDROM_LEADOUT   0xAA
 
#define CDROM_AUDIO_INVALID   0x00 /* audio status not supported */
 
#define CDROM_AUDIO_PLAY   0x11 /* audio play operation in progress */
 
#define CDROM_AUDIO_PAUSED   0x12 /* audio play operation paused */
 
#define CDROM_AUDIO_COMPLETED   0x13 /* audio play successfully completed */
 
#define CDROM_AUDIO_ERROR   0x14 /* audio play stopped due to error */
 
#define CDROM_AUDIO_NO_STATUS   0x15 /* no current audio status to return */
 
#define CDC_CLOSE_TRAY   0x1 /* caddy systems _can't_ close */
 
#define CDC_OPEN_TRAY   0x2 /* but _can_ eject. */
 
#define CDC_LOCK   0x4 /* disable manual eject */
 
#define CDC_SELECT_SPEED   0x8 /* programmable speed */
 
#define CDC_SELECT_DISC   0x10 /* select disc from juke-box */
 
#define CDC_MULTI_SESSION   0x20 /* read sessions>1 */
 
#define CDC_MCN   0x40 /* Medium Catalog Number */
 
#define CDC_MEDIA_CHANGED   0x80 /* media changed */
 
#define CDC_PLAY_AUDIO   0x100 /* audio functions */
 
#define CDC_RESET   0x200 /* hard reset device */
 
#define CDC_DRIVE_STATUS   0x800 /* driver implements drive status */
 
#define CDC_GENERIC_PACKET   0x1000 /* driver implements generic packets */
 
#define CDC_CD_R   0x2000 /* drive is a CD-R */
 
#define CDC_CD_RW   0x4000 /* drive is a CD-RW */
 
#define CDC_DVD   0x8000 /* drive is a DVD */
 
#define CDC_DVD_R   0x10000 /* drive can write DVD-R */
 
#define CDC_DVD_RAM   0x20000 /* drive can write DVD-RAM */
 
#define CDC_MO_DRIVE   0x40000 /* drive is an MO device */
 
#define CDC_MRW   0x80000 /* drive can read MRW */
 
#define CDC_MRW_W   0x100000 /* drive can write MRW */
 
#define CDC_RAM   0x200000 /* ok to open for WRITE */
 
#define CDS_NO_INFO   0 /* if not implemented */
 
#define CDS_NO_DISC   1
 
#define CDS_TRAY_OPEN   2
 
#define CDS_DRIVE_NOT_READY   3
 
#define CDS_DISC_OK   4
 
#define CDS_AUDIO   100
 
#define CDS_DATA_1   101
 
#define CDS_DATA_2   102
 
#define CDS_XA_2_1   103
 
#define CDS_XA_2_2   104
 
#define CDS_MIXED   105
 
#define CDO_AUTO_CLOSE   0x1 /* close tray on first open() */
 
#define CDO_AUTO_EJECT   0x2 /* open tray on last release() */
 
#define CDO_USE_FFLAGS   0x4 /* use O_NONBLOCK information on open */
 
#define CDO_LOCK   0x8 /* lock tray on open files */
 
#define CDO_CHECK_TYPE   0x10 /* check type on open for data */
 
#define CDSL_NONE   (INT_MAX-1)
 
#define CDSL_CURRENT   INT_MAX
 
#define CD_PART_MAX   64
 
#define CD_PART_MASK   (CD_PART_MAX - 1)
 
#define GPCMD_BLANK   0xa1
 
#define GPCMD_CLOSE_TRACK   0x5b
 
#define GPCMD_FLUSH_CACHE   0x35
 
#define GPCMD_FORMAT_UNIT   0x04
 
#define GPCMD_GET_CONFIGURATION   0x46
 
#define GPCMD_GET_EVENT_STATUS_NOTIFICATION   0x4a
 
#define GPCMD_GET_PERFORMANCE   0xac
 
#define GPCMD_INQUIRY   0x12
 
#define GPCMD_LOAD_UNLOAD   0xa6
 
#define GPCMD_MECHANISM_STATUS   0xbd
 
#define GPCMD_MODE_SELECT_10   0x55
 
#define GPCMD_MODE_SENSE_10   0x5a
 
#define GPCMD_PAUSE_RESUME   0x4b
 
#define GPCMD_PLAY_AUDIO_10   0x45
 
#define GPCMD_PLAY_AUDIO_MSF   0x47
 
#define GPCMD_PLAY_AUDIO_TI   0x48
 
#define GPCMD_PLAY_CD   0xbc
 
#define GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL   0x1e
 
#define GPCMD_READ_10   0x28
 
#define GPCMD_READ_12   0xa8
 
#define GPCMD_READ_BUFFER   0x3c
 
#define GPCMD_READ_BUFFER_CAPACITY   0x5c
 
#define GPCMD_READ_CDVD_CAPACITY   0x25
 
#define GPCMD_READ_CD   0xbe
 
#define GPCMD_READ_CD_MSF   0xb9
 
#define GPCMD_READ_DISC_INFO   0x51
 
#define GPCMD_READ_DVD_STRUCTURE   0xad
 
#define GPCMD_READ_FORMAT_CAPACITIES   0x23
 
#define GPCMD_READ_HEADER   0x44
 
#define GPCMD_READ_TRACK_RZONE_INFO   0x52
 
#define GPCMD_READ_SUBCHANNEL   0x42
 
#define GPCMD_READ_TOC_PMA_ATIP   0x43
 
#define GPCMD_REPAIR_RZONE_TRACK   0x58
 
#define GPCMD_REPORT_KEY   0xa4
 
#define GPCMD_REQUEST_SENSE   0x03
 
#define GPCMD_RESERVE_RZONE_TRACK   0x53
 
#define GPCMD_SEND_CUE_SHEET   0x5d
 
#define GPCMD_SCAN   0xba
 
#define GPCMD_SEEK   0x2b
 
#define GPCMD_SEND_DVD_STRUCTURE   0xbf
 
#define GPCMD_SEND_EVENT   0xa2
 
#define GPCMD_SEND_KEY   0xa3
 
#define GPCMD_SEND_OPC   0x54
 
#define GPCMD_SET_READ_AHEAD   0xa7
 
#define GPCMD_SET_STREAMING   0xb6
 
#define GPCMD_START_STOP_UNIT   0x1b
 
#define GPCMD_STOP_PLAY_SCAN   0x4e
 
#define GPCMD_TEST_UNIT_READY   0x00
 
#define GPCMD_VERIFY_10   0x2f
 
#define GPCMD_WRITE_10   0x2a
 
#define GPCMD_WRITE_12   0xaa
 
#define GPCMD_WRITE_AND_VERIFY_10   0x2e
 
#define GPCMD_WRITE_BUFFER   0x3b
 
#define GPCMD_SET_SPEED   0xbb
 
#define GPCMD_PLAYAUDIO_TI   0x48
 
#define GPCMD_GET_MEDIA_STATUS   0xda
 
#define GPMODE_VENDOR_PAGE   0x00
 
#define GPMODE_R_W_ERROR_PAGE   0x01
 
#define GPMODE_WRITE_PARMS_PAGE   0x05
 
#define GPMODE_WCACHING_PAGE   0x08
 
#define GPMODE_AUDIO_CTL_PAGE   0x0e
 
#define GPMODE_POWER_PAGE   0x1a
 
#define GPMODE_FAULT_FAIL_PAGE   0x1c
 
#define GPMODE_TO_PROTECT_PAGE   0x1d
 
#define GPMODE_CAPABILITIES_PAGE   0x2a
 
#define GPMODE_ALL_PAGES   0x3f
 
#define GPMODE_CDROM_PAGE   0x0d
 
#define DVD_STRUCT_PHYSICAL   0x00
 
#define DVD_STRUCT_COPYRIGHT   0x01
 
#define DVD_STRUCT_DISCKEY   0x02
 
#define DVD_STRUCT_BCA   0x03
 
#define DVD_STRUCT_MANUFACT   0x04
 
#define DVD_LAYERS   4
 
#define DVD_LU_SEND_AGID   0
 
#define DVD_HOST_SEND_CHALLENGE   1
 
#define DVD_LU_SEND_KEY1   2
 
#define DVD_LU_SEND_CHALLENGE   3
 
#define DVD_HOST_SEND_KEY2   4
 
#define DVD_AUTH_ESTABLISHED   5
 
#define DVD_AUTH_FAILURE   6
 
#define DVD_LU_SEND_TITLE_KEY   7
 
#define DVD_LU_SEND_ASF   8
 
#define DVD_INVALIDATE_AGID   9
 
#define DVD_LU_SEND_RPC_STATE   10
 
#define DVD_HOST_SEND_RPC_STATE   11
 
#define DVD_CPM_NO_COPYRIGHT   0
 
#define DVD_CPM_COPYRIGHTED   1
 
#define DVD_CP_SEC_NONE   0
 
#define DVD_CP_SEC_EXIST   1
 
#define DVD_CGMS_UNRESTRICTED   0
 
#define DVD_CGMS_SINGLE   2
 
#define DVD_CGMS_RESTRICTED   3
 
#define CDF_RWRT   0x0020 /* "Random Writable" */
 
#define CDF_HWDM   0x0024 /* "Hardware Defect Management" */
 
#define CDF_MRW   0x0028
 
#define CDM_MRW_NOTMRW   0
 
#define CDM_MRW_BGFORMAT_INACTIVE   1
 
#define CDM_MRW_BGFORMAT_ACTIVE   2
 
#define CDM_MRW_BGFORMAT_COMPLETE   3
 
#define MRW_LBA_DMA   0
 
#define MRW_LBA_GAA   1
 
#define MRW_MODE_PC_PRE1   0x2c
 
#define MRW_MODE_PC   0x03
 

Typedefs

typedef __u8 dvd_key [5]
 
typedef __u8 dvd_challenge [10]
 

Macro Definition Documentation

#define CD_CHUNK_SIZE   24 /* lowest-level "data bytes piece" */

Definition at line 321 of file cdrom.h.

#define CD_ECC_SIZE   276 /* bytes ECC per most raw data frame types */

Definition at line 328 of file cdrom.h.

#define CD_EDC_SIZE   4 /* bytes EDC per most raw data frame types */

Definition at line 326 of file cdrom.h.

#define CD_FRAMES   75 /* frames per second */

Definition at line 318 of file cdrom.h.

#define CD_FRAMESIZE   2048 /* bytes per frame, "cooked" mode */

Definition at line 329 of file cdrom.h.

#define CD_FRAMESIZE_RAW   2352 /* bytes per frame, "raw" mode */

Definition at line 330 of file cdrom.h.

#define CD_FRAMESIZE_RAW0   (CD_FRAMESIZE_RAW-CD_SYNC_SIZE-CD_HEAD_SIZE) /*2336*/

Definition at line 334 of file cdrom.h.

#define CD_FRAMESIZE_RAW1   (CD_FRAMESIZE_RAW-CD_SYNC_SIZE) /*2340*/

Definition at line 333 of file cdrom.h.

#define CD_FRAMESIZE_RAWER   2646 /* The maximum possible returned bytes */

Definition at line 331 of file cdrom.h.

#define CD_FRAMESIZE_SUB   96 /* subchannel data "frame" size */

Definition at line 323 of file cdrom.h.

#define CD_HEAD_SIZE   4 /* header (address) bytes per raw data frame */

Definition at line 324 of file cdrom.h.

#define CD_MINS   74 /* max. minutes per CD, not really a limit */

Definition at line 316 of file cdrom.h.

#define CD_MSF_OFFSET   150 /* MSF numbering offset of first frame */

Definition at line 320 of file cdrom.h.

#define CD_NUM_OF_CHUNKS   98 /* chunks per frame */

Definition at line 322 of file cdrom.h.

#define CD_PART_MASK   (CD_PART_MAX - 1)

Definition at line 414 of file cdrom.h.

#define CD_PART_MAX   64

Definition at line 413 of file cdrom.h.

#define CD_SECS   60 /* seconds per minute */

Definition at line 317 of file cdrom.h.

#define CD_SUBHEAD_SIZE   8 /* subheader bytes per raw XA data frame */

Definition at line 325 of file cdrom.h.

#define CD_SYNC_SIZE   12 /* 12 sync bytes per raw data frame */

Definition at line 319 of file cdrom.h.

#define CD_XA_HEAD   (CD_HEAD_SIZE+CD_SUBHEAD_SIZE) /* "before data" part of raw XA frame */

Definition at line 336 of file cdrom.h.

#define CD_XA_SYNC_HEAD   (CD_SYNC_SIZE+CD_XA_HEAD) /* sync bytes + header of XA frame */

Definition at line 338 of file cdrom.h.

#define CD_XA_TAIL   (CD_EDC_SIZE+CD_ECC_SIZE) /* "after data" part of raw XA frame */

Definition at line 337 of file cdrom.h.

#define CD_ZERO_SIZE   8 /* bytes zero per yellow book mode 1 frame */

Definition at line 327 of file cdrom.h.

#define CDC_CD_R   0x2000 /* drive is a CD-R */

Definition at line 371 of file cdrom.h.

#define CDC_CD_RW   0x4000 /* drive is a CD-RW */

Definition at line 372 of file cdrom.h.

#define CDC_CLOSE_TRAY   0x1 /* caddy systems _can't_ close */

Definition at line 359 of file cdrom.h.

#define CDC_DRIVE_STATUS   0x800 /* driver implements drive status */

Definition at line 369 of file cdrom.h.

#define CDC_DVD   0x8000 /* drive is a DVD */

Definition at line 373 of file cdrom.h.

#define CDC_DVD_R   0x10000 /* drive can write DVD-R */

Definition at line 374 of file cdrom.h.

#define CDC_DVD_RAM   0x20000 /* drive can write DVD-RAM */

Definition at line 375 of file cdrom.h.

#define CDC_GENERIC_PACKET   0x1000 /* driver implements generic packets */

Definition at line 370 of file cdrom.h.

#define CDC_LOCK   0x4 /* disable manual eject */

Definition at line 361 of file cdrom.h.

#define CDC_MCN   0x40 /* Medium Catalog Number */

Definition at line 365 of file cdrom.h.

#define CDC_MEDIA_CHANGED   0x80 /* media changed */

Definition at line 366 of file cdrom.h.

#define CDC_MO_DRIVE   0x40000 /* drive is an MO device */

Definition at line 376 of file cdrom.h.

#define CDC_MRW   0x80000 /* drive can read MRW */

Definition at line 377 of file cdrom.h.

#define CDC_MRW_W   0x100000 /* drive can write MRW */

Definition at line 378 of file cdrom.h.

#define CDC_MULTI_SESSION   0x20 /* read sessions>1 */

Definition at line 364 of file cdrom.h.

#define CDC_OPEN_TRAY   0x2 /* but _can_ eject. */

Definition at line 360 of file cdrom.h.

#define CDC_PLAY_AUDIO   0x100 /* audio functions */

Definition at line 367 of file cdrom.h.

#define CDC_RAM   0x200000 /* ok to open for WRITE */

Definition at line 379 of file cdrom.h.

#define CDC_RESET   0x200 /* hard reset device */

Definition at line 368 of file cdrom.h.

#define CDC_SELECT_DISC   0x10 /* select disc from juke-box */

Definition at line 363 of file cdrom.h.

#define CDC_SELECT_SPEED   0x8 /* programmable speed */

Definition at line 362 of file cdrom.h.

#define CDF_HWDM   0x0024 /* "Hardware Defect Management" */

Definition at line 718 of file cdrom.h.

#define CDF_MRW   0x0028

Definition at line 719 of file cdrom.h.

#define CDF_RWRT   0x0020 /* "Random Writable" */

Definition at line 717 of file cdrom.h.

#define CDM_MRW_BGFORMAT_ACTIVE   2

Definition at line 726 of file cdrom.h.

#define CDM_MRW_BGFORMAT_COMPLETE   3

Definition at line 727 of file cdrom.h.

#define CDM_MRW_BGFORMAT_INACTIVE   1

Definition at line 725 of file cdrom.h.

#define CDM_MRW_NOTMRW   0

Definition at line 724 of file cdrom.h.

#define CDO_AUTO_CLOSE   0x1 /* close tray on first open() */

Definition at line 398 of file cdrom.h.

#define CDO_AUTO_EJECT   0x2 /* open tray on last release() */

Definition at line 399 of file cdrom.h.

#define CDO_CHECK_TYPE   0x10 /* check type on open for data */

Definition at line 402 of file cdrom.h.

#define CDO_LOCK   0x8 /* lock tray on open files */

Definition at line 401 of file cdrom.h.

#define CDO_USE_FFLAGS   0x4 /* use O_NONBLOCK information on open */

Definition at line 400 of file cdrom.h.

#define CDROM_AUDIO_COMPLETED   0x13 /* audio play successfully completed */

Definition at line 354 of file cdrom.h.

#define CDROM_AUDIO_ERROR   0x14 /* audio play stopped due to error */

Definition at line 355 of file cdrom.h.

#define CDROM_AUDIO_INVALID   0x00 /* audio status not supported */

Definition at line 351 of file cdrom.h.

#define CDROM_AUDIO_NO_STATUS   0x15 /* no current audio status to return */

Definition at line 356 of file cdrom.h.

#define CDROM_AUDIO_PAUSED   0x12 /* audio play operation paused */

Definition at line 353 of file cdrom.h.

#define CDROM_AUDIO_PLAY   0x11 /* audio play operation in progress */

Definition at line 352 of file cdrom.h.

#define CDROM_CHANGER_NSLOTS   0x5328 /* Get number of slots */

Definition at line 114 of file cdrom.h.

#define CDROM_CLEAR_OPTIONS   0x5321 /* Clear behavior options */

Definition at line 108 of file cdrom.h.

#define CDROM_DATA_TRACK   0x04

Definition at line 345 of file cdrom.h.

#define CDROM_DEBUG   0x5330 /* Turn debug messages on/off */

Definition at line 116 of file cdrom.h.

#define CDROM_DISC_STATUS   0x5327 /* Get disc type, etc. */

Definition at line 113 of file cdrom.h.

#define CDROM_DRIVE_STATUS   0x5326 /* Get tray position, etc. */

Definition at line 112 of file cdrom.h.

#define CDROM_GET_CAPABILITY   0x5331 /* get capabilities */

Definition at line 117 of file cdrom.h.

#define CDROM_GET_MCN
Value:
0x5311 /* Obtain the "Universal Product Code"
if available (struct cdrom_mcn) */

Definition at line 69 of file cdrom.h.

#define CDROM_GET_UPC
Value:
CDROM_GET_MCN /* This one is deprecated,
but here anyway for compatibility */

Definition at line 70 of file cdrom.h.

#define CDROM_LAST_WRITTEN   0x5395 /* get last block written on disc */

Definition at line 134 of file cdrom.h.

#define CDROM_LBA   0x01 /* "logical block": first frame is #0 */

Definition at line 341 of file cdrom.h.

#define CDROM_LEADOUT   0xAA

Definition at line 348 of file cdrom.h.

#define CDROM_LOCKDOOR   0x5329 /* lock or unlock door */

Definition at line 115 of file cdrom.h.

#define CDROM_MEDIA_CHANGED   0x5325 /* Check is media changed */

Definition at line 111 of file cdrom.h.

#define CDROM_MSF   0x02 /* "minute-second-frame": binary, not bcd here! */

Definition at line 342 of file cdrom.h.

#define CDROM_NEXT_WRITABLE   0x5394 /* get next writable block */

Definition at line 133 of file cdrom.h.

#define CDROM_PACKET_SIZE   12

Definition at line 260 of file cdrom.h.

#define CDROM_SELECT_DISC   0x5323 /* Select disc (for juke-boxes) */

Definition at line 110 of file cdrom.h.

#define CDROM_SELECT_SPEED   0x5322 /* Set the CD-ROM speed */

Definition at line 109 of file cdrom.h.

#define CDROM_SEND_PACKET   0x5393 /* send a packet to the drive */

Definition at line 132 of file cdrom.h.

#define CDROM_SET_OPTIONS   0x5320 /* Set behavior options */

Definition at line 107 of file cdrom.h.

#define CDROMAUDIOBUFSIZ   0x5382 /* set the audio buffer size */

Definition at line 124 of file cdrom.h.

#define CDROMCLOSETRAY   0x5319 /* pendant of CDROMEJECT */

Definition at line 106 of file cdrom.h.

#define CDROMEJECT   0x5309 /* Ejects the cdrom media */

Definition at line 61 of file cdrom.h.

#define CDROMEJECT_SW   0x530f /* enable(1)/disable(0) auto-ejecting */

Definition at line 67 of file cdrom.h.

#define CDROMGETSPINDOWN   0x531d

Definition at line 98 of file cdrom.h.

#define CDROMMULTISESSION
Value:
0x5310 /* Obtain the start-of-last-session
address of multi session disks
(struct cdrom_multisession) */

Definition at line 68 of file cdrom.h.

#define CDROMPAUSE   0x5301 /* Pause Audio Operation */

Definition at line 53 of file cdrom.h.

#define CDROMPLAYBLK   0x5317 /* (struct cdrom_blk) */

Definition at line 84 of file cdrom.h.

#define CDROMPLAYMSF   0x5303 /* Play Audio MSF (struct cdrom_msf) */

Definition at line 55 of file cdrom.h.

#define CDROMPLAYTRKIND
Value:
0x5304 /* Play Audio Track/index
(struct cdrom_ti) */

Definition at line 56 of file cdrom.h.

#define CDROMREADALL   0x5318 /* read all 2646 bytes */

Definition at line 89 of file cdrom.h.

#define CDROMREADAUDIO   0x530e /* (struct cdrom_read_audio) */

Definition at line 66 of file cdrom.h.

#define CDROMREADCOOKED   0x5315 /* read data in cooked mode */

Definition at line 77 of file cdrom.h.

#define CDROMREADMODE1
Value:
0x530d /* Read CDROM mode 1 data (2048 Bytes)
(struct cdrom_read) */

Definition at line 65 of file cdrom.h.

#define CDROMREADMODE2
Value:
0x530c /* Read CDROM mode 2 data (2336 Bytes)
(struct cdrom_read) */

Definition at line 64 of file cdrom.h.

#define CDROMREADRAW
Value:
0x5314 /* read data in raw mode (2352 Bytes)
(struct cdrom_read) */

Definition at line 73 of file cdrom.h.

#define CDROMREADTOCENTRY
Value:
0x5306 /* Read TOC entry
(struct cdrom_tocentry) */

Definition at line 58 of file cdrom.h.

#define CDROMREADTOCHDR
Value:
0x5305 /* Read TOC header
(struct cdrom_tochdr) */

Definition at line 57 of file cdrom.h.

#define CDROMRESET   0x5312 /* hard-reset the drive */

Definition at line 71 of file cdrom.h.

#define CDROMRESUME   0x5302 /* Resume paused Audio Operation */

Definition at line 54 of file cdrom.h.

#define CDROMSEEK   0x5316 /* seek msf address */

Definition at line 78 of file cdrom.h.

#define CDROMSETSPINDOWN   0x531e

Definition at line 99 of file cdrom.h.

#define CDROMSTART   0x5308 /* Start the cdrom drive */

Definition at line 60 of file cdrom.h.

#define CDROMSTOP   0x5307 /* Stop the cdrom drive */

Definition at line 59 of file cdrom.h.

#define CDROMSUBCHNL
Value:
0x530b /* Read subchannel data
(struct cdrom_subchnl) */

Definition at line 63 of file cdrom.h.

#define CDROMVOLCTRL
Value:
0x530a /* Control output volume
(struct cdrom_volctrl) */

Definition at line 62 of file cdrom.h.

#define CDROMVOLREAD
Value:
0x5313 /* Get the drive's volume setting
(struct cdrom_volctrl) */

Definition at line 72 of file cdrom.h.

#define CDS_AUDIO   100

Definition at line 390 of file cdrom.h.

#define CDS_DATA_1   101

Definition at line 391 of file cdrom.h.

#define CDS_DATA_2   102

Definition at line 392 of file cdrom.h.

#define CDS_DISC_OK   4

Definition at line 386 of file cdrom.h.

#define CDS_DRIVE_NOT_READY   3

Definition at line 385 of file cdrom.h.

#define CDS_MIXED   105

Definition at line 395 of file cdrom.h.

#define CDS_NO_DISC   1

Definition at line 383 of file cdrom.h.

#define CDS_NO_INFO   0 /* if not implemented */

Definition at line 382 of file cdrom.h.

#define CDS_TRAY_OPEN   2

Definition at line 384 of file cdrom.h.

#define CDS_XA_2_1   103

Definition at line 393 of file cdrom.h.

#define CDS_XA_2_2   104

Definition at line 394 of file cdrom.h.

#define CDSL_CURRENT   INT_MAX

Definition at line 406 of file cdrom.h.

#define CDSL_NONE   (INT_MAX-1)

Definition at line 405 of file cdrom.h.

#define CGC_DATA_NONE   3

Definition at line 265 of file cdrom.h.

#define CGC_DATA_READ   2

Definition at line 264 of file cdrom.h.

#define CGC_DATA_UNKNOWN   0

Definition at line 262 of file cdrom.h.

#define CGC_DATA_WRITE   1

Definition at line 263 of file cdrom.h.

#define DVD_AUTH   0x5392 /* Authentication */

Definition at line 130 of file cdrom.h.

#define DVD_AUTH_ESTABLISHED   5

Definition at line 589 of file cdrom.h.

#define DVD_AUTH_FAILURE   6

Definition at line 590 of file cdrom.h.

#define DVD_CGMS_RESTRICTED   3

Definition at line 637 of file cdrom.h.

#define DVD_CGMS_SINGLE   2

Definition at line 636 of file cdrom.h.

#define DVD_CGMS_UNRESTRICTED   0

Definition at line 635 of file cdrom.h.

#define DVD_CP_SEC_EXIST   1

Definition at line 633 of file cdrom.h.

#define DVD_CP_SEC_NONE   0

Definition at line 632 of file cdrom.h.

#define DVD_CPM_COPYRIGHTED   1

Definition at line 630 of file cdrom.h.

#define DVD_CPM_NO_COPYRIGHT   0

Definition at line 629 of file cdrom.h.

#define DVD_HOST_SEND_CHALLENGE   1

Definition at line 583 of file cdrom.h.

#define DVD_HOST_SEND_KEY2   4

Definition at line 586 of file cdrom.h.

#define DVD_HOST_SEND_RPC_STATE   11

Definition at line 597 of file cdrom.h.

#define DVD_INVALIDATE_AGID   9

Definition at line 595 of file cdrom.h.

#define DVD_LAYERS   4

Definition at line 529 of file cdrom.h.

#define DVD_LU_SEND_AGID   0

Definition at line 582 of file cdrom.h.

#define DVD_LU_SEND_ASF   8

Definition at line 594 of file cdrom.h.

#define DVD_LU_SEND_CHALLENGE   3

Definition at line 585 of file cdrom.h.

#define DVD_LU_SEND_KEY1   2

Definition at line 584 of file cdrom.h.

#define DVD_LU_SEND_RPC_STATE   10

Definition at line 596 of file cdrom.h.

#define DVD_LU_SEND_TITLE_KEY   7

Definition at line 593 of file cdrom.h.

#define DVD_READ_STRUCT   0x5390 /* Read structure */

Definition at line 128 of file cdrom.h.

#define DVD_STRUCT_BCA   0x03

Definition at line 510 of file cdrom.h.

#define DVD_STRUCT_COPYRIGHT   0x01

Definition at line 508 of file cdrom.h.

#define DVD_STRUCT_DISCKEY   0x02

Definition at line 509 of file cdrom.h.

#define DVD_STRUCT_MANUFACT   0x04

Definition at line 511 of file cdrom.h.

#define DVD_STRUCT_PHYSICAL   0x00

Definition at line 507 of file cdrom.h.

#define DVD_WRITE_STRUCT   0x5391 /* Write structure */

Definition at line 129 of file cdrom.h.

#define EDRIVE_CANT_DO_THIS   EOPNOTSUPP

Definition at line 46 of file cdrom.h.

#define GPCMD_BLANK   0xa1

Definition at line 422 of file cdrom.h.

#define GPCMD_CLOSE_TRACK   0x5b

Definition at line 423 of file cdrom.h.

#define GPCMD_FLUSH_CACHE   0x35

Definition at line 424 of file cdrom.h.

#define GPCMD_FORMAT_UNIT   0x04

Definition at line 425 of file cdrom.h.

#define GPCMD_GET_CONFIGURATION   0x46

Definition at line 426 of file cdrom.h.

#define GPCMD_GET_EVENT_STATUS_NOTIFICATION   0x4a

Definition at line 427 of file cdrom.h.

#define GPCMD_GET_MEDIA_STATUS   0xda

Definition at line 487 of file cdrom.h.

#define GPCMD_GET_PERFORMANCE   0xac

Definition at line 428 of file cdrom.h.

#define GPCMD_INQUIRY   0x12

Definition at line 429 of file cdrom.h.

#define GPCMD_LOAD_UNLOAD   0xa6

Definition at line 430 of file cdrom.h.

#define GPCMD_MECHANISM_STATUS   0xbd

Definition at line 431 of file cdrom.h.

#define GPCMD_MODE_SELECT_10   0x55

Definition at line 432 of file cdrom.h.

#define GPCMD_MODE_SENSE_10   0x5a

Definition at line 433 of file cdrom.h.

#define GPCMD_PAUSE_RESUME   0x4b

Definition at line 434 of file cdrom.h.

#define GPCMD_PLAY_AUDIO_10   0x45

Definition at line 435 of file cdrom.h.

#define GPCMD_PLAY_AUDIO_MSF   0x47

Definition at line 436 of file cdrom.h.

#define GPCMD_PLAY_AUDIO_TI   0x48

Definition at line 437 of file cdrom.h.

#define GPCMD_PLAY_CD   0xbc

Definition at line 438 of file cdrom.h.

#define GPCMD_PLAYAUDIO_TI   0x48

Definition at line 482 of file cdrom.h.

#define GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL   0x1e

Definition at line 439 of file cdrom.h.

#define GPCMD_READ_10   0x28

Definition at line 440 of file cdrom.h.

#define GPCMD_READ_12   0xa8

Definition at line 441 of file cdrom.h.

#define GPCMD_READ_BUFFER   0x3c

Definition at line 442 of file cdrom.h.

#define GPCMD_READ_BUFFER_CAPACITY   0x5c

Definition at line 443 of file cdrom.h.

#define GPCMD_READ_CD   0xbe

Definition at line 445 of file cdrom.h.

#define GPCMD_READ_CD_MSF   0xb9

Definition at line 446 of file cdrom.h.

#define GPCMD_READ_CDVD_CAPACITY   0x25

Definition at line 444 of file cdrom.h.

#define GPCMD_READ_DISC_INFO   0x51

Definition at line 447 of file cdrom.h.

#define GPCMD_READ_DVD_STRUCTURE   0xad

Definition at line 448 of file cdrom.h.

#define GPCMD_READ_FORMAT_CAPACITIES   0x23

Definition at line 449 of file cdrom.h.

#define GPCMD_READ_HEADER   0x44

Definition at line 450 of file cdrom.h.

#define GPCMD_READ_SUBCHANNEL   0x42

Definition at line 452 of file cdrom.h.

#define GPCMD_READ_TOC_PMA_ATIP   0x43

Definition at line 453 of file cdrom.h.

#define GPCMD_READ_TRACK_RZONE_INFO   0x52

Definition at line 451 of file cdrom.h.

#define GPCMD_REPAIR_RZONE_TRACK   0x58

Definition at line 454 of file cdrom.h.

#define GPCMD_REPORT_KEY   0xa4

Definition at line 455 of file cdrom.h.

#define GPCMD_REQUEST_SENSE   0x03

Definition at line 456 of file cdrom.h.

#define GPCMD_RESERVE_RZONE_TRACK   0x53

Definition at line 457 of file cdrom.h.

#define GPCMD_SCAN   0xba

Definition at line 459 of file cdrom.h.

#define GPCMD_SEEK   0x2b

Definition at line 460 of file cdrom.h.

#define GPCMD_SEND_CUE_SHEET   0x5d

Definition at line 458 of file cdrom.h.

#define GPCMD_SEND_DVD_STRUCTURE   0xbf

Definition at line 461 of file cdrom.h.

#define GPCMD_SEND_EVENT   0xa2

Definition at line 462 of file cdrom.h.

#define GPCMD_SEND_KEY   0xa3

Definition at line 463 of file cdrom.h.

#define GPCMD_SEND_OPC   0x54

Definition at line 464 of file cdrom.h.

#define GPCMD_SET_READ_AHEAD   0xa7

Definition at line 465 of file cdrom.h.

#define GPCMD_SET_SPEED   0xbb

Definition at line 479 of file cdrom.h.

#define GPCMD_SET_STREAMING   0xb6

Definition at line 466 of file cdrom.h.

#define GPCMD_START_STOP_UNIT   0x1b

Definition at line 467 of file cdrom.h.

#define GPCMD_STOP_PLAY_SCAN   0x4e

Definition at line 468 of file cdrom.h.

#define GPCMD_TEST_UNIT_READY   0x00

Definition at line 469 of file cdrom.h.

#define GPCMD_VERIFY_10   0x2f

Definition at line 470 of file cdrom.h.

#define GPCMD_WRITE_10   0x2a

Definition at line 471 of file cdrom.h.

#define GPCMD_WRITE_12   0xaa

Definition at line 472 of file cdrom.h.

#define GPCMD_WRITE_AND_VERIFY_10   0x2e

Definition at line 473 of file cdrom.h.

#define GPCMD_WRITE_BUFFER   0x3b

Definition at line 474 of file cdrom.h.

#define GPMODE_ALL_PAGES   0x3f

Definition at line 499 of file cdrom.h.

#define GPMODE_AUDIO_CTL_PAGE   0x0e

Definition at line 494 of file cdrom.h.

#define GPMODE_CAPABILITIES_PAGE   0x2a

Definition at line 498 of file cdrom.h.

#define GPMODE_CDROM_PAGE   0x0d

Definition at line 502 of file cdrom.h.

#define GPMODE_FAULT_FAIL_PAGE   0x1c

Definition at line 496 of file cdrom.h.

#define GPMODE_POWER_PAGE   0x1a

Definition at line 495 of file cdrom.h.

#define GPMODE_R_W_ERROR_PAGE   0x01

Definition at line 491 of file cdrom.h.

#define GPMODE_TO_PROTECT_PAGE   0x1d

Definition at line 497 of file cdrom.h.

#define GPMODE_VENDOR_PAGE   0x00

Definition at line 490 of file cdrom.h.

#define GPMODE_WCACHING_PAGE   0x08

Definition at line 493 of file cdrom.h.

#define GPMODE_WRITE_PARMS_PAGE   0x05

Definition at line 492 of file cdrom.h.

#define MRW_LBA_DMA   0

Definition at line 732 of file cdrom.h.

#define MRW_LBA_GAA   1

Definition at line 733 of file cdrom.h.

#define MRW_MODE_PC   0x03

Definition at line 740 of file cdrom.h.

#define MRW_MODE_PC_PRE1   0x2c

Definition at line 739 of file cdrom.h.

Typedef Documentation

typedef __u8 dvd_challenge[10]

Definition at line 601 of file cdrom.h.

typedef __u8 dvd_key[5]

Definition at line 600 of file cdrom.h.