ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
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  SifDmaTransfer_t
 

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
 

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
}
 

Functions

u32 SifSetDma (SifDmaTransfer_t *sdd, s32 len)
 
s32 SifDmaStat (u32 id)
 

Detailed Description

EE SIF control function prototypes and structures

Definition in file sifdma.h.

Macro Definition Documentation

◆ SIF_DMA_ERT

#define SIF_DMA_ERT   0x40

Definition at line 24 of file sifdma.h.

◆ SIF_DMA_INT_I

#define SIF_DMA_INT_I   0x2

Definition at line 21 of file sifdma.h.

◆ SIF_DMA_INT_O

#define SIF_DMA_INT_O   0x4

Definition at line 22 of file sifdma.h.

◆ SIF_REG_ID_SYSTEM

#define SIF_REG_ID_SYSTEM   0x80000000

Definition at line 26 of file sifdma.h.

◆ SIF_STAT_BOOTEND

#define SIF_STAT_BOOTEND   0x40000

Bootup completed

Definition at line 50 of file sifdma.h.

◆ SIF_STAT_CMDINIT

#define SIF_STAT_CMDINIT   0x20000

SIFCMD initialized

Definition at line 48 of file sifdma.h.

◆ SIF_STAT_SIFINIT

#define SIF_STAT_SIFINIT   0x10000

SIF initialized

Definition at line 46 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_SYSREG_SUBADDR 
SIF_SYSREG_MAINADDR 
SIF_SYSREG_RPCINIT 

Definition at line 28 of file sifdma.h.

28  {
30  SIF_REG_MAINADDR = 1,
37 
38  //Used with the EE kernel. Not actually physical registers like the above, but are implemented in software.
42 };
@ SIF_SYSREG_SUBADDR
Definition: sifdma.h:39
@ SIF_SYSREG_MAINADDR
Definition: sifdma.h:40
@ SIF_REG_MAINADDR
Definition: sifdma.h:30
@ SIF_REG_SUBADDR
Definition: sifdma.h:32
@ SIF_SYSREG_RPCINIT
Definition: sifdma.h:41
@ SIF_REG_MSFLAG
Definition: sifdma.h:34
@ SIF_REG_SMFLAG
Definition: sifdma.h:36
#define SIF_REG_ID_SYSTEM
Definition: sifdma.h:26

Function Documentation

◆ SifDmaStat()

s32 SifDmaStat ( u32  id)

◆ SifSetDma()

u32 SifSetDma ( SifDmaTransfer_t sdd,
s32  len 
)