PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
libcdvd.c File Reference
#include <stdio.h>
#include <tamtypes.h>
#include <kernel.h>
#include <sifrpc.h>
#include <string.h>
#include <libcdvd.h>
#include <stdarg.h>
#include "internal.h"
+ Include dependency graph for libcdvd.c:

Go to the source code of this file.

Data Structures

struct  SearchFilePkt
 

Macros

#define CD_SERVER_INIT   0x80000592
 
#define CD_SERVER_SEARCHFILE   0x80000597
 
#define CD_SERVER_DISKREADY   0x8000059A
 
#define CD_SERVER_POFF   0x80000596
 

Functions

void _CdSemaExit (void)
 

Variables

void * _gp
 
int bindInit
 
int bindDiskReady
 
int bindSearchFile
 
SifRpcClientData_t clientInit
 
SifRpcClientData_t clientDiskReady
 
SifRpcClientData_t clientSearchFile
 
int CdDebug
 
int callbackSemaId
 
volatile int cbSema
 
volatile int CdCallbackNum
 
volatile sceCdCBFunc sceCdCallbackFunc
 
int CdThreadId
 
ee_thread_status_t CdThreadParam
 
int callbackThreadId
 
ee_thread_t callbackThreadParam
 
s32 diskReadyMode
 
s32 trayReqData
 
u32 initMode
 
SearchFilePkt searchFileSendBuff
 
u32 searchFileRecvBuff
 

Detailed Description

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 libcdvd.c.


Data Structure Documentation

◆ SearchFilePkt

struct SearchFilePkt

searchfile structure

Definition at line 47 of file libcdvd.c.

Data Fields
u8 padding[32]
char name[256]
void * dest

Macro Definition Documentation

◆ CD_SERVER_INIT

#define CD_SERVER_INIT   0x80000592

Definition at line 34 of file libcdvd.c.

◆ CD_SERVER_SEARCHFILE

#define CD_SERVER_SEARCHFILE   0x80000597

Definition at line 35 of file libcdvd.c.

◆ CD_SERVER_DISKREADY

#define CD_SERVER_DISKREADY   0x8000059A

Definition at line 36 of file libcdvd.c.

◆ CD_SERVER_POFF

#define CD_SERVER_POFF   0x80000596

XCDVDFSV only

Definition at line 38 of file libcdvd.c.

Variable Documentation

◆ _gp

void* _gp
extern

allows access to gp reg value from linker script