PS2SDK
PS2 Homebrew Libraries
|
#include <tamtypes.h>
Go to the source code of this file.
Macros | |
#define | DMA_REG_CTRL (volatile u32 *)0x1000E000 |
#define | DMA_REG_STAT (volatile u32 *)0x1000E010 |
#define | DMA_REG_PCR (volatile u32 *)0x1000E020 |
#define | DMA_REG_SQWC (volatile u32 *)0x1000E030 |
#define | DMA_REG_RBSR (volatile u32 *)0x1000E040 |
#define | DMA_REG_RBOR (volatile u32 *)0x1000E050 |
#define | DMA_REG_STADR (volatile u32 *)0x1000E060 |
#define | DMA_REG_ENABLER (volatile u32 *)0x1000F520 |
#define | DMA_REG_ENABLEW (volatile u32 *)0x1000F590 |
#define | DMAE_DISABLE 0 |
#define | DMAE_ENABLE 1 |
#define | RELE_OFF 0 |
#define | RELE_ON 1 |
#define | MFD_OFF 0 |
#define | MFD_RES 1 |
#define | MFD_VIF 2 |
#define | MFD_GIF 3 |
#define | STS_UNSPEC 0 |
#define | STS_SIF 1 |
#define | STS_SPR 2 |
#define | STS_IPU 3 |
#define | STD_OFF 0 |
#define | STD_VIF 1 |
#define | STD_GIF 2 |
#define | STD_SIF 3 |
#define | RCYC_8 0 |
#define | RCYC_16 1 |
#define | RCYC_32 2 |
#define | RCYC_64 3 |
#define | RCYC_128 4 |
#define | RCYC_256 5 |
#define | DMA_SET_CTRL(DMAE, RELE, MFD, STS, STD, RCYC) |
#define | DMA_SET_STAT(CIS, SIS, MEIS, BEIS, CIM, SIM, MEIM) |
#define | DMA_SET_PCR(CPCOND, CDE, PCE) |
#define | DMA_SET_SQWC(SQWC, TQWC) (u32)((SQWC) & 0x000000FF) << 0 | (u32)((TQWC) & 0x000000FF) << 16 |
#define | DMA_SET_RBOR(ADDR) (u32)((ADDR) & 0x00007FFF) |
#define | DMA_SET_RBSR(RMSK) (u32)((RMSK) & 0x00007FFF) |
#define | DMA_SET_STADR(ADDR) (u32)((ADDR) & 0x00007FFF) |
#define | DMA_SET_ENABLEW(A) (u32)((A) & 0x00000001) << 16 |
#define | DMA_SET_ENABLER(A) (u32)((A) & 0x00000001) << 16 |
#define | DMA_SET_CHCR(DIR, MODE, ASP, TTE, TIE, STR, TAG) |
#define | DMA_SET_MADR(ADDR, SPR) (u32)((ADDR) & 0x7FFFFFFF) << 0 | (u32)((SPR) & 0x00000001) << 31 |
#define | DMA_SET_TADR(ADDR, SPR) (u32)((ADDR) & 0x7FFFFFFF) << 0 | (u32)((SPR) & 0x00000001) << 31 |
#define | DMA_SET_ASR0(ADDR, SPR) (u32)((ADDR) & 0x7FFFFFFF) << 0 | (u32)((SPR) & 0x00000001) << 31 |
#define | DMA_SET_ASR1(ADDR, SPR) (u32)((ADDR) & 0x7FFFFFFF) << 0 | (u32)((SPR) & 0x00000001) << 31 |
#define | DMA_SET_SADR(ADDR) (u32)((ADDR) & 0x00003FFF) |
#define | DMA_SET_QWC(QWC) (u32)((QWC) & 0x0000FFFF) |
DMA registers
Definition in file dma_registers.h.
#define DMA_REG_CTRL (volatile u32 *)0x1000E000 |
DMA Control Register
Definition at line 22 of file dma_registers.h.
#define DMA_REG_STAT (volatile u32 *)0x1000E010 |
Interrupt Status Register
Definition at line 24 of file dma_registers.h.
#define DMA_REG_PCR (volatile u32 *)0x1000E020 |
Priority Control Register
Definition at line 26 of file dma_registers.h.
#define DMA_REG_SQWC (volatile u32 *)0x1000E030 |
Interleave Size Register
Definition at line 28 of file dma_registers.h.
#define DMA_REG_RBSR (volatile u32 *)0x1000E040 |
Ring Buffer Size Register
Definition at line 30 of file dma_registers.h.
#define DMA_REG_RBOR (volatile u32 *)0x1000E050 |
Ring Buffer Address Register
Definition at line 32 of file dma_registers.h.
#define DMA_REG_STADR (volatile u32 *)0x1000E060 |
Stall Address Register
Definition at line 34 of file dma_registers.h.
#define DMA_REG_ENABLER (volatile u32 *)0x1000F520 |
DMA Hold State Register
Definition at line 36 of file dma_registers.h.
#define DMA_REG_ENABLEW (volatile u32 *)0x1000F590 |
DMA Hold Control Register
Definition at line 38 of file dma_registers.h.
#define DMAE_DISABLE 0 |
Enable DMA Controller
Definition at line 41 of file dma_registers.h.
#define DMAE_ENABLE 1 |
Definition at line 42 of file dma_registers.h.
#define RELE_OFF 0 |
Enable Cycle Stealing
Definition at line 45 of file dma_registers.h.
#define RELE_ON 1 |
Definition at line 46 of file dma_registers.h.
#define MFD_OFF 0 |
fifo drain?
Definition at line 49 of file dma_registers.h.
#define MFD_RES 1 |
Definition at line 50 of file dma_registers.h.
#define MFD_VIF 2 |
Definition at line 51 of file dma_registers.h.
#define MFD_GIF 3 |
Definition at line 52 of file dma_registers.h.
#define STS_UNSPEC 0 |
stall source?
Definition at line 55 of file dma_registers.h.
#define STS_SIF 1 |
Definition at line 56 of file dma_registers.h.
#define STS_SPR 2 |
Definition at line 57 of file dma_registers.h.
#define STS_IPU 3 |
Definition at line 58 of file dma_registers.h.
#define STD_OFF 0 |
stall drain?
Definition at line 61 of file dma_registers.h.
#define STD_VIF 1 |
Definition at line 62 of file dma_registers.h.
#define STD_GIF 2 |
Definition at line 63 of file dma_registers.h.
#define STD_SIF 3 |
Definition at line 64 of file dma_registers.h.
#define RCYC_8 0 |
Cycles to release control
Definition at line 67 of file dma_registers.h.
#define RCYC_16 1 |
Definition at line 68 of file dma_registers.h.
#define RCYC_32 2 |
Definition at line 69 of file dma_registers.h.
#define RCYC_64 3 |
Definition at line 70 of file dma_registers.h.
#define RCYC_128 4 |
Definition at line 71 of file dma_registers.h.
#define RCYC_256 5 |
Definition at line 72 of file dma_registers.h.
#define DMA_SET_CTRL | ( | DMAE, | |
RELE, | |||
MFD, | |||
STS, | |||
STD, | |||
RCYC | |||
) |
Definition at line 74 of file dma_registers.h.
#define DMA_SET_STAT | ( | CIS, | |
SIS, | |||
MEIS, | |||
BEIS, | |||
CIM, | |||
SIM, | |||
MEIM | |||
) |
Definition at line 79 of file dma_registers.h.
#define DMA_SET_PCR | ( | CPCOND, | |
CDE, | |||
PCE | |||
) |
Definition at line 85 of file dma_registers.h.
#define DMA_SET_SQWC | ( | SQWC, | |
TQWC | |||
) | (u32)((SQWC) & 0x000000FF) << 0 | (u32)((TQWC) & 0x000000FF) << 16 |
Definition at line 89 of file dma_registers.h.
#define DMA_SET_RBOR | ( | ADDR | ) | (u32)((ADDR) & 0x00007FFF) |
Definition at line 92 of file dma_registers.h.
#define DMA_SET_RBSR | ( | RMSK | ) | (u32)((RMSK) & 0x00007FFF) |
Definition at line 94 of file dma_registers.h.
#define DMA_SET_STADR | ( | ADDR | ) | (u32)((ADDR) & 0x00007FFF) |
Definition at line 96 of file dma_registers.h.
#define DMA_SET_ENABLEW | ( | A | ) | (u32)((A) & 0x00000001) << 16 |
Definition at line 98 of file dma_registers.h.
#define DMA_SET_ENABLER | ( | A | ) | (u32)((A) & 0x00000001) << 16 |
Definition at line 100 of file dma_registers.h.
#define DMA_SET_CHCR | ( | DIR, | |
MODE, | |||
ASP, | |||
TTE, | |||
TIE, | |||
STR, | |||
TAG | |||
) |
Per-dma channel registers
Definition at line 103 of file dma_registers.h.
#define DMA_SET_MADR | ( | ADDR, | |
SPR | |||
) | (u32)((ADDR) & 0x7FFFFFFF) << 0 | (u32)((SPR) & 0x00000001) << 31 |
Definition at line 109 of file dma_registers.h.
#define DMA_SET_TADR | ( | ADDR, | |
SPR | |||
) | (u32)((ADDR) & 0x7FFFFFFF) << 0 | (u32)((SPR) & 0x00000001) << 31 |
Definition at line 112 of file dma_registers.h.
#define DMA_SET_ASR0 | ( | ADDR, | |
SPR | |||
) | (u32)((ADDR) & 0x7FFFFFFF) << 0 | (u32)((SPR) & 0x00000001) << 31 |
Definition at line 115 of file dma_registers.h.
#define DMA_SET_ASR1 | ( | ADDR, | |
SPR | |||
) | (u32)((ADDR) & 0x7FFFFFFF) << 0 | (u32)((SPR) & 0x00000001) << 31 |
Definition at line 118 of file dma_registers.h.
#define DMA_SET_SADR | ( | ADDR | ) | (u32)((ADDR) & 0x00003FFF) |
Definition at line 121 of file dma_registers.h.
#define DMA_SET_QWC | ( | QWC | ) | (u32)((QWC) & 0x0000FFFF) |
Definition at line 123 of file dma_registers.h.