starting to separate platform-specific code to facilitate a PC build
[gbajam22] / src / gba / dma.h
diff --git a/src/gba/dma.h b/src/gba/dma.h
new file mode 100644 (file)
index 0000000..7ff7606
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef DMA_H_
+#define DMA_H_
+
+#include <stdint.h>
+
+void dma_copy32(int channel, void *dst, void *src, int words, unsigned int flags);
+void dma_copy16(int channel, void *dst, void *src, int halfwords, unsigned int flags);
+
+void dma_fill32(int channel, void *dst, uint32_t val, int words);
+void dma_fill16(int channel, void *dst, uint16_t val, int halfwords);
+
+#endif /* DMA_H_ */