diff options
author | red031000 <rubenru09@aol.com> | 2020-06-14 17:32:24 +0100 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2020-06-14 17:34:02 +0100 |
commit | 7a7bce2bc77bf7886916787cb09f6d39704818c3 (patch) | |
tree | e707a1371a93def4ae868296b0f3415c0c0ef6bb /include/nitro/MI_dma_shared.h | |
parent | 1406a7a34713f0305160583b056721a5dd525df7 (diff) |
arm7 OS_spinLock
Diffstat (limited to 'include/nitro/MI_dma_shared.h')
-rw-r--r-- | include/nitro/MI_dma_shared.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/nitro/MI_dma_shared.h b/include/nitro/MI_dma_shared.h new file mode 100644 index 00000000..e839417a --- /dev/null +++ b/include/nitro/MI_dma_shared.h @@ -0,0 +1,37 @@ +/* + * NOTE: + * This file is shared between ARM9 and ARM7 + * DO NOT PUT PROC SPECIFIC CODE IN HERE + * Thank You! + */ + +/* + * DO NOT INCLUDE THIS FILE DIRECTLY + * Include MI_dma.h from the specific proc's lib + */ + +#ifndef GUARD_DMA_SHARED_H +#define GUARD_DMA_SHARED_H + +#define REG_ADDR_DMA0SAD 0x040000b0 + +#define DMA_DEST_INC 0x0000 +#define DMA_DEST_DEC 0x0020 +#define DMA_DEST_FIXED 0x0040 +#define DMA_DEST_RELOAD 0x0060 +#define DMA_SRC_INC 0x0000 +#define DMA_SRC_DEC 0x0080 +#define DMA_SRC_FIXED 0x0100 +#define DMA_REPEAT 0x0200 +#define DMA_16BIT 0x0000 +#define DMA_32BIT 0x0400 +#define DMA_DREQ_ON 0x0800 +#define DMA_START_NOW 0x0000 +#define DMA_START_VBLANK 0x1000 +#define DMA_START_HBLANK 0x2000 +#define DMA_START_SPECIAL 0x3000 +#define DMA_START_MASK 0x3000 +#define DMA_INTR_ENABLE 0x4000 +#define DMA_ENABLE 0x8000 + +#endif |