Data Structures | |
struct | _dma_t |
Defines | |
#define | dma(channel, dst, src, length, attr) DMA(channel, dst, src, length, attr) |
#define | set_dma_src(channel, src) SET_DMA_SRC(channel, src) |
#define | set_dma_dst(channel, dst) SET_DMA_DST(channel, dst) |
#define | set_dma_cnt_l(channel, cnt_l) SET_DMA_CNT_L(channel, cnt_l) |
#define | set_dma_cnt_h(channel, cnt_h) SET_DMA_CNT_H(channel, cnt_h) |
#define | set_dma_irq(channel, irq) SET_DMA_IRQ(channel, irq) |
#define | get_dma_irq(channel) GET_DMA_IRQ(channel) |
#define | dmemcpy(channel, dst, src, size) DMEMCPY(channel, dst, src, size) |
|
Value: {GET_DMA_DST(channel) = (u32)(dst); \ GET_DMA_SRC(channel) = (u32)(src); \ GET_DMA_CNT_L(channel) = (length); \ GET_DMA_CNT_H(channel) = (attr);} |
|
Value: {GET_DMA_CNT_H(channel) &= _DMA_IRQ_MASK; \ GET_DMA_CNT_H(channel) |= (irq) << _DMA_IRQ_POS;} |
|
Value: {if ((channel) <= 3) { \ DMACPY16(channel, dst, src, (size) >> 1) \ } else { \ memcpy(dst, src, size); \ }} |
|
Value: {_dmaset16_value = (val); \ DMA(channel, dst, &_dmaset16_value, size, DMA_SRC_UNMOD | DMA_SIZE_16 | DMA_ENABLE | DMA_START_NOW);} |
|
Value: {_dmaset32_value = (val); \ DMA(channel, dst, &_dmaset32_value, size, DMA_SRC_UNMOD | DMA_SIZE_32 | DMA_ENABLE | DMA_START_NOW);} |
|
DMA Attribute defines: */ #define DMA_DST_INC #define DMA_DST_DEC #define DMA_DST_UNMOD #define DMA_DST_INCRL #define DMA_SRC_INC #define DMA_SRC_DEC #define DMA_SRC_UNMOD #define DMA_REPEAT #define DMA_SIZE_16 #define DMA_SIZE_32 #define DMA_START_NOW #define DMA_START_VBL #define DMA_START_HBL #define DMA_START_FIFO #define DMA_IRQ #define DMA_ENABLE |
|
|
|
|
|
|
|
DMA Attribute defines: */ #define DMA_DST_INC #define DMA_DST_DEC #define DMA_DST_UNMOD #define DMA_DST_INCRL #define DMA_SRC_INC #define DMA_SRC_DEC #define DMA_SRC_UNMOD #define DMA_REPEAT #define DMA_SIZE_16 #define DMA_SIZE_32 #define DMA_START_NOW #define DMA_START_VBL #define DMA_START_HBL #define DMA_START_FIFO #define DMA_IRQ #define DMA_ENABLE |
|
|
|
|
|
dmemcpy() type defines: These are Mushroom specific, not GBA values. */ #define CPY_DMA0 #define CPY_DMA1 #define CPY_DMA2 #define CPY_DMA3 #define CPY_MEMCPY |