PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
cdvdman.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 __CDVDMAN_H__
17#define __CDVDMAN_H__
18
19#include <types.h>
20#include <irx.h>
21
22#include <libcdvd-common.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28//IOP-only libcdvd function prototypes.
29int sceCdCheckCmd(void);
30int sceCdNop(void);
31void *sceGetFsvRbuf(void);
32int sceCdstm0Cb(void (*p)(int));
33int sceCdstm1Cb(void (*p)(int));
34int sceCdSC(int code, int *param);
35/* Within all CDVDMAN modules, sceCdReadClock and sceCdRC both exist. In the old one, both have exactly the same code.
36 In the newer ones, sceCdReadClock would automatically file off the most significant bit within the month field,
37 while sceCdRC continued having its original behaviour of not changing the data. */
38int sceCdRC(sceCdCLOCK *clock);
39int sceCdRead0(u32 lsn, u32 sectors, void *buffer, sceCdRMode *mode, int csec, void *callback);
40
46int sceCdRV(u32 lsn, u32 sectors, void *buf, sceCdRMode *mode, int arg5, void *cb);
47
56int sceCdApplySCmd2(u8 cmdNum, const void* inBuff, unsigned long int inBuffSize, void *outBuff);
57
68int sceCdApplySCmd3(u8 cmdNum, const void* inBuff, unsigned long int inBuffSize, void *outBuff);
69
76int sceCdSpinCtrlIOP(u32 speed);
77
86void *sceCdSetAtapiEjectCallback(int (*cb)(int reason, void *userdata), void *userdata);
87
88//DNAS functions
89
96int sceCdReadDiskID(unsigned int *id);
97
108int sceCdDeobfuscateUsingUniqueKey(u8 *buffer, unsigned int shiftval, int xorval, u32 *status);
109
110#define cdvdman_IMPORTS_start DECLARE_IMPORT_TABLE(cdvdman, 1, 1)
111#define cdvdman_IMPORTS_end END_IMPORT_TABLE
112
113#define I_sceCdInit DECLARE_IMPORT(4, sceCdInit)
114#define I_sceCdStandby DECLARE_IMPORT(5, sceCdStandby)
115#define I_sceCdRead DECLARE_IMPORT(6, sceCdRead)
116#define I_sceCdSeek DECLARE_IMPORT(7, sceCdSeek)
117#define I_sceCdGetError DECLARE_IMPORT(8, sceCdGetError)
118#define I_sceCdGetToc DECLARE_IMPORT(9, sceCdGetToc)
119#define I_sceCdSearchFile DECLARE_IMPORT(10, sceCdSearchFile)
120#define I_sceCdSync DECLARE_IMPORT(11, sceCdSync)
121#define I_sceCdGetDiskType DECLARE_IMPORT(12, sceCdGetDiskType)
122#define I_sceCdDiskReady DECLARE_IMPORT(13, sceCdDiskReady)
123#define I_sceCdTrayReq DECLARE_IMPORT(14, sceCdTrayReq)
124#define I_sceCdStop DECLARE_IMPORT(15, sceCdStop)
125#define I_sceCdPosToInt DECLARE_IMPORT(16, sceCdPosToInt)
126#define I_sceCdIntToPos DECLARE_IMPORT(17, sceCdIntToPos)
127#define I_sceCdGetToc2 DECLARE_IMPORT(19, sceCdGetToc2)
128#define I_sceCdReadDVDV DECLARE_IMPORT(20, sceCdReadDVDV)
129#define I_sceCdCheckCmd DECLARE_IMPORT(21, sceCdCheckCmd)
130#define I_sceCdRI DECLARE_IMPORT(22, sceCdRI)
131#define I_sceCdWI DECLARE_IMPORT(23, sceCdWI)
132#define I_sceCdReadClock DECLARE_IMPORT(24, sceCdReadClock)
133#define I_sceCdWriteClock DECLARE_IMPORT(25, sceCdWriteClock)
134#define I_sceCdReadNVM DECLARE_IMPORT(26, sceCdReadNVM)
135#define I_sceCdWriteNVM DECLARE_IMPORT(27, sceCdWriteNVM)
136#define I_sceCdStatus DECLARE_IMPORT(28, sceCdStatus)
137#define I_sceCdApplySCmd DECLARE_IMPORT(29, sceCdApplySCmd)
138#define I_sceCdSetHDMode DECLARE_IMPORT(30, sceCdSetHDMode)
139#define I_sceCdOpenConfig DECLARE_IMPORT(31, sceCdOpenConfig)
140#define I_sceCdCloseConfig DECLARE_IMPORT(32, sceCdCloseConfig)
141#define I_sceCdReadConfig DECLARE_IMPORT(33, sceCdReadConfig)
142#define I_sceCdWriteConfig DECLARE_IMPORT(34, sceCdWriteConfig)
143#define I_sceCdReadKey DECLARE_IMPORT(35, sceCdReadKey)
144#define I_sceCdDecSet DECLARE_IMPORT(36, sceCdDecSet)
145#define I_sceCdCallback DECLARE_IMPORT(37, sceCdCallback)
146#define I_sceCdPause DECLARE_IMPORT(38, sceCdPause)
147#define I_sceCdBreak DECLARE_IMPORT(39, sceCdBreak)
148#define I_sceCdReadCDDA DECLARE_IMPORT(40, sceCdReadCDDA)
149#define I_sceCdReadConsoleID DECLARE_IMPORT(41, sceCdReadConsoleID)
150#define I_sceCdWriteConsoleID DECLARE_IMPORT(42, sceCdWriteConsoleID)
151#define I_sceCdMV DECLARE_IMPORT(43, sceCdMV)
152#define I_sceCdGetReadPos DECLARE_IMPORT(44, sceCdGetReadPos)
153#define I_sceCdCtrlADout DECLARE_IMPORT(45, sceCdCtrlADout)
154#define I_sceCdNop DECLARE_IMPORT(46, sceCdNop)
155#define I_sceGetFsvRbuf DECLARE_IMPORT(47, sceGetFsvRbuf)
156#define I_sceCdstm0Cb DECLARE_IMPORT(48, sceCdstm0Cb)
157#define I_sceCdstm1Cb DECLARE_IMPORT(49, sceCdstm1Cb)
158#define I_sceCdSC DECLARE_IMPORT(50, sceCdSC)
159#define I_sceCdRC DECLARE_IMPORT(51, sceCdRC)
160#define I_sceCdForbidDVDP DECLARE_IMPORT(52, sceCdForbidDVDP)
161#define I_sceCdReadSUBQ DECLARE_IMPORT(53, sceCdReadSUBQ)
162#define I_sceCdApplyNCmd DECLARE_IMPORT(54, sceCdApplyNCmd)
163#define I_sceCdAutoAdjustCtrl DECLARE_IMPORT(55, sceCdAutoAdjustCtrl)
164#define I_sceCdStInit DECLARE_IMPORT(56, sceCdStInit)
165#define I_sceCdStRead DECLARE_IMPORT(57, sceCdStRead)
166#define I_sceCdStSeek DECLARE_IMPORT(58, sceCdStSeek)
167#define I_sceCdStStart DECLARE_IMPORT(59, sceCdStStart)
168#define I_sceCdStStat DECLARE_IMPORT(60, sceCdStStat)
169#define I_sceCdStStop DECLARE_IMPORT(61, sceCdStStop)
170#define I_sceCdRead0 DECLARE_IMPORT(62, sceCdRead0)
171#define I_sceCdRV DECLARE_IMPORT(63, sceCdRV)
172#define I_sceCdRM DECLARE_IMPORT(64, sceCdRM)
173#define I_sceCdWM DECLARE_IMPORT(65, sceCdWM)
174#define I_sceCdReadChain DECLARE_IMPORT(66, sceCdReadChain)
175#define I_sceCdStPause DECLARE_IMPORT(67, sceCdStPause)
176#define I_sceCdStResume DECLARE_IMPORT(68, sceCdStResume)
177#define I_sceCdForbidRead DECLARE_IMPORT(69, sceCdForbidRead)
178#define I_sceCdBootCertify DECLARE_IMPORT(70, sceCdBootCertify)
179#define I_sceCdSpinCtrlIOP DECLARE_IMPORT(71, sceCdSpinCtrlIOP)
180#define I_sceCdBlueLEDCtl DECLARE_IMPORT(72, sceCdBlueLEDCtl)
181#define I_sceCdCancelPOffRdy DECLARE_IMPORT(73, sceCdCancelPOffRdy)
182#define I_sceCdPowerOff DECLARE_IMPORT(74, sceCdPowerOff)
183#define I_sceCdMmode DECLARE_IMPORT(75, sceCdMmode)
184
185#define I_sceCdReadFull DECLARE_IMPORT(76, sceCdReadFull)
186#define I_sceCdStSeekF DECLARE_IMPORT(77, sceCdStSeekF)
187#define I_sceCdPOffCallback DECLARE_IMPORT(78, sceCdPOffCallback)
188#define I_sceCdReadDiskID DECLARE_IMPORT(79, sceCdReadDiskID)
189#define I_sceCdReadGUID DECLARE_IMPORT(80, sceCdReadGUID)
190#define I_sceCdSetTimeout DECLARE_IMPORT(81, sceCdSetTimeout)
191#define I_sceCdReadModelID DECLARE_IMPORT(82, sceCdReadModelID)
192#define I_sceCdReadDvdDualInfo DECLARE_IMPORT(83, sceCdReadDvdDualInfo)
193#define I_sceCdLayerSearchFile DECLARE_IMPORT(84, sceCdLayerSearchFile)
194#define I_sceCdStatus2 DECLARE_IMPORT(90, sceCdStatus2)
195#define I_sceCdReadWakeUpTime DECLARE_IMPORT(109, sceCdReadWakeUpTime)
196#define I_sceCdWriteWakeUpTime DECLARE_IMPORT(110, sceCdWriteWakeUpTime)
197#define I_sceCdApplySCmd2 DECLARE_IMPORT(112, sceCdApplySCmd2)
198#define I_sceCdRE DECLARE_IMPORT(114, sceCdRE)
199#define I_sceCdRcBypassCtl DECLARE_IMPORT(115, sceCdRcBypassCtl)
200#define I_sceCdSendSCmd1D DECLARE_IMPORT(116, sceCdSendSCmd1D)
201#define I_sceRemote2_7 DECLARE_IMPORT(117, sceRemote2_7)
202#define I_sceCdSetLEDsMode DECLARE_IMPORT(120, sceCdSetLEDsMode)
203#define I_sceCdApplySCmd3 DECLARE_IMPORT(125, sceCdApplySCmd3)
204#define I_sceRemote2_7Get DECLARE_IMPORT(128, sceRemote2_7Get)
205#define I_sceCdReadPS1BootParam DECLARE_IMPORT(148, sceCdReadPS1BootParam)
206#define I_sceCdSetFanProfile DECLARE_IMPORT(150, sceCdSetFanProfile)
207#define I_sceCdChgSys DECLARE_IMPORT(154, sceCdChgSys)
208#define I_sceCdNoticeGameStart DECLARE_IMPORT(156, sceCdNoticeGameStart)
209#define I_sceCdDeobfuscateUsingUniqueKey DECLARE_IMPORT(161, sceCdDeobfuscateUsingUniqueKey)
210#define I_sceCdXLEDCtl DECLARE_IMPORT(163, sceCdXLEDCtl)
211#define I_sceCdBuzzerCtl DECLARE_IMPORT(165, sceCdBuzzerCtl)
212#define I_sceCdXBSPowerCtl DECLARE_IMPORT(171, sceCdXBSPowerCtl)
213#define I_sceCdSetAtapiEjectCallback DECLARE_IMPORT(173, sceCdSetAtapiEjectCallback)
214#define I_sceCdSetMediumRemoval DECLARE_IMPORT(175, sceCdSetMediumRemoval)
215#define I_sceCdGetMediumRemoval DECLARE_IMPORT(177, sceCdGetMediumRemoval)
216#define I_sceCdDoesUniqueKeyExist DECLARE_IMPORT(179, sceCdDoesUniqueKeyExist)
217#define I_sceCdXDVRPReset DECLARE_IMPORT(181, sceCdXDVRPReset)
218#define I_sceCdGetWakeUpReason DECLARE_IMPORT(183, sceCdGetWakeUpReason)
219#define I_sceCdReadRegionParams DECLARE_IMPORT(189, sceCdReadRegionParams)
220#define I_sceCdWriteRegionParams DECLARE_IMPORT(191, sceCdWriteRegionParams)
221
222#ifdef __cplusplus
223}
224#endif
225
226#endif /* __CDVDMAN_H__ */
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)
int sceCdReadDiskID(unsigned int *id)
int sceCdDeobfuscateUsingUniqueKey(u8 *buffer, unsigned int shiftval, int xorval, u32 *status)
void * sceCdSetAtapiEjectCallback(int(*cb)(int reason, void *userdata), void *userdata)