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

Go to the source code of this file.

Data Structures

union  nCmdSendParams_t
 
struct  _cdvd_read_data
 

Macros

#define CD_SERVER_NCMD   0x80000595
 

Enumerations

enum  CdvdStCmd_t {
  CDVD_ST_CMD_START = 1 , CDVD_ST_CMD_READ , CDVD_ST_CMD_STOP , CDVD_ST_CMD_SEEK ,
  CDVD_ST_CMD_INIT , CDVD_ST_CMD_STAT , CDVD_ST_CMD_PAUSE , CDVD_ST_CMD_RESUME ,
  CDVD_ST_CMD_SEEKF
}
 
enum  CD_NCMD_CMDS {
  CD_NCMD_READ = 0x01 , CD_NCMD_CDDAREAD , CD_NCMD_DVDREAD , CD_NCMD_GETTOC ,
  CD_NCMD_SEEK , CD_NCMD_STANDBY , CD_NCMD_STOP , CD_NCMD_PAUSE ,
  CD_NCMD_STREAM , CD_NCMD_CDDASTREAM , CD_NCMD_READ_KEY , CD_NCMD_NCMD ,
  CD_NCMD_READIOPMEM , CD_NCMD_DISKREADY , CD_NCMD_READCHAIN
}
 

Functions

int sceCdStream (u32 lbn, u32 nsectors, void *buf, CdvdStCmd_t cmd, sceCdRMode *rm)
 
int sceCdCddaStream (u32 lbn, u32 nsectors, void *buf, CdvdStCmd_t cmd, sceCdRMode *rm)
 
int _CdCheckNCmd (int cmd)
 
int sceCdNCmdDiskReady (void)
 
void _CdAlignReadBuffer (void *data)
 

Variables

int bindNcmd
 
SifRpcClientData_t clientNCmd
 
int nCmdSemaId
 
int nCmdNum
 
u32 readStreamData [5]
 
u32 readData [6]
 
sceCdRChain readChainData [66]
 
u32 getTocSendBuff [3]
 
u32 _rd_intr_data [64]
 
u32 curReadPos
 
u8 tocBuff [2064]
 
u8 nCmdRecvBuff [48]
 
nCmdSendParams_t nCmdSendBuff
 
int streamStatus
 
sceCdRMode dummyMode
 
u32 seekSector
 
u32 cdda_st_buf [64/sizeof(u32)]
 

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


Data Structure Documentation

◆ nCmdSendParams_t

union nCmdSendParams_t

Definition at line 71 of file ncmd.c.

+ Collaboration diagram for nCmdSendParams_t:
Data Fields
struct cdvdNcmdParam ncmd
struct cdvdReadKeyParam readKey
u8 data[48]

◆ _cdvd_read_data

struct _cdvd_read_data

Definition at line 139 of file ncmd.c.

Data Fields
u32 size1
u32 size2
void * dest1
void * dest2
u8 src1[16]
u8 src2[16]

Macro Definition Documentation

◆ CD_SERVER_NCMD

#define CD_SERVER_NCMD   0x80000595

non-blocking commands (Non-synchronous)

Definition at line 32 of file ncmd.c.

Enumeration Type Documentation

◆ CdvdStCmd_t

Stream commands.

Definition at line 35 of file ncmd.c.

◆ CD_NCMD_CMDS

Enumerator
CD_NCMD_READCHAIN 

XCDVDFSV only

Definition at line 50 of file ncmd.c.