PageRenderTime 63ms CodeModel.GetById 20ms app.highlight 19ms RepoModel.GetById 11ms app.codeStats 0ms

/Lib/plat-linux2/CDROM.py

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