PS2SDK
PS2 Homebrew Libraries
cdvdman.h File Reference
#include <types.h>
#include <irx.h>
#include <libcdvd-common.h>
+ Include dependency graph for cdvdman.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cdvdman_dma3_parameter_
 
struct  cdvdman_internal_struct_
 

Macros

#define cdvdman_IMPORTS_start   DECLARE_IMPORT_TABLE(cdvdman, 1, 1)
 
#define cdvdman_IMPORTS_end   END_IMPORT_TABLE
 
#define I_sceCdInit   DECLARE_IMPORT(4, sceCdInit)
 
#define I_sceCdStandby   DECLARE_IMPORT(5, sceCdStandby)
 
#define I_sceCdRead   DECLARE_IMPORT(6, sceCdRead)
 
#define I_sceCdSeek   DECLARE_IMPORT(7, sceCdSeek)
 
#define I_sceCdGetError   DECLARE_IMPORT(8, sceCdGetError)
 
#define I_sceCdGetToc   DECLARE_IMPORT(9, sceCdGetToc)
 
#define I_sceCdSearchFile   DECLARE_IMPORT(10, sceCdSearchFile)
 
#define I_sceCdSync   DECLARE_IMPORT(11, sceCdSync)
 
#define I_sceCdGetDiskType   DECLARE_IMPORT(12, sceCdGetDiskType)
 
#define I_sceCdDiskReady   DECLARE_IMPORT(13, sceCdDiskReady)
 
#define I_sceCdTrayReq   DECLARE_IMPORT(14, sceCdTrayReq)
 
#define I_sceCdStop   DECLARE_IMPORT(15, sceCdStop)
 
#define I_sceCdPosToInt   DECLARE_IMPORT(16, sceCdPosToInt)
 
#define I_sceCdIntToPos   DECLARE_IMPORT(17, sceCdIntToPos)
 
#define I_sceCdGetToc2   DECLARE_IMPORT(19, sceCdGetToc2)
 
#define I_sceCdReadDVDV   DECLARE_IMPORT(20, sceCdReadDVDV)
 
#define I_sceCdCheckCmd   DECLARE_IMPORT(21, sceCdCheckCmd)
 
#define I_sceCdRI   DECLARE_IMPORT(22, sceCdRI)
 
#define I_sceCdWI   DECLARE_IMPORT(23, sceCdWI)
 
#define I_sceCdReadClock   DECLARE_IMPORT(24, sceCdReadClock)
 
#define I_sceCdWriteClock   DECLARE_IMPORT(25, sceCdWriteClock)
 
#define I_sceCdReadNVM   DECLARE_IMPORT(26, sceCdReadNVM)
 
#define I_sceCdWriteNVM   DECLARE_IMPORT(27, sceCdWriteNVM)
 
#define I_sceCdStatus   DECLARE_IMPORT(28, sceCdStatus)
 
#define I_sceCdApplySCmd   DECLARE_IMPORT(29, sceCdApplySCmd)
 
#define I_sceCdSetHDMode   DECLARE_IMPORT(30, sceCdSetHDMode)
 
#define I_sceCdOpenConfig   DECLARE_IMPORT(31, sceCdOpenConfig)
 
#define I_sceCdCloseConfig   DECLARE_IMPORT(32, sceCdCloseConfig)
 
#define I_sceCdReadConfig   DECLARE_IMPORT(33, sceCdReadConfig)
 
#define I_sceCdWriteConfig   DECLARE_IMPORT(34, sceCdWriteConfig)
 
#define I_sceCdReadKey   DECLARE_IMPORT(35, sceCdReadKey)
 
#define I_sceCdDecSet   DECLARE_IMPORT(36, sceCdDecSet)
 
#define I_sceCdCallback   DECLARE_IMPORT(37, sceCdCallback)
 
#define I_sceCdPause   DECLARE_IMPORT(38, sceCdPause)
 
#define I_sceCdBreak   DECLARE_IMPORT(39, sceCdBreak)
 
#define I_sceCdReadCDDA   DECLARE_IMPORT(40, sceCdReadCDDA)
 
#define I_sceCdReadConsoleID   DECLARE_IMPORT(41, sceCdReadConsoleID)
 
#define I_sceCdWriteConsoleID   DECLARE_IMPORT(42, sceCdWriteConsoleID)
 
#define I_sceCdMV   DECLARE_IMPORT(43, sceCdMV)
 
#define I_sceCdGetReadPos   DECLARE_IMPORT(44, sceCdGetReadPos)
 
#define I_sceCdCtrlADout   DECLARE_IMPORT(45, sceCdCtrlADout)
 
#define I_sceCdNop   DECLARE_IMPORT(46, sceCdNop)
 
#define I_sceGetFsvRbuf   DECLARE_IMPORT(47, sceGetFsvRbuf)
 
#define I_sceCdstm0Cb   DECLARE_IMPORT(48, sceCdstm0Cb)
 
#define I_sceCdstm1Cb   DECLARE_IMPORT(49, sceCdstm1Cb)
 
#define I_sceCdSC   DECLARE_IMPORT(50, sceCdSC)
 
#define I_sceCdRC   DECLARE_IMPORT(51, sceCdRC)
 
#define I_sceCdForbidDVDP   DECLARE_IMPORT(52, sceCdForbidDVDP)
 
#define I_sceCdReadSUBQ   DECLARE_IMPORT(53, sceCdReadSUBQ)
 
#define I_sceCdApplyNCmd   DECLARE_IMPORT(54, sceCdApplyNCmd)
 
#define I_sceCdAutoAdjustCtrl   DECLARE_IMPORT(55, sceCdAutoAdjustCtrl)
 
#define I_sceCdStInit   DECLARE_IMPORT(56, sceCdStInit)
 
#define I_sceCdStRead   DECLARE_IMPORT(57, sceCdStRead)
 
#define I_sceCdStSeek   DECLARE_IMPORT(58, sceCdStSeek)
 
#define I_sceCdStStart   DECLARE_IMPORT(59, sceCdStStart)
 
#define I_sceCdStStat   DECLARE_IMPORT(60, sceCdStStat)
 
#define I_sceCdStStop   DECLARE_IMPORT(61, sceCdStStop)
 
#define I_sceCdRead0   DECLARE_IMPORT(62, sceCdRead0)
 
#define I_sceCdRV   DECLARE_IMPORT(63, sceCdRV)
 
#define I_sceCdRM   DECLARE_IMPORT(64, sceCdRM)
 
#define I_sceCdWM   DECLARE_IMPORT(65, sceCdWM)
 
#define I_sceCdReadChain   DECLARE_IMPORT(66, sceCdReadChain)
 
#define I_sceCdStPause   DECLARE_IMPORT(67, sceCdStPause)
 
#define I_sceCdStResume   DECLARE_IMPORT(68, sceCdStResume)
 
#define I_sceCdForbidRead   DECLARE_IMPORT(69, sceCdForbidRead)
 
#define I_sceCdBootCertify   DECLARE_IMPORT(70, sceCdBootCertify)
 
#define I_sceCdSpinCtrlIOP   DECLARE_IMPORT(71, sceCdSpinCtrlIOP)
 
#define I_sceCdBlueLEDCtl   DECLARE_IMPORT(72, sceCdBlueLEDCtl)
 
#define I_sceCdCancelPOffRdy   DECLARE_IMPORT(73, sceCdCancelPOffRdy)
 
#define I_sceCdPowerOff   DECLARE_IMPORT(74, sceCdPowerOff)
 
#define I_sceCdMmode   DECLARE_IMPORT(75, sceCdMmode)
 
#define I_sceCdReadFull   DECLARE_IMPORT(76, sceCdReadFull)
 
#define I_sceCdStSeekF   DECLARE_IMPORT(77, sceCdStSeekF)
 
#define I_sceCdPOffCallback   DECLARE_IMPORT(78, sceCdPOffCallback)
 
#define I_sceCdReadDiskID   DECLARE_IMPORT(79, sceCdReadDiskID)
 
#define I_sceCdReadGUID   DECLARE_IMPORT(80, sceCdReadGUID)
 
#define I_sceCdSetTimeout   DECLARE_IMPORT(81, sceCdSetTimeout)
 
#define I_sceCdReadModelID   DECLARE_IMPORT(82, sceCdReadModelID)
 
#define I_sceCdReadDvdDualInfo   DECLARE_IMPORT(83, sceCdReadDvdDualInfo)
 
#define I_sceCdLayerSearchFile   DECLARE_IMPORT(84, sceCdLayerSearchFile)
 
#define I_sceCdStatus2   DECLARE_IMPORT(90, sceCdStatus2)
 
#define I_sceCdReadWakeUpTime   DECLARE_IMPORT(109, sceCdReadWakeUpTime)
 
#define I_sceCdWriteWakeUpTime   DECLARE_IMPORT(110, sceCdWriteWakeUpTime)
 
#define I_sceCdApplySCmd2   DECLARE_IMPORT(112, sceCdApplySCmd2)
 
#define I_sceCdRE   DECLARE_IMPORT(114, sceCdRE)
 
#define I_sceCdRcBypassCtl   DECLARE_IMPORT(115, sceCdRcBypassCtl)
 
#define I_sceCdSendSCmd1D   DECLARE_IMPORT(116, sceCdSendSCmd1D)
 
#define I_sceRemote2_7   DECLARE_IMPORT(117, sceRemote2_7)
 
#define I_sceCdSetLEDsMode   DECLARE_IMPORT(120, sceCdSetLEDsMode)
 
#define I_sceCdApplySCmd3   DECLARE_IMPORT(125, sceCdApplySCmd3)
 
#define I_sceRemote2_7Get   DECLARE_IMPORT(128, sceRemote2_7Get)
 
#define I_sceCdReadPS1BootParam   DECLARE_IMPORT(148, sceCdReadPS1BootParam)
 
#define I_sceCdSetFanProfile   DECLARE_IMPORT(150, sceCdSetFanProfile)
 
#define I_cdvdman_152_get_temperature   DECLARE_IMPORT(152, cdvdman_152_get_temperature)
 
#define I_sceCdChgSys   DECLARE_IMPORT(154, sceCdChgSys)
 
#define I_sceCdNoticeGameStart   DECLARE_IMPORT(156, sceCdNoticeGameStart)
 
#define I_sceCdDeobfuscateUsingUniqueKey   DECLARE_IMPORT(161, sceCdDeobfuscateUsingUniqueKey)
 
#define I_sceCdXLEDCtl   DECLARE_IMPORT(163, sceCdXLEDCtl)
 
#define I_sceCdBuzzerCtl   DECLARE_IMPORT(165, sceCdBuzzerCtl)
 
#define I_cdvdman_167_atapi2dragon   DECLARE_IMPORT(167, cdvdman_167_atapi2dragon)
 
#define I_cdvdman_169_dragon2atapi   DECLARE_IMPORT(169, cdvdman_169_dragon2atapi)
 
#define I_sceCdXBSPowerCtl   DECLARE_IMPORT(171, sceCdXBSPowerCtl)
 
#define I_sceCdSetAtapiEjectCallback   DECLARE_IMPORT(173, sceCdSetAtapiEjectCallback)
 
#define I_sceCdSetMediumRemoval   DECLARE_IMPORT(175, sceCdSetMediumRemoval)
 
#define I_sceCdGetMediumRemoval   DECLARE_IMPORT(177, sceCdGetMediumRemoval)
 
#define I_sceCdDoesUniqueKeyExist   DECLARE_IMPORT(179, sceCdDoesUniqueKeyExist)
 
#define I_sceCdXDVRPReset   DECLARE_IMPORT(181, sceCdXDVRPReset)
 
#define I_sceCdGetWakeUpReason   DECLARE_IMPORT(183, sceCdGetWakeUpReason)
 
#define I_sceCdReadRegionParams   DECLARE_IMPORT(189, sceCdReadRegionParams)
 
#define I_sceCdWriteRegionParams   DECLARE_IMPORT(191, sceCdWriteRegionParams)
 

Typedefs

typedef struct cdvdman_dma3_parameter_ cdvdman_dma3_parameter_t
 
typedef struct cdvdman_internal_struct_ cdvdman_internal_struct_t
 

Functions

int sceCdCheckCmd (void)
 
int sceCdNop (void)
 
void * sceGetFsvRbuf (void)
 
int sceCdstm0Cb (void(*p)(int val))
 
int sceCdstm1Cb (void(*p)(int val))
 
int sceCdSC (int code, int *param)
 
int sceCdRC (sceCdCLOCK *clock)
 
int sceCdRead0 (u32 lsn, u32 sectors, void *buffer, sceCdRMode *mode, int csec, void *callback)
 
int sceCdRV (u32 lsn, u32 sectors, void *buf, sceCdRMode *mode, int arg5, void *cb)
 
int sceCdApplySCmd2 (u8 cmdNum, const void *inBuff, unsigned long int inBuffSize, void *outBuff)
 
int sceCdApplySCmd3 (u8 cmdNum, const void *inBuff, unsigned long int inBuffSize, void *outBuff)
 
int sceCdSpinCtrlIOP (u32 speed)
 
void * sceCdSetAtapiEjectCallback (int(*cb)(int reason, void *userdata), void *userdata)
 
int sceCdReadDiskID (unsigned int *id)
 
int sceCdDeobfuscateUsingUniqueKey (u8 *buffer, unsigned int shiftval, int xorval, u32 *status)
 

Detailed Description

Definitions and imports for cdvdman

Definition in file cdvdman.h.

Function Documentation

◆ sceCdRV()

int sceCdRV ( u32  lsn,
u32  sectors,
void *  buf,
sceCdRMode mode,
int  arg5,
void *  cb 
)

Reads DVD video. SUPPORTED IN NEWER CDVDMAN MODULES WITHIN DVD PLAYER IOPRP ONLY

Returns
1 on success, 0 on failure.

Definition at line 7127 of file cdvdman.c.

◆ sceCdApplySCmd2()

int sceCdApplySCmd2 ( u8  cmdNum,
const void *  inBuff,
unsigned long int  inBuffSize,
void *  outBuff 
)

send an s-command by function number

Parameters
cmdNumcommand number
inBuffinput buffer (can be null)
inBuffSizesize of input buffer (>= 16 bytes)
outBuffoutput buffer (can be null)
Returns
1 on success, 0 on failure.

Definition at line 5441 of file cdvdman.c.

References sceCdApplySCmd().

◆ sceCdApplySCmd3()

int sceCdApplySCmd3 ( u8  cmdNum,
const void *  inBuff,
unsigned long int  inBuffSize,
void *  outBuff 
)

send an s-command by function number Unofficial name. SUPPORTED IN NEWER CDVDMAN MODULES INCLUDED WITHIN NEWER IOPRP ONLY

Parameters
cmdNumcommand number
inBuffinput buffer (can be null)
inBuffSizesize of input buffer (>= 16 bytes)
outBuffoutput buffer (can be null)
Returns
1 on success, 0 on failure.

◆ sceCdSpinCtrlIOP()

int sceCdSpinCtrlIOP ( u32  speed)

Controls spindle speed? Not sure what it really does. SUPPORTED IN XCDVDMAN ONLY

Parameters
speedSpeed mode.
Returns
1 on success, 0 on failure.

Definition at line 2183 of file cdvdman.c.

◆ sceCdSetAtapiEjectCallback()

void* sceCdSetAtapiEjectCallback ( int(*)(int reason, void *userdata)  cb,
void *  userdata 
)

Set the eject callback when in ATAPI mode. Unofficial name. SUPPORTED IN NEWER CDVDMAN MODULES INCLUDED WITHIN DNAS IOPRP ONLY

Parameters
cbThe pointer to the callback
userdataThe pointer to the userdata that will be passed to the callback
Returns
The old callback value

◆ sceCdReadDiskID()

int sceCdReadDiskID ( unsigned int *  id)

Reads the Disk ID. SUPPORTED IN NEWER CDVDMAN MODULES INCLUDED WITHIN DNAS IOPRP ONLY

Parameters
idinteger where the Disk ID is stored.
Returns
1 on success, 0 on failure.

◆ sceCdDeobfuscateUsingUniqueKey()

int sceCdDeobfuscateUsingUniqueKey ( u8 *  buffer,
unsigned int  shiftval,
int  xorval,
u32 *  status 
)

Deobfuscate using unique key. Unofficial name. SUPPORTED IN NEWER CDVDMAN MODULES INCLUDED WITHIN DNAS IOPRP ONLY

Parameters
bufferOutput buffer
shiftvalThe amount to rotate left shift
xorvalThe value to XOR the buffer against
statusCommand status
Returns
1 on success, 0 on failure.