summaryrefslogtreecommitdiff
path: root/arm9/lib/include
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-09-09 13:42:32 -0400
committerGitHub <noreply@github.com>2020-09-09 13:42:32 -0400
commit4d9614826c565c4ad22da1c988034ff2bff4001a (patch)
tree60650bf82207f63ff387e3855f88bae86e715325 /arm9/lib/include
parent8aba1bb4d0cb579bae4d797588c3ca85466b6e20 (diff)
parent85cf49ed0d9d8837e6e5dc9537b0c77a2f966f13 (diff)
Merge pull request #284 from red031000/master
arm9 MI_dma_card and MI_dma_hblank
Diffstat (limited to 'arm9/lib/include')
-rw-r--r--arm9/lib/include/MI_dma.h6
-rw-r--r--arm9/lib/include/MI_dma_card.h8
-rw-r--r--arm9/lib/include/MI_dma_hblank.h9
3 files changed, 23 insertions, 0 deletions
diff --git a/arm9/lib/include/MI_dma.h b/arm9/lib/include/MI_dma.h
index e8938ef9..aafc798b 100644
--- a/arm9/lib/include/MI_dma.h
+++ b/arm9/lib/include/MI_dma.h
@@ -16,6 +16,12 @@ typedef void (*MIDmaCallback)(void *);
#define MI_CNT_COPY32_IF(size) (0xc4000000 | ((size)/4))
#define MI_CNT_COPY16(size) (0x80000000 | ((size)/2))
+#define MI_DMA_SRC_FIX (2UL << 23)
+#define MI_DMA_SRC_INC (0UL << 23)
+
+#define MIi_DMA_TIMING_ANY (u32)(~0)
+#define MI_DMA_TIMING_H_BLANK (2UL << 27)
+
typedef union
{
u32 b32;
diff --git a/arm9/lib/include/MI_dma_card.h b/arm9/lib/include/MI_dma_card.h
new file mode 100644
index 00000000..efd70ba6
--- /dev/null
+++ b/arm9/lib/include/MI_dma_card.h
@@ -0,0 +1,8 @@
+#ifndef POKEDIAMOND_MI_DMA_CARD_H
+#define POKEDIAMOND_MI_DMA_CARD_H
+
+#include "nitro/types.h"
+
+void MIi_CardDmaCopy32(u32 dmaNo, const void *src, void *dest, u32 size);
+
+#endif //POKEDIAMOND_MI_DMA_CARD_H
diff --git a/arm9/lib/include/MI_dma_hblank.h b/arm9/lib/include/MI_dma_hblank.h
new file mode 100644
index 00000000..1c83ef3e
--- /dev/null
+++ b/arm9/lib/include/MI_dma_hblank.h
@@ -0,0 +1,9 @@
+#ifndef POKEDIAMOND_MI_DMA_HBLANK_H
+#define POKEDIAMOND_MI_DMA_HBLANK_H
+
+#include "nitro/types.h"
+
+void MI_HBlankDmaCopy32(u32 dmaNo, const void *src, void *dest, u32 size);
+void MI_HBlankDmaCopy16(u32 dmaNo, const void *src, void *dest, u32 size);
+
+#endif //POKEDIAMOND_MI_DMA_HBLANK_H