From 026032f06d162a3ca82cd8ce5ec4f8562707daca Mon Sep 17 00:00:00 2001 From: Tomasz Malesinski Date: Thu, 20 Sep 2007 22:13:48 +0000 Subject: PNX0101: new register names and polishing support for Clock Generation Unit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14792 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/pnx0101.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/pnx0101.h b/firmware/export/pnx0101.h index 766f3dd2ff..e344f0466e 100644 --- a/firmware/export/pnx0101.h +++ b/firmware/export/pnx0101.h @@ -220,6 +220,44 @@ struct pnx0101_timer { #define INTREQ_WEACTVLO 0x02000000 #define INTREQ_ENABLE 0x00010000 +/* General purpose DMA */ + +struct pnx0101_dma_channel { + unsigned long source; + unsigned long dest; + unsigned long length; + unsigned long config; + unsigned long enable; + unsigned long pad1; + unsigned long pad2; + unsigned long count; +}; + +#define DMACHANNEL ((volatile struct pnx0101_dma_channel *)0x80104800) + +struct pnx0101_dma { + unsigned long enable; + unsigned long stat; + unsigned long irqmask; + unsigned long softint; +}; + +#define DMA (*(volatile struct pnx0101_dma *)0x80104c00) + +struct pnx0101_audio { + unsigned long pad1; + unsigned long siocr; + unsigned long pad2; + unsigned long pad3; + unsigned long pad4; + unsigned long pad5; + unsigned long ddacctrl; + unsigned long ddacstat; + unsigned long ddacset; +}; + +#define AUDIO (*(volatile struct pnx0101_audio *)0x80200380) + #endif /* ASM */ #endif -- cgit v1.2.3