|
| enum | CD_SCMD_CMDS {
CD_SCMD_READCLOCK = 0x01
, CD_SCMD_WRITECLOCK
, CD_SCMD_GETDISKTYPE
, CD_SCMD_GETERROR
,
CD_SCMD_TRAYREQ
, CD_SCMD_READ_ILINK_ID
, CD_SCMD_WRITE_ILINK_ID
, CD_SCMD_READ_NVM
,
CD_SCMD_WRITE_NVM
, CD_SCMD_DEC_SET
, CD_SCMD_SCMD
, CD_SCMD_STATUS
,
CD_SCMD_SET_HD_MODE
, CD_SCMD_OPEN_CONFIG
, CD_SCMD_CLOSE_CONFIG
, CD_SCMD_READ_CONFIG
,
CD_SCMD_WRITE_CONFIG
, CD_SCMD_READ_CONSOLE_ID
, CD_SCMD_WRITE_CONSOLE_ID
, CD_SCMD_READ_MECHACON_VERSION
,
CD_SCMD_CTRL_AD_OUT
, CD_SCMD_BREAK
, CD_SCMD_READ_SUBQ
, CD_SCMD_FORBID_DVDP
,
CD_SCMD_AUTO_ADJUST_CTRL
, CD_SCMD_READ_MODEL_NAME
, CD_SCMD_WRITE_MODEL_NAME
, CD_SCMD_FORBID_READ
,
CD_SCMD_SPIN_CTRL
, CD_SCMD_BOOT_CERTIFY
, CD_SCMD_CANCELPOWEROFF
, CD_SCMD_BLUELEDCTRL
,
CD_SCMD_POWEROFF
, CD_SCMD_MMODE
, CD_SCMD_SETTHREADPRI
} |
|
|
SifRpcClientData_t clientSCmd | __attribute__ ((aligned(64))) |
| void | convertfrombcd (sceCdCLOCK *time) |
| int | _CdCheckSCmd (int cmd) |
| int | sceCdReadClock (sceCdCLOCK *clock) |
| time_t | ps2time (time_t *t) |
| int | sceCdWriteClock (sceCdCLOCK *clock) |
| int | sceCdGetDiskType (void) |
| int | sceCdGetError (void) |
| int | sceCdTrayReq (int param, u32 *traychk) |
| int | sceCdApplySCmd (u8 cmdNum, const void *inBuff, u16 inBuffSize, void *outBuff) |
| int | sceCdStatus (void) |
| int | sceCdBreak (void) |
| int | sceCdCancelPOffRdy (u32 *result) |
| int | sceCdBlueLedCtrl (u8 control, u32 *result) |
| int | sceCdPowerOff (u32 *result) |
| int | sceCdMmode (int media) |
| int | sceCdChangeThreadPriority (int priority) |
| int | sceCdForbidRead (u32 *status) |
| int | sceCdSpinCtrlEE (u32 speed) |
| int | sceCdBootCertify (const u8 *romname) |
| int | sceCdReadSUBQ (void *buffer, u32 *status) |
| int | sceCdForbidDVDP (u32 *result) |
| int | sceCdAutoAdjustCtrl (int mode, u32 *result) |
| int | sceCdDecSet (unsigned char arg1, unsigned char arg2, unsigned char shift) |
| int | sceCdSetHDMode (u32 mode) |
| int | sceCdOpenConfig (int block, int mode, int NumBlocks, u32 *status) |
| int | sceCdCloseConfig (u32 *result) |
| int | sceCdReadConfig (void *buffer, u32 *result) |
| int | sceCdWriteConfig (const void *buffer, u32 *result) |
| int | sceCdReadNVM (u32 address, u16 *data, u8 *result) |
| int | sceCdWriteNVM (u32 address, u16 data, u8 *result) |
| int | sceCdRI (unsigned char *buffer, u32 *result) |
| int | sceCdWI (const unsigned char *buffer, u32 *status) |
| int | sceCdReadConsoleID (unsigned char *buffer, u32 *result) |
| int | sceCdWriteConsoleID (const unsigned char *buffer, u32 *result) |
| int | sceCdMV (unsigned char *buffer, u32 *result) |
| int | sceCdCtrlADout (int arg1, u32 *result) |
| int | sceCdRM (char *buffer, u32 *result) |
| int | sceCdWM (const char *buffer, u32 *result) |
| int | sceCdNoticeGameStart (u8 arg1, u32 *result) |
| int | _CdSyncS (int mode) |
Function definitions for libsceCdvd (EE side calls to the iop module sceCdvdfsv).
NOTE: These functions will work with the CDVDMAN/CDVDFSV or XCDVDMAN/XCDVDFSV modules stored in rom0.
NOTE: not all functions work with each set of modules!
Definition in file scmd.c.
| int sceCdMV |
( |
u8 * | buffer, |
|
|
u32 * | status ) |
Reads MECHACON version data (RR MM mm TT): RR = Magicgate region, MM = major, mm = minor, TT = system type (00 = PS2, 01 = PSX) Magicgate region codes are: 00 = Japan, 01 = USA, 02 = Europe, 03 = Oceania, 04 = Asia, 05 = Russia, 06 = China, and 07 = Mexico.
NOTE: The old CDVDMAN module only returns MM mm TT instead. The region byte is made up of the lower 7 bits of the status/result code.
- Parameters
-
| buffer | Pointer to the buffer to store the version data in. |
| status | Result code. |
- Returns
- 1 on success, 0 on failure.
Definition at line 798 of file scmd.c.