NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
EXIHardware.h
1#ifndef RVL_SDK_EXI_HARDWARE_H
2#define RVL_SDK_EXI_HARDWARE_H
3#include <revolution/EXI/EXICommon.h>
4#include <types.h>
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9typedef struct EXIChannelParam {
10 u32 cpr; // at 0x0
11 void* mar; // at 0x4
12 u32 length; // at 0x8
13 u32 cr; // at 0xC
14 u32 data; // at 0x10
16
17volatile EXIChannelParam EXI_CHAN_PARAMS[EXI_MAX_CHAN] : 0xCD006800;
18
19// CPR - Channel Parameter Register
20#define EXI_CPR_EXIINTMASK (1 << 0)
21#define EXI_CPR_EXIINT (1 << 1)
22#define EXI_CPR_TCINTMASK (1 << 2)
23#define EXI_CPR_TCINT (1 << 3)
24#define EXI_CPR_CLK (1 << 4 | 1 << 5 | 1 << 6)
25#define EXI_CPR_CS0B (1 << 7)
26#define EXI_CPR_CS1B (1 << 8)
27#define EXI_CPR_CS2B (1 << 9)
28#define EXI_CPR_EXTINTMASK (1 << 10)
29#define EXI_CPR_EXTINT (1 << 11)
30#define EXI_CPR_EXT (1 << 12)
31#define EXI_CPR_ROMDIS (1 << 13)
32
33// CR - Control Register
34#define EXI_CR_TSTART (1 << 0)
35#define EXI_CR_DMA (1 << 1)
36#define EXI_CR_RW (1 << 2 | 1 << 3)
37#define EXI_CR_TLEN (1 << 4 | 1 << 5)
38
39#ifdef __cplusplus
40}
41#endif
42#endif