4 Copyright 2003 Christian Storgaard
5 Changes made by Ron Kuslak <rds@rdsarts.com>, 12/15/2003,
6 and are limited to the formating of this message.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 return struct
.calcsize(type)
30 CDC_DRIVE_STATUS
=0x800
34 CDC_GENERIC_PACKET
=0x1000
38 CDC_MEDIA_CHANGED
=0x80
39 CDC_MULTI_SESSION
=0x20
50 CDROMAUDIOBUFSIZ
=0x5382
54 CDROMGETSPINDOWN
=0x531d
55 CDROMMULTISESSION
=0x5310
59 CDROMPLAYTRKIND
=0x5304
62 CDROMREADCOOKED
=0x5315
66 CDROMREADTOCENTRY
=0x5306
67 CDROMREADTOCHDR
=0x5305
71 CDROMSETSPINDOWN
=0x531e
77 CDROM_AUDIO_COMPLETED
=0x13
78 CDROM_AUDIO_ERROR
=0x14
79 CDROM_AUDIO_INVALID
=0x00
80 CDROM_AUDIO_NO_STATUS
=0x15
81 CDROM_AUDIO_PAUSED
=0x12
83 CDROM_CHANGER_NSLOTS
=0x5328
84 CDROM_CLEAR_OPTIONS
=0x5321
87 CDROM_DISC_STATUS
=0x5327
88 CDROM_DRIVE_STATUS
=0x5326
89 CDROM_GET_CAPABILITY
=0x5331
91 CDROM_GET_UPC
=CDROM_GET_MCN
92 CDROM_LAST_WRITTEN
=0x5395
96 CDROM_MEDIA_CHANGED
=0x5325
98 CDROM_NEXT_WRITABLE
=0x5394
100 CDROM_SELECT_DISC
=0x5323
101 CDROM_SELECT_SPEED
=0x5322
102 CDROM_SEND_PACKET
=0x5393
103 CDROM_SET_OPTIONS
=0x5320
104 CDSL_CURRENT
=( (int ) ( ~
0 >> 1 ) )
105 CDSL_NONE
=( (int ) ( ~
0 >> 1 ) - 1 )
110 CDS_DRIVE_NOT_READY
=3
122 CD_FRAMESIZE_RAW
=2352
125 CD_FRAMESIZE_RAW0
=( CD_FRAMESIZE_RAW
- CD_SYNC_SIZE
- CD_HEAD_SIZE
)
126 CD_FRAMESIZE_RAW1
=( CD_FRAMESIZE_RAW
- CD_SYNC_SIZE
)
127 CD_FRAMESIZE_RAWER
=2646
133 CD_PART_MASK
=( CD_PART_MAX
- 1 )
136 CD_XA_HEAD
=( CD_HEAD_SIZE
+ CD_SUBHEAD_SIZE
)
137 CD_XA_SYNC_HEAD
=( CD_SYNC_SIZE
+ CD_XA_HEAD
)
138 CD_XA_TAIL
=( CD_EDC_SIZE
+ CD_ECC_SIZE
)
145 DVD_AUTH_ESTABLISHED
=5
147 DVD_CGMS_RESTRICTED
=3
149 DVD_CGMS_UNRESTRICTED
=0
150 DVD_CPM_COPYRIGHTED
=1
151 DVD_CPM_NO_COPYRIGHT
=0
154 DVD_HOST_SEND_CHALLENGE
=1
156 DVD_HOST_SEND_RPC_STATE
=11
157 DVD_INVALIDATE_AGID
=9
161 DVD_LU_SEND_CHALLENGE
=3
163 DVD_LU_SEND_RPC_STATE
=10
164 DVD_LU_SEND_TITLE_KEY
=7
165 DVD_READ_STRUCT
=0x5390
167 DVD_STRUCT_COPYRIGHT
=0x01
168 DVD_STRUCT_DISCKEY
=0x02
169 DVD_STRUCT_MANUFACT
=0x04
170 DVD_STRUCT_PHYSICAL
=0x00
171 DVD_WRITE_STRUCT
=0x5391
172 #'EOPNOTSUPP' undefined in 'EDRIVE_CANT_DO_THIS'
174 GPCMD_CLOSE_TRACK
=0x5b
175 GPCMD_FLUSH_CACHE
=0x35
176 GPCMD_FORMAT_UNIT
=0x04
177 GPCMD_GET_CONFIGURATION
=0x46
178 GPCMD_GET_EVENT_STATUS_NOTIFICATION
=0x4a
179 GPCMD_GET_MEDIA_STATUS
=0xda
180 GPCMD_GET_PERFORMANCE
=0xac
182 GPCMD_LOAD_UNLOAD
=0xa6
183 GPCMD_MECHANISM_STATUS
=0xbd
184 GPCMD_MODE_SELECT_10
=0x55
185 GPCMD_MODE_SENSE_10
=0x5a
186 GPCMD_PAUSE_RESUME
=0x4b
187 GPCMD_PLAYAUDIO_TI
=0x48
188 GPCMD_PLAY_AUDIO_10
=0x45
189 GPCMD_PLAY_AUDIO_MSF
=0x47
190 GPCMD_PLAY_AUDIO_TI
=0x48
192 GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL
=0x1e
196 GPCMD_READ_CDVD_CAPACITY
=0x25
197 GPCMD_READ_CD_MSF
=0xb9
198 GPCMD_READ_DISC_INFO
=0x51
199 GPCMD_READ_DVD_STRUCTURE
=0xad
200 GPCMD_READ_FORMAT_CAPACITIES
=0x23
201 GPCMD_READ_HEADER
=0x44
202 GPCMD_READ_SUBCHANNEL
=0x42
203 GPCMD_READ_TOC_PMA_ATIP
=0x43
204 GPCMD_READ_TRACK_RZONE_INFO
=0x52
205 GPCMD_REPAIR_RZONE_TRACK
=0x58
206 GPCMD_REPORT_KEY
=0xa4
207 GPCMD_REQUEST_SENSE
=0x03
208 GPCMD_RESERVE_RZONE_TRACK
=0x53
211 GPCMD_SEND_DVD_STRUCTURE
=0xad
212 GPCMD_SEND_EVENT
=0xa2
215 GPCMD_SET_READ_AHEAD
=0xa7
217 GPCMD_SET_STREAMING
=0xb6
218 GPCMD_START_STOP_UNIT
=0x1b
219 GPCMD_STOP_PLAY_SCAN
=0x4e
220 GPCMD_TEST_UNIT_READY
=0x00
223 GPCMD_WRITE_AND_VERIFY_10
=0x2e
224 GPMODE_ALL_PAGES
=0x3f
225 GPMODE_AUDIO_CTL_PAGE
=0x0e
226 GPMODE_CAPABILITIES_PAGE
=0x2a
227 GPMODE_CDROM_PAGE
=0x0d
228 GPMODE_FAULT_FAIL_PAGE
=0x1c
229 GPMODE_POWER_PAGE
=0x1a
230 GPMODE_R_W_ERROR_PAGE
=0x01
231 GPMODE_TO_PROTECT_PAGE
=0x1d
232 GPMODE_WRITE_PARMS_PAGE
=0x05
233 _I386_BYTEORDER_H
=None
235 _LINUX_BYTEORDER_GENERIC_H
=None
236 _LINUX_BYTEORDER_LITTLE_ENDIAN_H
=None
237 _LINUX_BYTEORDER_SWAB_H
=None
241 __LITTLE_ENDIAN_BITFIELD
=None
242 #'__u16' undefined in '___constant_swab16'
243 #'__u32' undefined in '___constant_swab32'
244 #'__u64' undefined in '___constant_swab64'
245 #'__u16' undefined in '___swab16'
246 #'__u32' undefined in '___swab32'
247 #'__u64' undefined in '___swab64'
248 #'__u16' undefined in '__arch__swab16'
249 #'__u16' undefined in '__arch__swab16'
250 #'__arch__swab16p': failed dependancy:'__arch__swab16'
251 #'do' undefined in '__arch__swab16s'
252 #'__u32' undefined in '__arch__swab32'
253 #'__u32' undefined in '__arch__swab32'
254 #'__arch__swab32p': failed dependancy:'__arch__swab32'
255 #'do' undefined in '__arch__swab32s'
256 #'__u64' undefined in '__arch__swab64'
257 #'__u64' undefined in '__arch__swab64'
258 #'__arch__swab64p': failed dependancy:'__arch__swab64'
259 #'do' undefined in '__arch__swab64s'
260 #'__fswab16' undefined in '__swab16'
261 #'__be16_to_cpu': failed dependancy:'__swab16'
262 #'__swab16p' undefined in '__be16_to_cpup'
263 #'__swab16s' undefined in '__be16_to_cpus'
264 #'__fswab32' undefined in '__swab32'
265 #'__be32_to_cpu': failed dependancy:'__swab32'
266 #'__swab32p' undefined in '__be32_to_cpup'
267 #'__swab32s' undefined in '__be32_to_cpus'
268 #'__fswab64' undefined in '__swab64'
269 #'__be64_to_cpu': failed dependancy:'__swab64'
270 #'__swab64p' undefined in '__be64_to_cpup'
271 #'__swab64s' undefined in '__be64_to_cpus'
272 #'__u16' undefined in '___constant_swab16'
273 #'__constant_be16_to_cpu': failed dependancy:'___constant_swab16'
274 #'__u32' undefined in '___constant_swab32'
275 #'__constant_be32_to_cpu': failed dependancy:'___constant_swab32'
276 #'__u64' undefined in '___constant_swab64'
277 #'__constant_be64_to_cpu': failed dependancy:'___constant_swab64'
278 #'__u16' undefined in '___constant_swab16'
279 #'__constant_cpu_to_be16': failed dependancy:'___constant_swab16'
280 #'__u32' undefined in '___constant_swab32'
281 #'__constant_cpu_to_be32': failed dependancy:'___constant_swab32'
282 #'__u64' undefined in '___constant_swab64'
283 #'__constant_cpu_to_be64': failed dependancy:'___constant_swab64'
284 def __constant_cpu_to_le16(x
):
285 return ( (__u16
) (x
) )
286 def __constant_cpu_to_le32(x
):
287 return ( (__u32
) (x
) )
288 def __constant_cpu_to_le64(x
):
289 return ( (__u64
) (x
) )
290 #'__u32' undefined in '___constant_swab32'
291 #'__constant_htonl': failed dependancy:'___constant_swab32'
292 #'__u16' undefined in '___constant_swab16'
293 #'__constant_htons': failed dependancy:'___constant_swab16'
294 def __constant_le16_to_cpu(x
):
295 return ( (__u16
) (x
) )
296 def __constant_le32_to_cpu(x
):
297 return ( (__u32
) (x
) )
298 def __constant_le64_to_cpu(x
):
299 return ( (__u64
) (x
) )
300 #'__u32' undefined in '___constant_swab32'
301 #'__constant_ntohl': failed dependancy:'___constant_swab32'
302 #'__u16' undefined in '___constant_swab16'
303 #'__constant_ntohs': failed dependancy:'___constant_swab16'
304 #'__fswab16' undefined in '__swab16'
305 #'__cpu_to_be16': failed dependancy:'__swab16'
306 #'__swab16p' undefined in '__cpu_to_be16p'
307 #'__swab16s' undefined in '__cpu_to_be16s'
308 #'__fswab32' undefined in '__swab32'
309 #'__cpu_to_be32': failed dependancy:'__swab32'
310 #'__swab32p' undefined in '__cpu_to_be32p'
311 #'__swab32s' undefined in '__cpu_to_be32s'
312 #'__fswab64' undefined in '__swab64'
313 #'__cpu_to_be64': failed dependancy:'__swab64'
314 #'__swab64p' undefined in '__cpu_to_be64p'
315 #'__swab64s' undefined in '__cpu_to_be64s'
316 def __cpu_to_le16(x
):
317 return ( (__u16
) (x
) )
318 #Traceback (most recent call last):
319 # File "./h2py.py", line 203, in output_py
321 # File "<string>", line 1
322 # def __cpu_to_le16p(x): return ( * (__u16* ) (x ) )
324 # SyntaxError: invalid syntax
325 #skipping '__cpu_to_le16p'
326 #'do' undefined in '__cpu_to_le16s'
327 def __cpu_to_le32(x
):
328 return ( (__u32
) (x
) )
329 #Traceback (most recent call last):
330 # File "./h2py.py", line 203, in output_py
332 # File "<string>", line 1
333 # def __cpu_to_le32p(x): return ( * (__u32* ) (x ) )
335 # SyntaxError: invalid syntax
336 #skipping '__cpu_to_le32p'
337 #'do' undefined in '__cpu_to_le32s'
338 def __cpu_to_le64(x
):
339 return ( (__u64
) (x
) )
340 #Traceback (most recent call last):
341 # File "./h2py.py", line 203, in output_py
343 # File "<string>", line 1
344 # def __cpu_to_le64p(x): return ( * (__u64* ) (x ) )
346 # SyntaxError: invalid syntax
347 #skipping '__cpu_to_le64p'
348 #'do' undefined in '__cpu_to_le64s'
351 def __le16_to_cpu(x
):
352 return ( (__u16
) (x
) )
353 #Traceback (most recent call last):
354 # File "./h2py.py", line 203, in output_py
356 # File "<string>", line 1
357 # def __le16_to_cpup(x): return ( * (__u16* ) (x ) )
359 # SyntaxError: invalid syntax
360 #skipping '__le16_to_cpup'
361 #'do' undefined in '__le16_to_cpus'
362 def __le32_to_cpu(x
):
363 return ( (__u32
) (x
) )
364 #Traceback (most recent call last):
365 # File "./h2py.py", line 203, in output_py
367 # File "<string>", line 1
368 # def __le32_to_cpup(x): return ( * (__u32* ) (x ) )
370 # SyntaxError: invalid syntax
371 #skipping '__le32_to_cpup'
372 #'do' undefined in '__le32_to_cpus'
373 def __le64_to_cpu(x
):
374 return ( (__u64
) (x
) )
375 #Traceback (most recent call last):
376 # File "./h2py.py", line 203, in output_py
378 # File "<string>", line 1
379 # def __le64_to_cpup(x): return ( * (__u64* ) (x ) )
381 # SyntaxError: invalid syntax
382 #skipping '__le64_to_cpup'
383 #'do' undefined in '__le64_to_cpus'
386 #'__fswab16' undefined in '__swab16'
387 #'__fswab32' undefined in '__swab32'
388 #'__fswab64' undefined in '__swab64'