Issue #5768: Change to Unicode output logic and test case for same.
[python.git] / Lib / plat-linux2 / CDROM.py
blob434093684c5c145142ca299ca80c6a5a9e342edd
1 # Generated by h2py from /usr/include/linux/cdrom.h
3 CDROMPAUSE = 0x5301
4 CDROMRESUME = 0x5302
5 CDROMPLAYMSF = 0x5303
6 CDROMPLAYTRKIND = 0x5304
7 CDROMREADTOCHDR = 0x5305
8 CDROMREADTOCENTRY = 0x5306
9 CDROMSTOP = 0x5307
10 CDROMSTART = 0x5308
11 CDROMEJECT = 0x5309
12 CDROMVOLCTRL = 0x530a
13 CDROMSUBCHNL = 0x530b
14 CDROMREADMODE2 = 0x530c
15 CDROMREADMODE1 = 0x530d
16 CDROMREADAUDIO = 0x530e
17 CDROMEJECT_SW = 0x530f
18 CDROMMULTISESSION = 0x5310
19 CDROM_GET_MCN = 0x5311
20 CDROM_GET_UPC = CDROM_GET_MCN
21 CDROMRESET = 0x5312
22 CDROMVOLREAD = 0x5313
23 CDROMREADRAW = 0x5314
24 CDROMREADCOOKED = 0x5315
25 CDROMSEEK = 0x5316
26 CDROMPLAYBLK = 0x5317
27 CDROMREADALL = 0x5318
28 CDROMGETSPINDOWN = 0x531d
29 CDROMSETSPINDOWN = 0x531e
30 CDROMCLOSETRAY = 0x5319
31 CDROM_SET_OPTIONS = 0x5320
32 CDROM_CLEAR_OPTIONS = 0x5321
33 CDROM_SELECT_SPEED = 0x5322
34 CDROM_SELECT_DISC = 0x5323
35 CDROM_MEDIA_CHANGED = 0x5325
36 CDROM_DRIVE_STATUS = 0x5326
37 CDROM_DISC_STATUS = 0x5327
38 CDROM_CHANGER_NSLOTS = 0x5328
39 CDROM_LOCKDOOR = 0x5329
40 CDROM_DEBUG = 0x5330
41 CDROM_GET_CAPABILITY = 0x5331
42 CDROMAUDIOBUFSIZ = 0x5382
43 DVD_READ_STRUCT = 0x5390
44 DVD_WRITE_STRUCT = 0x5391
45 DVD_AUTH = 0x5392
46 CDROM_SEND_PACKET = 0x5393
47 CDROM_NEXT_WRITABLE = 0x5394
48 CDROM_LAST_WRITTEN = 0x5395
49 CDROM_PACKET_SIZE = 12
50 CGC_DATA_UNKNOWN = 0
51 CGC_DATA_WRITE = 1
52 CGC_DATA_READ = 2
53 CGC_DATA_NONE = 3
54 CD_MINS = 74
55 CD_SECS = 60
56 CD_FRAMES = 75
57 CD_SYNC_SIZE = 12
58 CD_MSF_OFFSET = 150
59 CD_CHUNK_SIZE = 24
60 CD_NUM_OF_CHUNKS = 98
61 CD_FRAMESIZE_SUB = 96
62 CD_HEAD_SIZE = 4
63 CD_SUBHEAD_SIZE = 8
64 CD_EDC_SIZE = 4
65 CD_ZERO_SIZE = 8
66 CD_ECC_SIZE = 276
67 CD_FRAMESIZE = 2048
68 CD_FRAMESIZE_RAW = 2352
69 CD_FRAMESIZE_RAWER = 2646
70 CD_FRAMESIZE_RAW1 = (CD_FRAMESIZE_RAW-CD_SYNC_SIZE)
71 CD_FRAMESIZE_RAW0 = (CD_FRAMESIZE_RAW-CD_SYNC_SIZE-CD_HEAD_SIZE)
72 CD_XA_HEAD = (CD_HEAD_SIZE+CD_SUBHEAD_SIZE)
73 CD_XA_TAIL = (CD_EDC_SIZE+CD_ECC_SIZE)
74 CD_XA_SYNC_HEAD = (CD_SYNC_SIZE+CD_XA_HEAD)
75 CDROM_LBA = 0x01
76 CDROM_MSF = 0x02
77 CDROM_DATA_TRACK = 0x04
78 CDROM_LEADOUT = 0xAA
79 CDROM_AUDIO_INVALID = 0x00
80 CDROM_AUDIO_PLAY = 0x11
81 CDROM_AUDIO_PAUSED = 0x12
82 CDROM_AUDIO_COMPLETED = 0x13
83 CDROM_AUDIO_ERROR = 0x14
84 CDROM_AUDIO_NO_STATUS = 0x15
85 CDC_CLOSE_TRAY = 0x1
86 CDC_OPEN_TRAY = 0x2
87 CDC_LOCK = 0x4
88 CDC_SELECT_SPEED = 0x8
89 CDC_SELECT_DISC = 0x10
90 CDC_MULTI_SESSION = 0x20
91 CDC_MCN = 0x40
92 CDC_MEDIA_CHANGED = 0x80
93 CDC_PLAY_AUDIO = 0x100
94 CDC_RESET = 0x200
95 CDC_IOCTLS = 0x400
96 CDC_DRIVE_STATUS = 0x800
97 CDC_GENERIC_PACKET = 0x1000
98 CDC_CD_R = 0x2000
99 CDC_CD_RW = 0x4000
100 CDC_DVD = 0x8000
101 CDC_DVD_R = 0x10000
102 CDC_DVD_RAM = 0x20000
103 CDS_NO_INFO = 0
104 CDS_NO_DISC = 1
105 CDS_TRAY_OPEN = 2
106 CDS_DRIVE_NOT_READY = 3
107 CDS_DISC_OK = 4
108 CDS_AUDIO = 100
109 CDS_DATA_1 = 101
110 CDS_DATA_2 = 102
111 CDS_XA_2_1 = 103
112 CDS_XA_2_2 = 104
113 CDS_MIXED = 105
114 CDO_AUTO_CLOSE = 0x1
115 CDO_AUTO_EJECT = 0x2
116 CDO_USE_FFLAGS = 0x4
117 CDO_LOCK = 0x8
118 CDO_CHECK_TYPE = 0x10
119 CD_PART_MAX = 64
120 CD_PART_MASK = (CD_PART_MAX - 1)
121 GPCMD_BLANK = 0xa1
122 GPCMD_CLOSE_TRACK = 0x5b
123 GPCMD_FLUSH_CACHE = 0x35
124 GPCMD_FORMAT_UNIT = 0x04
125 GPCMD_GET_CONFIGURATION = 0x46
126 GPCMD_GET_EVENT_STATUS_NOTIFICATION = 0x4a
127 GPCMD_GET_PERFORMANCE = 0xac
128 GPCMD_INQUIRY = 0x12
129 GPCMD_LOAD_UNLOAD = 0xa6
130 GPCMD_MECHANISM_STATUS = 0xbd
131 GPCMD_MODE_SELECT_10 = 0x55
132 GPCMD_MODE_SENSE_10 = 0x5a
133 GPCMD_PAUSE_RESUME = 0x4b
134 GPCMD_PLAY_AUDIO_10 = 0x45
135 GPCMD_PLAY_AUDIO_MSF = 0x47
136 GPCMD_PLAY_AUDIO_TI = 0x48
137 GPCMD_PLAY_CD = 0xbc
138 GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL = 0x1e
139 GPCMD_READ_10 = 0x28
140 GPCMD_READ_12 = 0xa8
141 GPCMD_READ_CDVD_CAPACITY = 0x25
142 GPCMD_READ_CD = 0xbe
143 GPCMD_READ_CD_MSF = 0xb9
144 GPCMD_READ_DISC_INFO = 0x51
145 GPCMD_READ_DVD_STRUCTURE = 0xad
146 GPCMD_READ_FORMAT_CAPACITIES = 0x23
147 GPCMD_READ_HEADER = 0x44
148 GPCMD_READ_TRACK_RZONE_INFO = 0x52
149 GPCMD_READ_SUBCHANNEL = 0x42
150 GPCMD_READ_TOC_PMA_ATIP = 0x43
151 GPCMD_REPAIR_RZONE_TRACK = 0x58
152 GPCMD_REPORT_KEY = 0xa4
153 GPCMD_REQUEST_SENSE = 0x03
154 GPCMD_RESERVE_RZONE_TRACK = 0x53
155 GPCMD_SCAN = 0xba
156 GPCMD_SEEK = 0x2b
157 GPCMD_SEND_DVD_STRUCTURE = 0xad
158 GPCMD_SEND_EVENT = 0xa2
159 GPCMD_SEND_KEY = 0xa3
160 GPCMD_SEND_OPC = 0x54
161 GPCMD_SET_READ_AHEAD = 0xa7
162 GPCMD_SET_STREAMING = 0xb6
163 GPCMD_START_STOP_UNIT = 0x1b
164 GPCMD_STOP_PLAY_SCAN = 0x4e
165 GPCMD_TEST_UNIT_READY = 0x00
166 GPCMD_VERIFY_10 = 0x2f
167 GPCMD_WRITE_10 = 0x2a
168 GPCMD_WRITE_AND_VERIFY_10 = 0x2e
169 GPCMD_SET_SPEED = 0xbb
170 GPCMD_PLAYAUDIO_TI = 0x48
171 GPCMD_GET_MEDIA_STATUS = 0xda
172 GPMODE_R_W_ERROR_PAGE = 0x01
173 GPMODE_WRITE_PARMS_PAGE = 0x05
174 GPMODE_AUDIO_CTL_PAGE = 0x0e
175 GPMODE_POWER_PAGE = 0x1a
176 GPMODE_FAULT_FAIL_PAGE = 0x1c
177 GPMODE_TO_PROTECT_PAGE = 0x1d
178 GPMODE_CAPABILITIES_PAGE = 0x2a
179 GPMODE_ALL_PAGES = 0x3f
180 GPMODE_CDROM_PAGE = 0x0d
181 DVD_STRUCT_PHYSICAL = 0x00
182 DVD_STRUCT_COPYRIGHT = 0x01
183 DVD_STRUCT_DISCKEY = 0x02
184 DVD_STRUCT_BCA = 0x03
185 DVD_STRUCT_MANUFACT = 0x04
186 DVD_LAYERS = 4
187 DVD_LU_SEND_AGID = 0
188 DVD_HOST_SEND_CHALLENGE = 1
189 DVD_LU_SEND_KEY1 = 2
190 DVD_LU_SEND_CHALLENGE = 3
191 DVD_HOST_SEND_KEY2 = 4
192 DVD_AUTH_ESTABLISHED = 5
193 DVD_AUTH_FAILURE = 6
194 DVD_LU_SEND_TITLE_KEY = 7
195 DVD_LU_SEND_ASF = 8
196 DVD_INVALIDATE_AGID = 9
197 DVD_LU_SEND_RPC_STATE = 10
198 DVD_HOST_SEND_RPC_STATE = 11
199 DVD_CPM_NO_COPYRIGHT = 0
200 DVD_CPM_COPYRIGHTED = 1
201 DVD_CP_SEC_NONE = 0
202 DVD_CP_SEC_EXIST = 1
203 DVD_CGMS_UNRESTRICTED = 0
204 DVD_CGMS_SINGLE = 2
205 DVD_CGMS_RESTRICTED = 3
207 CDROM_MAX_SLOTS = 256