summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-03-18 11:33:07 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-03-18 11:33:07 +0000
commit752d0bb8be47b8c2b67c7b1a3bbf2a70fd582e92 (patch)
treef416b00678e7ff3968039ac1f26577fb9fc04830
parent8970ea59767195c063f33c7d69d622eaac86a8a1 (diff)
downloadrockbox-752d0bb8be47b8c2b67c7b1a3bbf2a70fd582e92.tar.gz
rockbox-752d0bb8be47b8c2b67c7b1a3bbf2a70fd582e92.zip
Added DMA register definitions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6202 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/mcf5249.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/firmware/export/mcf5249.h b/firmware/export/mcf5249.h
index 3fe7c6c7c3..d4ed2849ce 100644
--- a/firmware/export/mcf5249.h
+++ b/firmware/export/mcf5249.h
@@ -226,4 +226,41 @@
226 226
227#define DEVICE_ID (*(volatile unsigned long *)(MBAR2 + 0x0ac)) 227#define DEVICE_ID (*(volatile unsigned long *)(MBAR2 + 0x0ac))
228 228
229/* DMA Registers ... */
230
231#define O_SAR 0x00 /* Source Address */
232#define O_DAR 0x04 /* Destination Address */
233#define O_DCR 0x08 /* DMA Control Register */
234#define O_BCR 0x0C /* 16 or 24 bits depending on BCR24BIT */
235#define O_DSR 0x10 /* DMA Status Register */
236#define O_IVR 0x14 /* Interrupt Vector Register */
237
238/* DMA Control Register bits */
239#define DMA_INT (1 << 31) /* Enable Interrupts */
240#define DMA_EEXT (1 << 30) /* Enable peripherial request */
241#define DMA_CS (1 << 29) /* Cycle Steal */
242#define DMA_AA (1 << 28) /* Auto-Align */
243#define DMA_SINC (1 << 22) /* Source Increment */
244#define DMA_SSIZE(x) (((x)&3) << 20) /* Size of source data */
245#define DMA_DINC (1 << 19) /* Destination Increment */
246#define DMA_DSIZE(x) (((x)&3) << 17) /* Size of destination data */
247#define DMA_START (1 << 16) /* Start DMA transfer */
248
249#define DMA_SIZE_DWORD 0 /* 4 bytes */
250#define DMA_SIZE_BYTE 1 /* 1 byte */
251#define DMA_SIZE_WORD 2 /* 2 bytes */
252#define DMA_SIZE_LINE 3 /* 16 bytes */
253
254/* DMA Status Register bits */
255#define DMA_CE (1 << 6) /* Configuration Error */
256#define DMA_BES (1 << 5) /* Bus error on source */
257#define DMA_BED (1 << 4) /* Bus error on destination */
258#define DMA_REQ (1 << 2) /* Request pending */
259#define DMA_BSY (1 << 1) /* DMA channel busy */
260#define DMA_DONE (1 << 0) /* Transfer has completed */
261
262/* DMAROUTE config */
263#define DMA0_REQ_AUDIO_1 0x80
264#define DMA0_REQ_AUDIO_2 0x81
265
229#endif 266#endif