fixed 8bit writes to vmem, unaligned data buffers, and started on
[gba_blender] / src / dma.h
diff --git a/src/dma.h b/src/dma.h
new file mode 100644 (file)
index 0000000..96b1806
--- /dev/null
+++ b/src/dma.h
@@ -0,0 +1,27 @@
+/*
+gbasys - a gameboy advance hardware abstraction library
+Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+#ifndef _DMA_H_
+#define _DMA_H_
+
+void dma_copy32(int channel, void *dst, void *src, int words);
+void dma_copy16(int channel, void *dst, void *src, int halfwords);
+
+void dma_fill32(int channel, void *dst, unsigned long val, int words);
+void dma_fill16(int channel, void *dst, unsigned short val, int halfwords);
+
+#endif /* _DMA_H_ */