PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
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  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

◆ VU0_MEM0_START

#define VU0_MEM0_START   0x11000000

Definition at line 11 of file vif_registers.h.

◆ VU0_MICROMEM0_START

#define VU0_MICROMEM0_START   0x11004000

Definition at line 12 of file vif_registers.h.

◆ VU1_MEM1_START

#define VU1_MEM1_START   0x11008000

Definition at line 14 of file vif_registers.h.

◆ VU1_MICROMEM1_START

#define VU1_MICROMEM1_START   0x1100C000

Definition at line 15 of file vif_registers.h.

◆ VIF0_FIFO

#define VIF0_FIFO   0x10004000

Definition at line 17 of file vif_registers.h.

◆ VIF1_FIFO

#define VIF1_FIFO   0x10005000

Definition at line 18 of file vif_registers.h.

◆ VIF0_STAT

#define VIF0_STAT   *(volatile u32 *)0x10003800

Definition at line 20 of file vif_registers.h.

◆ VIF0_FBRST

#define VIF0_FBRST   *(volatile u32 *)0x10003810

Definition at line 21 of file vif_registers.h.

◆ VIF0_ERR

#define VIF0_ERR   *(volatile u32 *)0x10003820

Definition at line 22 of file vif_registers.h.

◆ VIF0_MARK

#define VIF0_MARK   *(volatile u32 *)0x10003830

Definition at line 23 of file vif_registers.h.

◆ VIF0_CYCLE

#define VIF0_CYCLE   *(volatile u32 *)0x10003840

Definition at line 24 of file vif_registers.h.

◆ VIF0_MODE

#define VIF0_MODE   *(volatile u32 *)0x10003850

Definition at line 25 of file vif_registers.h.

◆ VIF0_NUM

#define VIF0_NUM   *(volatile u32 *)0x10003860

Definition at line 26 of file vif_registers.h.

◆ VIF0_MASK

#define VIF0_MASK   *(volatile u32 *)0x10003870

Definition at line 27 of file vif_registers.h.

◆ VIF0_CODE

#define VIF0_CODE   *(volatile u32 *)0x10003880

Definition at line 28 of file vif_registers.h.

◆ VIF0_ITOPS

#define VIF0_ITOPS   *(volatile u32 *)0x10003890

Definition at line 29 of file vif_registers.h.

◆ VIF0_ITOP

#define VIF0_ITOP   *(volatile u32 *)0x100038d0

Definition at line 30 of file vif_registers.h.

◆ VIF0_TOP

#define VIF0_TOP   *(volatile u32 *)0x100038e0

Definition at line 31 of file vif_registers.h.

◆ VIF0_R0

#define VIF0_R0   *(volatile u32 *)0x10003900

Definition at line 32 of file vif_registers.h.

◆ VIF0_R1

#define VIF0_R1   *(volatile u32 *)0x10003910

Definition at line 33 of file vif_registers.h.

◆ VIF0_R2

#define VIF0_R2   *(volatile u32 *)0x10003920

Definition at line 34 of file vif_registers.h.

◆ VIF0_R3

#define VIF0_R3   *(volatile u32 *)0x10003930

Definition at line 35 of file vif_registers.h.

◆ VIF0_C0

#define VIF0_C0   *(volatile u32 *)0x10003940

Definition at line 36 of file vif_registers.h.

◆ VIF0_C1

#define VIF0_C1   *(volatile u32 *)0x10003950

Definition at line 37 of file vif_registers.h.

◆ VIF0_C2

#define VIF0_C2   *(volatile u32 *)0x10003960

Definition at line 38 of file vif_registers.h.

◆ VIF0_C3

#define VIF0_C3   *(volatile u32 *)0x10003970

Definition at line 39 of file vif_registers.h.

◆ VIF1_STAT

#define VIF1_STAT   *(volatile u32 *)0x10003c00

Definition at line 41 of file vif_registers.h.

◆ VIF1_FBRST

#define VIF1_FBRST   *(volatile u32 *)0x10003c10

Definition at line 42 of file vif_registers.h.

◆ VIF1_ERR

#define VIF1_ERR   *(volatile u32 *)0x10003c20

Definition at line 43 of file vif_registers.h.

◆ VIF1_MARK

#define VIF1_MARK   *(volatile u32 *)0x10003c30

Definition at line 44 of file vif_registers.h.

◆ VIF1_CYCLE

#define VIF1_CYCLE   *(volatile u32 *)0x10003c40

Definition at line 45 of file vif_registers.h.

◆ VIF1_MODE

#define VIF1_MODE   *(volatile u32 *)0x10003c50

Definition at line 46 of file vif_registers.h.

◆ VIF1_NUM

#define VIF1_NUM   *(volatile u32 *)0x10003c60

Definition at line 47 of file vif_registers.h.

◆ VIF1_MASK

#define VIF1_MASK   *(volatile u32 *)0x10003c70

Definition at line 48 of file vif_registers.h.

◆ VIF1_CODE

#define VIF1_CODE   *(volatile u32 *)0x10003c80

Definition at line 49 of file vif_registers.h.

◆ VIF1_ITOPS

#define VIF1_ITOPS   *(volatile u32 *)0x10003c90

Definition at line 50 of file vif_registers.h.

◆ VIF1_BASE

#define VIF1_BASE   *(volatile u32 *)0x10003ca0

Definition at line 51 of file vif_registers.h.

◆ VIF1_OFST

#define VIF1_OFST   *(volatile u32 *)0x10003cb0

Definition at line 52 of file vif_registers.h.

◆ VIF1_TOPS

#define VIF1_TOPS   *(volatile u32 *)0x10003cc0

Definition at line 53 of file vif_registers.h.

◆ VIF1_ITOP

#define VIF1_ITOP   *(volatile u32 *)0x10003cd0

Definition at line 54 of file vif_registers.h.

◆ VIF1_TOP

#define VIF1_TOP   *(volatile u32 *)0x10003ce0

Definition at line 55 of file vif_registers.h.

◆ VIF1_R0

#define VIF1_R0   *(volatile u32 *)0x10003d00

Definition at line 56 of file vif_registers.h.

◆ VIF1_R1

#define VIF1_R1   *(volatile u32 *)0x10003d10

Definition at line 57 of file vif_registers.h.

◆ VIF1_R2

#define VIF1_R2   *(volatile u32 *)0x10003d20

Definition at line 58 of file vif_registers.h.

◆ VIF1_R3

#define VIF1_R3   *(volatile u32 *)0x10003d30

Definition at line 59 of file vif_registers.h.

◆ VIF1_C0

#define VIF1_C0   *(volatile u32 *)0x10003d40

Definition at line 60 of file vif_registers.h.

◆ VIF1_C1

#define VIF1_C1   *(volatile u32 *)0x10003d50

Definition at line 61 of file vif_registers.h.

◆ VIF1_C2

#define VIF1_C2   *(volatile u32 *)0x10003d60

Definition at line 62 of file vif_registers.h.

◆ VIF1_C3

#define VIF1_C3   *(volatile u32 *)0x10003d70

Definition at line 63 of file vif_registers.h.

◆ 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.

◆ VIF_SET_MARK

#define VIF_SET_MARK (   MARK)     (u32)((MARK)&0x0000FFFF) << 0

Definition at line 73 of file vif_registers.h.