|
sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
|
#include "dmaKit.h"Go to the source code of this file.
Macros | |
| #define | D_CTRL_RELE_OFF 0x0 |
| #define | D_CTRL_RELE_ON 0x1 |
| #define | D_CTRL_MFD_OFF 0x0 |
| #define | D_CTRL_MFD_RES 0x1 |
| #define | D_CTRL_MFD_VIF 0x2 |
| #define | D_CTRL_MFD_GIF 0x3 |
| #define | D_CTRL_STS_UNSPEC 0x0 |
| #define | D_CTRL_STS_SIF 0x1 |
| #define | D_CTRL_STS_SPR 0x2 |
| #define | D_CTRL_STS_IPU 0x3 |
| #define | D_CTRL_STD_OFF 0x0 |
| #define | D_CTRL_STD_VIF 0x1 |
| #define | D_CTRL_STD_GIF 0x2 |
| #define | D_CTRL_STD_SIF 0x3 |
| #define | D_CTRL_RCYC_8 0x0 |
| #define | D_CTRL_RCYC_16 0x1 |
| #define | D_CTRL_RCYC_32 0x2 |
| #define | D_CTRL_RCYC_64 0x3 |
| #define | D_CTRL_RCYC_128 0x4 |
| #define | D_CTRL_RCYC_256 0x5 |
| #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_SET_CIS(A) |
| #define | DMA_SET_CIM(A) |
| #define | DMA_SET_CPCOND(A) |
| #define | DMA_CHANNEL_VIF0 0x0 |
| #define | DMA_CHANNEL_VIF1 0x1 |
| #define | DMA_CHANNEL_GIF 0x2 |
| #define | DMA_CHANNEL_FROMIPU 0x3 |
| #define | DMA_CHANNEL_TOIPU 0x4 |
| #define | DMA_CHANNEL_SIF0 0x5 |
| #define | DMA_CHANNEL_SIF1 0x6 |
| #define | DMA_CHANNEL_SIF2 0x7 |
| #define | DMA_CHANNEL_FROMSPR 0x8 |
| #define | DMA_CHANNEL_TOSPR 0x9 |
| #define | DMA_SET_CTRL(A, B, C, D, E, F) |
Functions | |
| int | dmaKit_init (u32 RELE, u32 MFD, u32 STS, u32 STD, u32 RCYC, u16 fastwaitchannels) |
| DMAC Initilization. | |
| int | dmaKit_chan_init (u32 channel) |
| DMA Channel Initilization. | |
| #define DMA_SET_CIM | ( | A | ) |
| #define DMA_SET_CTRL | ( | A, | |
| B, | |||
| C, | |||
| D, | |||
| E, | |||
| F ) |
| int dmaKit_chan_init | ( | u32 | channel | ) |