PS2SDK
PS2 Homebrew Libraries
sifdma.h File Reference
#include <tamtypes.h>
+ Include dependency graph for sifdma.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  t_SifDmaTransfer
 

Macros

#define SIF_DMA_INT_I   0x2
 
#define SIF_DMA_INT_O   0x4
 
#define SIF_DMA_ERT   0x40
 
#define SIF_REG_ID_SYSTEM   0x80000000
 
#define SIF_STAT_SIFINIT   0x10000
 
#define SIF_STAT_CMDINIT   0x20000
 
#define SIF_STAT_BOOTEND   0x40000
 
#define SifDmaStat(...)   sceSifDmaStat(__VA_ARGS__)
 
#define SifSetDma(...)   sceSifSetDma(__VA_ARGS__)
 

Typedefs

typedef struct t_SifDmaTransfer SifDmaTransfer_t
 

Enumerations

enum  _sif_regs {
  SIF_REG_MAINADDR = 1, SIF_REG_SUBADDR, SIF_REG_MSFLAG, SIF_REG_SMFLAG,
  SIF_SYSREG_SUBADDR = SIF_REG_ID_SYSTEM | 0, SIF_SYSREG_MAINADDR, SIF_SYSREG_RPCINIT, SIF_REG_MAINADDR = 1,
  SIF_REG_SUBADDR, SIF_REG_MSFLAG, SIF_REG_SMFLAG
}
 

Functions

int sceSifDmaStat (int trid)
 
int sceSifSetDma (SifDmaTransfer_t *dmat, int count)
 

Detailed Description

EE SIF control function prototypes and structures

Definition in file sifdma.h.


Data Structure Documentation

◆ t_SifDmaTransfer

struct t_SifDmaTransfer

Definition at line 52 of file sifdma.h.

Data Fields
void * src
void * dest
int size
int attr

Macro Definition Documentation

◆ SIF_STAT_SIFINIT

#define SIF_STAT_SIFINIT   0x10000

SIF initialized

Definition at line 46 of file sifdma.h.

◆ SIF_STAT_CMDINIT

#define SIF_STAT_CMDINIT   0x20000

SIFCMD initialized

Definition at line 48 of file sifdma.h.

◆ SIF_STAT_BOOTEND

#define SIF_STAT_BOOTEND   0x40000

Bootup completed

Definition at line 50 of file sifdma.h.

Enumeration Type Documentation

◆ _sif_regs

enum _sif_regs
Enumerator
SIF_REG_MAINADDR 

Main -> sub-CPU command buffer (MSCOM)

SIF_REG_SUBADDR 

Sub -> main-CPU command buffer (SMCOM)

SIF_REG_MSFLAG 

Main -> sub-CPU flag (MSFLAG)

SIF_REG_SMFLAG 

Sub -> main-CPU flag (SMFLAG)

SIF_REG_MAINADDR 

Main -> sub-CPU command buffer (MSCOM)

SIF_REG_SUBADDR 

Sub -> main-CPU command buffer (SMCOM)

SIF_REG_MSFLAG 

Main -> sub-CPU flag (MSFLAG)

SIF_REG_SMFLAG 

Sub -> main-CPU flag (SMFLAG)

Definition at line 28 of file sifdma.h.