PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
libcdvd-common.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
16#ifndef __LIBCDVD_COMMON_H__
17#define __LIBCDVD_COMMON_H__
18
19#include <tamtypes.h>
20
21/* File open modes */
23#define SCE_CdSTREAM 0x40000000
24
25enum SCECdvdSectorType {
26 /* Game CD and DVD sector types. */
27 SCECdSecS2048 = 0,
28 SCECdSecS2328,
29 SCECdSecS2340,
30
31 /* CDDA sector types. */
32 SCECdSecS2352 = 0,
33 SCECdSecS2368,
34 SCECdSecS2448,
35};
36
44
49 // Note: These modes were taken from the PS2Linux libcdvd.h file, and they don't appear in any other Sony libcdvd.h file.
62};
63
64enum SCECdvdMModeMediaType {
65 SCECdMmodeCd = 1,
66 SCECdMmodeDvd
67};
68
108
110 SCECdGDTFUNCFAIL = -1,
115 SCECdDETCTCD,
116 SCECdDETCTDVDS,
117 SCECdDETCTDVDD,
120
122 SCECdPSCD = 0x10,
131
135 SCECdCDDA = 0xFD,
141
159
160// Tray request modes
169
170// Drive states
187
188typedef struct
189{
199 u8 pad;
201 u8 day;
206} sceCdCLOCK;
207
208typedef struct
209{
211 u32 lsn;
213 u32 size;
215 char name[16];
217 u8 date[8];
218} sceCdlFILE;
219
220// location structure, used with sceCdIntToPos() and sceCdPosToInt()
221typedef struct
222{
232
233typedef struct
234{
242 u8 pad;
243} sceCdRMode;
244
245typedef struct
246{
248 u32 lbn;
254
255// macros for converting between an integer and a BCD number
256#ifndef btoi
257#define btoi(b) ((b) / 16 * 10 + (b) % 16) // BCD to int
258#endif
259#ifndef itob
260#define itob(i) ((i) / 10 * 16 + (i) % 10) // int to BCD
261#endif
262
264#define CdlMAXTOC 100
265
266enum SCECdvdCallbackReason {
267 SCECdFuncRead = 1,
268 SCECdFuncReadCDDA,
269 SCECdFuncGetToc,
270 SCECdFuncSeek,
271 SCECdFuncStandby,
272 SCECdFuncStop,
273 SCECdFuncPause,
274 SCECdFuncBreak
275};
276
278typedef void (*sceCdCBFunc)(int reason);
279
288
289// Low-level filesystem properties for sceCdSearchFile()
291#define CdlMAXFILE 64
293#define CdlMAXDIR 128
295#define CdlMAXLEVEL 8
296
305
306// LED definitions for sceCdSetLEDsMode()
308#define CdlLEDPowerRed 1
310#define CdlLEDPowerGreen 2
312#define CdlLEDPowerYellow 4
314#define CdlLEDEjectBlue 8
315
316// Remote control disable definitions for sceRemote2_7()
318#define CdlRCDisablePowerReset 1
320#define CdlRCDisablePowerOff 2
322#define CdlRCDisableReset 4
324#define CdlRCDisableEject 8
326#define CdlRCDisablePowerOn 0x10
327
328// Flag definitions for sceCdCLOCK.stat
330#define CdlRTCStatClockStopDetected 1
332#define CdlRTCStatClockBatteryMonitoringVoltageProblem 2
334#define CdlRTCStatCTLRegProblem 4
336#define CdlRTCStatCommandError 128
337
338// Value definitions for the wakeupreason argument of sceCdReadWakeUpTime
340#define CdlWakeUpReasonMainPowerOn 0
342#define CdlWakeUpReasonMainReset 1
344#define CdlWakeUpReasonMainTimer 2
346#define CdlWakeUpReasonMainDevice 3
347
348// Value definitions for the return value of sceCdGetWakeUpReason
349#define CdlWakeUpReasonExtraSupportHard 0
351#define CdlWakeUpReasonExtraReset 1
353#define CdlWakeUpReasonExtraGameReset 2
355#define CdlWakeUpReasonExtraTimer 3
357#define CdlWakeUpReasonExtraPowerOn 4
359#define CdlWakeUpReasonExtraSlotIn 7
360#define CdlWakeUpReasonExtraBackGround 8
361
362// For streaming operations (Use with sceCdStRead())
369
370// EE read modes (Used with sceCdSetEEReadMode()).
371#define SCECdNoCheckReady 0x00000001
372#define SCECdNoWriteBackDCache 0x00000002
373
374#ifdef __cplusplus
375extern "C" {
376#endif
377
378// **** N-Command Functions ****
379
389int sceCdRead(u32 lbn, u32 sectors, void *buffer, sceCdRMode *mode);
390int sceCdReadDVDV(u32 lbn, u32 sectors, void *buffer, sceCdRMode *mode);
391int sceCdReadCDDA(u32 lbn, u32 sectors, void *buffer, sceCdRMode *mode);
392
398int sceCdGetToc(u8 *toc);
399
406int sceCdGetToc2(u8 *toc, int param);
407
414int sceCdSeek(u32 lbn);
415
421int sceCdStandby(void);
422
428int sceCdStop(void);
429
435int sceCdPause(void);
436
449
457int sceCdApplyNCmd(u8 cmdNum, const void* inBuff, u16 inBuffSize);
458
459// **** S-Command functions ****
460
470
480
485int sceCdGetDiskType(void);
486
491int sceCdGetError(void);
492
499int sceCdTrayReq(int param, u32 *traychk);
500
505int sceCdStatus(void);
506
511int sceCdBreak(void);
512
520int sceCdCancelPOffRdy(u32 *result);
521
530int sceCdBlueLEDCtl(u8 control, u32 *result);
531
539int sceCdPowerOff(u32 *result);
540
548int sceCdMmode(int media);
549
558
567int sceCdApplySCmd(u8 cmdNum, const void *inBuff, u16 inBuffSize, void *outBuff);
568
569// **** Streaming Functions ****
570
577int sceCdStStart(u32 lbn, sceCdRMode *mode);
578
587int sceCdStRead(u32 sectors, u32 *buffer, u32 mode, u32 *error);
588
593int sceCdStStop(void);
594
600int sceCdStSeek(u32 lbn);
601
609int sceCdStInit(u32 bufmax, u32 bankmax, void *buffer);
610
615int sceCdStStat(void);
616
621int sceCdStPause(void);
622
627int sceCdStResume(void);
628
629// **** Other Functions ****
630
636int sceCdInit(int mode);
637
643int sceCdSync(int mode);
644
651int sceCdSearchFile(sceCdlFILE *file, const char *name);
652
658int sceCdDiskReady(int mode);
659
662
665
667u32 sceCdGetReadPos(void);
668
676int sceCdInitEeCB(int priority, void *stackAddr, int stackSize);
677
684
691int sceCdReadSUBQ(void *buffer, u32 *status);
692
693// **** System functions ****
694
701int sceCdForbidDVDP(u32 *result);
702
710int sceCdAutoAdjustCtrl(int mode, u32 *result);
711
720int sceCdDecSet(unsigned char enable_xor, unsigned char enable_shift, unsigned char shiftval);
721
730int sceCdReadKey(unsigned char arg1, unsigned char arg2, unsigned int command, unsigned char *key);
731
739int sceCdDoesUniqueKeyExist(u32 *status);
740
746int sceCdSetHDMode(u32 mode);
747
756int sceCdOpenConfig(int block, int mode, int NumBlocks, u32 *status);
757
763int sceCdCloseConfig(u32 *result);
764
771int sceCdReadConfig(void *buffer, u32 *result);
772
779int sceCdWriteConfig(const void *buffer, u32 *result);
780
788int sceCdReadNVM(u32 address, u16 *data, u8 *result);
789
798int sceCdWriteNVM(u32 address, u16 data, u8 *result);
799
807int sceCdRI(u8 *buffer, u32 *result);
808
816int sceCdWI(const u8 *buffer, u32 *result);
817
824int sceCdReadConsoleID(u8 *buffer, u32 *result);
825
833int sceCdWriteConsoleID(const u8 *buffer, u32 *status);
834
841int sceCdCtrlADout(int mode, u32 *status);
842
852int sceCdMV(u8 *buffer, u32 *status);
853
864int sceCdBootCertify(const u8 *romname);
865
873int sceCdRM(char *buffer, u32 *status);
874
883int sceCdWM(const char *buffer, u32 *status);
884
892int sceCdForbidRead(u32 *result);
893
894// **** Extra Functions ****
895
905int sceCdReadFull(unsigned int lsn, unsigned int sectors, void *buf, sceCdRMode *mode);
906
913int sceCdStSeekF(unsigned int lsn);
914
922void *sceCdPOffCallback(void (*func)(void *), void *addr);
923
931int sceCdSetTimeout(int param, int timeout);
932
939int sceCdReadModelID(unsigned int *id);
940
948int sceCdReadDvdDualInfo(int *on_dual, unsigned int *layer1_start);
949
958int sceCdLayerSearchFile(sceCdlFILE *fp, const char *path, int layer);
959
965int sceCdStatus2(void);
966
976int sceCdRE(unsigned int lsn, unsigned int sectors, void *buf, sceCdRMode *mode);
977
984int sceCdReadGUID(u64 *guid);
985
995int sceCdRcBypassCtl(int mode, u32 *status);
996
1007int sceCdReadWakeUpTime(sceCdCLOCK *clock, u16 *userdata, u32 *wakeupreason, int *flags);
1008
1020int sceCdWriteWakeUpTime(const sceCdCLOCK *clock, u16 userdata, int flags);
1021
1030int sceRemote2_7(u16 param, u32 *status);
1031
1041int sceRemote2_7Get(u32 *param, u32 *status);
1042
1051int sceCdSetLEDsMode(u32 param, u32 *result);
1052
1059int sceCdReadPS1BootParam(u8 *out, u32 *result);
1060
1068int sceCdSetFanProfile(u8 param, u32 *result);
1069
1081int sceCdSendSCmd1D(int *arg1, unsigned int *arg2, unsigned int *arg3, u32 *status);
1082
1088int sceCdChgSys(u32 arg1);
1089
1096int sceCdNoticeGameStart(u8 arg1, u32 *result);
1097
1104int sceCdXLEDCtl(u8 arg1, u8 arg2, u32 *result1, u32 *result2);
1105
1112int sceCdBuzzerCtl(u32 *result);
1113
1120int sceCdXBSPowerCtl(u8 arg1, u8 arg2, u32 *result1, u32 *result2);
1121
1128int sceCdSetMediumRemoval(u8 arg1, u32 *result);
1129
1136int sceCdGetMediumRemoval(u32 *result1, u32 *result2);
1137
1144int sceCdXDVRPReset(u8 arg1, u32 *result);
1145
1152
1159int sceCdReadRegionParams(u32 *arg1, u32 *result);
1160
1167int sceCdWriteRegionParams(u8 arg1, u32 *arg2, u8 *arg3, u32 *result);
1168
1169// Compatibility names for older ps2sdk versions.
1170
1171// sceCdlFILE renames
1172#define CdvdFileSpec_t sceCdlFILE
1173#define cd_file_t sceCdlFILE
1174// Structure member names are the same
1175
1176// sceCdRMode renames
1177#define CdvdReadMode_t sceCdRMode
1178#define cd_read_mode_t sceCdRMode
1179// Structure member names differ:
1180// retries -> trycount
1181// readSpeed -> spindlctrl
1182// sectorType -> datapattern
1183
1184// SCECdvdSectorType renames
1185#define SCECdvdSectorTypes SCECdvdSectorType
1186#define CdvdSectorType_t SCECdvdSectorType
1187#define CDVD_SECTOR_2048 SCECdSecS2048
1188#define CDVD_SECTOR_2328 SCECdSecS2328
1189#define CDVD_SECTOR_2340 SCECdSecS2340
1190#define CDVD_SECTOR_2352 SCECdSecS2352
1191#define CDVD_SECTOR_2368 SCECdSecS2368
1192#define CDVD_SECTOR_2448 SCECdSecS2448
1193#define CdSecS2048 SCECdSecS2048
1194#define CdSecS2328 SCECdSecS2328
1195#define CdSecS2340 SCECdSecS2340
1196
1197// SCECdvdSpinValue renames
1198#define SCECdvdSpinValues SCECdvdSpinValue
1199#define CDVD_SPIN_MAX SCECdSpinMax
1200#define CDVD_SPIN_NORMAL SCECdSpinNom
1201#define CDVD_SPIN_STREAM SCECdSpinStm
1202#define CDVD_SPIN_DVD0 SCECdSpinDvdDL0
1203#define CdSpinMax SCECdSpinMax
1204#define CdSpinNom SCECdSpinNom
1205#define CdSpinStm SCECdSpinStm
1206
1207// SCECdvdErrorCode renames
1208#define SCECdvdErrorCodes SCECdvdErrorCode
1209#define CDVD_ERR_FAIL SCECdErFAIL
1210#define CDVD_ERR_NO SCECdErNO
1211#define CDVD_ERR_ABRT SCECdErABRT
1212#define CDVD_ERR_CMD SCECdErCMD
1213#define CDVD_ERR_OPENS SCECdErOPENS
1214#define CDVD_ERR_NODISC SCECdErNODISC
1215#define CDVD_ERR_NORDY SCECdErNORDY
1216#define CDVD_ERR_CUD SCECdErCUD
1217#define CDVD_ERR_IPI SCECdErIPI
1218#define CDVD_ERR_ILI SCECdErILI
1219#define CDVD_ERR_PRM SCECdErPRM
1220#define CDVD_ERR_READ SCECdErREAD
1221#define CDVD_ERR_TRMOPN SCECdErTRMOPN
1222#define CDVD_ERR_EOM SCECdErEOM
1223#define CDVD_ERR_READCF SCECdErREADCF
1224#define CDVD_ERR_READCFR SCECdErREADCFR
1225
1226// SCECdvdMediaType renames
1227#define SCECdvdMediaTypes SCECdvdMediaType
1228#define CdvdDiscType_t SCECdvdMediaType
1229#define CDVD_TYPE_NODISK SCECdNODISC
1230#define CDVD_TYPE_DETECT SCECdDETCT
1231#define CDVD_TYPE_DETECT_CD SCECdDETCTCD
1232#define CDVD_TYPE_DETECT_DVDSINGLE SCECdDETCTDVDS
1233#define CDVD_TYPE_DETECT_DVDDUAL SCECdDETCTDVDD
1234#define CDVD_TYPE_UNKNOWN SCECdUNKNOWN
1235#define CDVD_TYPE_PS1CD SCECdPSCD
1236#define CDVD_TYPE_PS1CDDA SCECdPSCDDA
1237#define CDVD_TYPE_PS2CD SCECdPS2CD
1238#define CDVD_TYPE_PS2CDDA SCECdPS2CDDA
1239#define CDVD_TYPE_PS2DVD SCECdPS2DVD
1240#define CDVD_TYPE_CDDA SCECdCDDA
1241#define CDVD_TYPE_DVDVIDEO SCECdDVDV
1242#define CDVD_TYPE_ILLEGAL SCECdIllegalMedia
1243
1244// SCECdvdDriveState renames
1245#define SCECdvdDriveStates SCECdvdDriveState
1246#define CDVD_STAT_STOP SCECdStatStop
1247#define CDVD_STAT_OPEN SCECdStatShellOpen
1248#define CDVD_STAT_SPIN SCECdStatSpin
1249#define CDVD_STAT_READ SCECdStatRead
1250#define CDVD_STAT_PAUSE SCECdStatPause
1251#define CDVD_STAT_SEEK SCECdStatSeek
1252#define CDVD_STAT_ERROR SCECdStatEmg
1253
1254// SCECdvdMModeMediaType renames
1255#define SCECdvdMModeMediaTypes SCECdvdMModeMediaType
1256#define CdvdMediaMode_t SCECdvdMModeMediaType
1257#define CDVD_MEDIA_MODE_CD SCECdMmodeCd
1258#define CDVD_MEDIA_MODE_DVD SCECdMmodeDvd
1259#define CdMmodeCd SCECdMmodeCd
1260#define CdMmodeDvd SCECdMmodeDvd
1261
1262// sceCdlLOCCD renames
1263#define CdvdLocation_t sceCdlLOCCD
1264#define cd_location_t sceCdlLOCCD
1265// Structure member names are the same
1266
1267// SCECdvdInitMode renames
1268#define SCECdvdInitModes SCECdvdInitMode
1269#define CDVD_INIT_INIT SCECdINIT
1270#define CDVD_INIT_NOCHECK SCECdINoD
1271#define CDVD_INIT_EXIT SCECdEXIT
1272
1273// SCECdvdInterruptCode renames
1274#define SCECdvdInterruptCodes SCECdvdInterruptCode
1275#define CDVD_READY_READY SCECdComplete
1276#define CDVD_READY_NOTREADY SCECdNotReady
1277
1278// sceCdCLOCK renames
1279#define CdvdClock_t sceCdCLOCK
1280#define cd_clock_t sceCdCLOCK
1281// Structure member names differ:
1282// status -> stat
1283// week -> pad
1284
1285// SCECdvdStreamMode renames
1286#define SCECdvdStreamModes SCECdvdStreamMode
1287#define CDVD_STREAM_NONBLOCK STMNBLK
1288#define CDVD_STREAM_BLOCK STMBLK
1289
1290// SCECdvdTrayReqMode renames
1291#define SCECdvdTrayReqModes SCECdvdTrayReqMode
1292#define CDVD_TRAY_OPEN SCECdTrayOpen
1293#define CDVD_TRAY_CLOSE SCECdTrayClose
1294#define CDVD_TRAY_CHECK SCECdTrayCheck
1295
1296// sceCdCBFunc rename
1297#define CdCBFunc sceCdCBFunc
1298
1299// SCECdvdCallbackReason rename
1300#define SCECdvdCallbackReasons SCECdvdCallbackReason
1301
1302
1303// function renames
1304#define CdInit sceCdInit
1305#define cdInit sceCdInit
1306#define CdStandby sceCdStandby
1307#define cdStandby sceCdStandby
1308#define CdRead sceCdRead
1309#define cdRead sceCdRead
1310#define CdSeek sceCdSeek
1311#define cdSeek sceCdSeek
1312#define CdGetError sceCdGetError
1313#define cdGetError sceCdGetError
1314#define CdGetToc sceCdGetToc
1315#define cdGetToc sceCdGetToc
1316#define CdSearchFile sceCdSearchFile
1317#define cdSearchFile sceCdSearchFile
1318#define CdSync sceCdSync
1319#define cdSync sceCdSync
1320#define CdGetDiskType sceCdGetDiskType
1321#define cdGetDiscType sceCdGetDiskType
1322#define CdDiskReady sceCdDiskReady
1323#define cdDiskReady sceCdDiskReady
1324#define CdTrayReq sceCdTrayReq
1325#define cdTrayReq sceCdTrayReq
1326#define CdStop sceCdStop
1327#define cdStop sceCdStop
1328#define CdPosToInt sceCdPosToInt
1329#define cdPosToInt sceCdPosToInt
1330#define CdIntToPos sceCdIntToPos
1331#define cdIntToPos sceCdIntToPos
1332#define CdReadClock sceCdReadClock
1333#define cdReadClock sceCdReadClock
1334#define CdStatus sceCdStatus
1335#define cdStatus sceCdStatus
1336#define CdCallback sceCdCallback
1337#define cdSetCallback sceCdCallback
1338#define CdPause sceCdPause
1339#define cdPause sceCdPause
1340#define CdBreak sceCdBreak
1341#define cdBreak sceCdBreak
1342#define CdReadCdda sceCdReadCdda
1343#define cdCddaRead sceCdReadCdda
1344#define CdGetReadPos sceCdGetReadPos
1345#define cdGetReadPos sceCdGetReadPos
1346#define CdMmode sceCdMmode
1347#define cdSetMediaMode sceCdMmode
1348
1349#define cdDvdRead sceCdReadDVDV
1350#define cdApplyNCmd sceCdApplyNCmd
1351#define cdReadIOPMem sceCdReadIOPMem
1352#define cdNCmdDiskReady sceCdNCmdDiskReady
1353#define cdReadChain sceCdReadChain
1354#define cdWriteClock sceCdWriteClock
1355#define cdApplySCmd sceCdApplySCmd
1356#define cdCancelPowerOff sceCdCancelPOffRdy
1357#define cdBlueLedCtrl sceCdBlueLEDCtl
1358#define sceCdBlueLedCtrl sceCdBlueLEDCtl
1359#define cdPowerOff sceCdPowerOff
1360#define cdChangeThreadPriority sceCdChangeThreadPriority
1361#define cdStStart sceCdStStart
1362#define cdStRead sceCdStRead
1363#define cdStStop sceCdStStop
1364#define cdStSeek sceCdStSeek
1365#define cdStInit sceCdStInit
1366#define cdStStat sceCdStStat
1367#define cdStPause sceCdStPause
1368#define cdStResume sceCdStResume
1369#define CdRC sceCdRC
1370
1371// Internal definitions no longer exposed:
1372// cdStream
1373// cdCddaStream
1374// cdInitCallbackThread
1375
1376#ifdef __cplusplus
1377}
1378#endif
1379
1380#endif /* __LIBCDVD_COMMON_H__ */
static cdda_toc toc
Definition cdrom.c:52
int sceCdBreak(void)
Definition cdi.c:25
int sceCdReadModelID(unsigned int *id)
int sceCdStStop(void)
Definition cdi.c:214
int sceCdStSeekF(unsigned int lsn)
void * sceCdPOffCallback(void(*func)(void *), void *addr)
int sceCdSearchFile(sceCdlFILE *file, const char *name)
Definition cdi.c:114
int sceCdXLEDCtl(u8 arg1, u8 arg2, u32 *result1, u32 *result2)
int sceCdGetError(void)
Definition cdi.c:40
int sceCdRcBypassCtl(int mode, u32 *status)
SCECdvdStreamMode
@ STMNBLK
@ STMBLK
int sceCdStatus2(void)
int sceCdCancelPOffRdy(u32 *result)
SCECdvdInterruptCode
@ CdlNoIntr
@ CdlDiskError
@ CdlDataReady
@ CdlDataEnd
@ CdlAcknowledge
@ SCECdComplete
@ SCECdNotReady
int sceCdReadRegionParams(u32 *arg1, u32 *result)
int sceCdPowerOff(u32 *result)
int sceRemote2_7(u16 param, u32 *status)
int sceCdSetFanProfile(u8 param, u32 *result)
int sceCdDoesUniqueKeyExist(u32 *status)
int sceCdStPause(void)
Definition cdi.c:219
int sceCdStRead(u32 sectors, u32 *buffer, u32 mode, u32 *error)
Definition cdi.c:179
int sceCdGetMediumRemoval(u32 *result1, u32 *result2)
int sceCdReadSUBQ(void *buffer, u32 *status)
int sceCdSetHDMode(u32 mode)
int sceCdReadKey(unsigned char arg1, unsigned char arg2, unsigned int command, unsigned char *key)
int sceCdInitEeCB(int priority, void *stackAddr, int stackSize)
int sceCdGetToc(u8 *toc)
Definition cdi.c:57
int sceCdInit(int mode)
Definition cdi.c:64
int sceCdReadNVM(u32 address, u16 *data, u8 *result)
sceCdCBFunc sceCdCallback(sceCdCBFunc function)
Definition cdi.c:16
int sceCdReadPS1BootParam(u8 *out, u32 *result)
int sceCdXDVRPReset(u8 arg1, u32 *result)
int sceCdSetMediumRemoval(u8 arg1, u32 *result)
int sceCdSendSCmd1D(int *arg1, unsigned int *arg2, unsigned int *arg3, u32 *status)
int sceCdReadDvdDualInfo(int *on_dual, unsigned int *layer1_start)
int sceCdCloseConfig(u32 *result)
int sceCdStInit(u32 bufmax, u32 bankmax, void *buffer)
Definition cdi.c:167
int sceCdGetToc2(u8 *toc, int param)
int sceCdStatus(void)
Definition cdi.c:152
int sceCdReadGUID(u64 *guid)
int sceCdChangeThreadPriority(int priority)
int sceCdDiskReady(int mode)
Definition cdi.c:30
SCECdvdFanSpeed
@ SCECdvdFanSpeedMedium
@ SCECdvdFanSpeedMaximum
@ SCECdvdFanSpeedMinimum
int sceCdForbidRead(u32 *result)
int sceCdPause(void)
Definition cdi.c:93
int sceCdRM(char *buffer, u32 *status)
u32 sceCdPosToInt(sceCdlLOCCD *p)
int sceCdReadConsoleID(u8 *buffer, u32 *result)
int sceCdLayerSearchFile(sceCdlFILE *fp, const char *path, int layer)
int sceCdReadClock(sceCdCLOCK *clock)
int sceCdWriteConfig(const void *buffer, u32 *result)
int sceCdWM(const char *buffer, u32 *status)
int sceCdWriteConsoleID(const u8 *buffer, u32 *status)
u32 sceCdGetReadPos(void)
Definition cdi.c:45
int sceCdGetDiskType(void)
Definition cdi.c:35
sceCdlLOCCD * sceCdIntToPos(u32 i, sceCdlLOCCD *p)
int sceCdGetWakeUpReason(void)
int sceCdMmode(int media)
Definition cdi.c:86
int sceCdSync(int mode)
Definition cdi.c:109
int sceCdWI(const u8 *buffer, u32 *result)
int sceCdStResume(void)
Definition cdi.c:224
int sceCdAutoAdjustCtrl(int mode, u32 *result)
int sceCdApplySCmd(u8 cmdNum, const void *inBuff, u16 inBuffSize, void *outBuff)
int sceCdXBSPowerCtl(u8 arg1, u8 arg2, u32 *result1, u32 *result2)
int sceRemote2_7Get(u32 *param, u32 *status)
int sceCdSeek(u32 lbn)
Definition cdi.c:142
int sceCdSetTimeout(int param, int timeout)
int sceCdStStart(u32 lbn, sceCdRMode *mode)
Definition cdi.c:202
SCECdvdSpinValue
@ SCECdSpinX1
@ SCECdSpinX2
@ SCECdSpin1p6
@ SCECdSpinDvdDL0
@ SCECdSpinNm2
@ SCECdSpinMax
@ SCECdSpinStm
@ SCECdSpinNom
@ SCECdSpinMx
@ SCECdSpinX12
@ SCECdSpinX4
int sceCdBootCertify(const u8 *romname)
int sceCdChgSys(u32 arg1)
int sceCdReadConfig(void *buffer, u32 *result)
int sceCdMV(u8 *buffer, u32 *status)
SCECdvdTrayReqMode
@ SCECdTrayCheck
@ SCECdTrayOpen
@ SCECdTrayClose
int sceCdStStat(void)
Definition cdi.c:209
void(* sceCdCBFunc)(int reason)
int sceCdWriteNVM(u32 address, u16 data, u8 *result)
int sceCdReadFull(unsigned int lsn, unsigned int sectors, void *buf, sceCdRMode *mode)
int sceCdDecSet(unsigned char enable_xor, unsigned char enable_shift, unsigned char shiftval)
int sceCdBuzzerCtl(u32 *result)
int sceCdRI(u8 *buffer, u32 *result)
SCECdvdMediaType
@ SCECdNODISC
@ SCECdIllegalMedia
@ SCECdPSCDDA
@ SCECdPSCD
@ SCECdUNKNOWN
@ SCECdDETCT
@ SCECdDVDV
@ SCECdDVDVR
@ SCECdPS2DVD
@ SCECdCDDA
@ SCECdPS2CDDA
@ SCECdPS2CD
SCECdvdErrorCode
@ SCECdErOPENS
@ SCECdErEOM
@ SCECdErIPI
@ SCECdErREAD
@ SCECdErILI
@ SCECdErNO
@ SCECdErABRT
@ SCECdErREADCF
@ SCECdErREADCFR
@ SCECdErNORDY
@ SCECdErTRMOPN
@ SCECdErCUD
@ SCECdErNODISC
@ SCECdErCMD
@ SCECdErFAIL
@ SCECdErPRM
int sceCdNoticeGameStart(u8 arg1, u32 *result)
int sceCdReadWakeUpTime(sceCdCLOCK *clock, u16 *userdata, u32 *wakeupreason, int *flags)
int sceCdForbidDVDP(u32 *result)
int sceCdRead(u32 lbn, u32 sectors, void *buffer, sceCdRMode *mode)
Definition cdi.c:98
int sceCdApplyNCmd(u8 cmdNum, const void *inBuff, u16 inBuffSize)
int sceCdWriteWakeUpTime(const sceCdCLOCK *clock, u16 userdata, int flags)
int sceCdStandby(void)
Definition cdi.c:147
int sceCdStSeek(u32 lbn)
Definition cdi.c:197
int sceCdRE(unsigned int lsn, unsigned int sectors, void *buf, sceCdRMode *mode)
int sceCdStop(void)
Definition cdi.c:157
int sceCdReadChain(sceCdRChain *tag, sceCdRMode *mode)
int sceCdOpenConfig(int block, int mode, int NumBlocks, u32 *status)
int sceCdTrayReq(int param, u32 *traychk)
Definition cdi.c:162
int sceCdSetLEDsMode(u32 param, u32 *result)
int sceCdWriteClock(sceCdCLOCK *clock)
int sceCdWriteRegionParams(u8 arg1, u32 *arg2, u8 *arg3, u32 *result)
int sceCdBlueLEDCtl(u8 control, u32 *result)
int sceCdCtrlADout(int mode, u32 *status)
SCECdvdDriveState
@ SCECdStatSpin
@ SCECdStatSeek
@ SCECdStatPause
@ SCECdStatRead
@ SCECdStatShellOpen
@ SCECdStatStop
@ SCECdStatEmg
SCECdvdInitMode
@ SCECdEXIT
@ SCECdINoD
@ SCECdINIT