PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
scmd.c File Reference
#include <stdio.h>
#include <kernel.h>
#include <sifrpc.h>
#include <libcdvd.h>
#include <libcdvd-rpc.h>
#include <string.h>
#include <time.h>
#include <osd_config.h>
#include <sys/_tz_structs.h>
#include "internal.h"
+ Include dependency graph for scmd.c:

Go to the source code of this file.

Data Structures

union  sCmdSendParams_t
 

Macros

#define CD_SERVER_SCMD   0x80000593
 

Enumerations

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
}
 

Functions

void convertfrombcd (sceCdCLOCK *time)
 
int _CdCheckSCmd (int cmd)
 

Variables

int bindSCmd
 
SifRpcClientData_t clientSCmd
 
int sCmdSemaId
 
u8 sCmdRecvBuff []
 
sCmdSendParams_t sCmdSendBuff
 
int sCmdNum
 
int CdConfigRdWrNumBlocks
 

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


Data Structure Documentation

◆ sCmdSendParams_t

union sCmdSendParams_t

Definition at line 75 of file scmd.c.

+ Collaboration diagram for sCmdSendParams_t:
Data Fields
s32 s32arg
u32 u32arg
u8 bcertify[4]
sceCdCLOCK clock
struct cdvdScmdParam scmd
struct cdvdDecSetParam decSet
struct cdvdReadWriteNvmParam nvm
u8 id[8]
char mname[16]
u8 data[0x420]

Macro Definition Documentation

◆ CD_SERVER_SCMD

#define CD_SERVER_SCMD   0x80000593

blocking commands (Synchronous)

Definition at line 35 of file scmd.c.

Enumeration Type Documentation

◆ CD_SCMD_CMDS

enum CD_SCMD_CMDS

Definition at line 37 of file scmd.c.