summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/system-target.h
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-12-20 01:48:46 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-12-20 01:48:46 +0000
commitc983e3b1d25503e71d0d7cba7c921b16c216770b (patch)
treee0c0b53295106e144be44f93817c961d57e41174 /firmware/target/mips/ingenic_jz47xx/system-target.h
parent0301ed559451ba4561b21e438d29b9ee29e31353 (diff)
downloadrockbox-c983e3b1d25503e71d0d7cba7c921b16c216770b.tar.gz
rockbox-c983e3b1d25503e71d0d7cba7c921b16c216770b.tar.bz2
rockbox-c983e3b1d25503e71d0d7cba7c921b16c216770b.zip
Ingenic targets:
* LCD rework * Dynamic DMA enabling * PCM cleanup * USB: replace printf() with logf() * System: get rid of in_interrupt_mode() * Backlight: add support for software PWM git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19495 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/system-target.h')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/system-target.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-target.h b/firmware/target/mips/ingenic_jz47xx/system-target.h
index a8133140fa..39782a3222 100644
--- a/firmware/target/mips/ingenic_jz47xx/system-target.h
+++ b/firmware/target/mips/ingenic_jz47xx/system-target.h
@@ -101,7 +101,8 @@ void udelay(unsigned int usec);
void mdelay(unsigned int msec);
void power_off(void);
void system_reboot(void);
-bool in_interrupt_mode(void);
+void dma_enable(void);
+void dma_disable(void);
#define DMA_LCD_CHANNEL 0
#define DMA_NAND_CHANNEL 1
@@ -111,4 +112,6 @@ bool in_interrupt_mode(void);
#define XDMA_CALLBACK(n) DMA ## n
#define DMA_CALLBACK(n) XDMA_CALLBACK(n)
+#define DMA_IRQ(n) (IRQ_DMA_0 + n)
+
#endif /* __SYSTEM_TARGET_H_ */