Go to the documentation of this file.
11 #include <sys/cdefs.h>
43 #define CMD_PIOREAD 16
44 #define CMD_DMAREAD 17
46 #define CMD_GETTOC2 19
50 #define CMD_RELEASE 23
66 #define ERR_DISC_CHG 2
69 #define ERR_NO_ACTIVE 5
91 #define CDDA_SECTORS 2
100 #define CD_STATUS_BUSY 0
101 #define CD_STATUS_PAUSED 1
102 #define CD_STATUS_STANDBY 2
103 #define CD_STATUS_PLAYING 3
104 #define CD_STATUS_SEEKING 4
105 #define CD_STATUS_SCANNING 5
106 #define CD_STATUS_OPEN 6
107 #define CD_STATUS_NO_DISC 7
117 #define CD_CDROM 0x10
118 #define CD_CDROM_XA 0x20
120 #define CD_GDROM 0x80
144 #define TOC_LBA(n) ((n) & 0x00ffffff)
150 #define TOC_ADR(n) ( ((n) & 0x0f000000) >> 24 )
156 #define TOC_CTRL(n) ( ((n) & 0xf0000000) >> 28 )
162 #define TOC_TRACK(n) ( ((n) & 0x00ff0000) >> 16 )