PS2SDK
PS2 Homebrew Libraries
vif_registers.h File Reference
#include <tamtypes.h>
+ Include dependency graph for vif_registers.h:

Go to the source code of this file.

Data Structures

struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  VIFR
 
struct  VIFC
 

Macros

#define VU0_MEM0_START   0x11000000
 
#define VU0_MICROMEM0_START   0x11004000
 
#define VU1_MEM1_START   0x11008000
 
#define VU1_MICROMEM1_START   0x1100C000
 
#define VIF0_FIFO   0x10004000
 
#define VIF1_FIFO   0x10005000
 
#define VIF0_STAT   *(volatile u32 *)0x10003800
 
#define VIF0_FBRST   *(volatile u32 *)0x10003810
 
#define VIF0_ERR   *(volatile u32 *)0x10003820
 
#define VIF0_MARK   *(volatile u32 *)0x10003830
 
#define VIF0_CYCLE   *(volatile u32 *)0x10003840
 
#define VIF0_MODE   *(volatile u32 *)0x10003850
 
#define VIF0_NUM   *(volatile u32 *)0x10003860
 
#define VIF0_MASK   *(volatile u32 *)0x10003870
 
#define VIF0_CODE   *(volatile u32 *)0x10003880
 
#define VIF0_ITOPS   *(volatile u32 *)0x10003890
 
#define VIF0_ITOP   *(volatile u32 *)0x100038d0
 
#define VIF0_TOP   *(volatile u32 *)0x100038e0
 
#define VIF0_R0   *(volatile u32 *)0x10003900
 
#define VIF0_R1   *(volatile u32 *)0x10003910
 
#define VIF0_R2   *(volatile u32 *)0x10003920
 
#define VIF0_R3   *(volatile u32 *)0x10003930
 
#define VIF0_C0   *(volatile u32 *)0x10003940
 
#define VIF0_C1   *(volatile u32 *)0x10003950
 
#define VIF0_C2   *(volatile u32 *)0x10003960
 
#define VIF0_C3   *(volatile u32 *)0x10003970
 
#define VIF1_STAT   *(volatile u32 *)0x10003c00
 
#define VIF1_FBRST   *(volatile u32 *)0x10003c10
 
#define VIF1_ERR   *(volatile u32 *)0x10003c20
 
#define VIF1_MARK   *(volatile u32 *)0x10003c30
 
#define VIF1_CYCLE   *(volatile u32 *)0x10003c40
 
#define VIF1_MODE   *(volatile u32 *)0x10003c50
 
#define VIF1_NUM   *(volatile u32 *)0x10003c60
 
#define VIF1_MASK   *(volatile u32 *)0x10003c70
 
#define VIF1_CODE   *(volatile u32 *)0x10003c80
 
#define VIF1_ITOPS   *(volatile u32 *)0x10003c90
 
#define VIF1_BASE   *(volatile u32 *)0x10003ca0
 
#define VIF1_OFST   *(volatile u32 *)0x10003cb0
 
#define VIF1_TOPS   *(volatile u32 *)0x10003cc0
 
#define VIF1_ITOP   *(volatile u32 *)0x10003cd0
 
#define VIF1_TOP   *(volatile u32 *)0x10003ce0
 
#define VIF1_R0   *(volatile u32 *)0x10003d00
 
#define VIF1_R1   *(volatile u32 *)0x10003d10
 
#define VIF1_R2   *(volatile u32 *)0x10003d20
 
#define VIF1_R3   *(volatile u32 *)0x10003d30
 
#define VIF1_C0   *(volatile u32 *)0x10003d40
 
#define VIF1_C1   *(volatile u32 *)0x10003d50
 
#define VIF1_C2   *(volatile u32 *)0x10003d60
 
#define VIF1_C3   *(volatile u32 *)0x10003d70
 
#define VIF_SET_FBRST(RST, FBK, STP, STC)
 
#define VIF_SET_ERR(MII, ME0, ME1)
 
#define VIF_SET_MARK(MARK)   (u32)((MARK)&0x0000FFFF) << 0
 

Detailed Description

VIF registers.

Definition in file vif_registers.h.


Data Structure Documentation

◆ VIFR

struct VIFR

Definition at line 172 of file vif_registers.h.

Data Fields
u32 row

◆ VIFC

struct VIFC

Definition at line 177 of file vif_registers.h.

Data Fields
u32 column

Macro Definition Documentation

◆ VIF_SET_FBRST

#define VIF_SET_FBRST (   RST,
  FBK,
  STP,
  STC 
)
Value:
(u32)((RST)&0x00000001) << 0 | (u32)((FBK)&0x00000001) << 1 | \
(u32)((STP)&0x00000001) << 2 | (u32)((STC)&0x00000001) << 3

Definition at line 65 of file vif_registers.h.

◆ VIF_SET_ERR

#define VIF_SET_ERR (   MII,
  ME0,
  ME1 
)
Value:
(u32)((MII)&0x00000001) << 0 | (u32)((ME0)&0x00000001) << 1 | \
(u32)((ME1)&0x00000001) << 2

Definition at line 69 of file vif_registers.h.