summaryrefslogtreecommitdiffstats
path: root/firmware/export/pp5002.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-02-23 23:22:03 +0000
committerDave Chapman <dave@dchapman.com>2007-02-23 23:22:03 +0000
commitfda1498696258d91d950ca4260daa76e536dcce0 (patch)
tree4cc50527b5a79bd69427a8ba3e25dfc4587685f5 /firmware/export/pp5002.h
parent87865a52278d71333011794b09ad3791ca20a791 (diff)
downloadrockbox-fda1498696258d91d950ca4260daa76e536dcce0.tar.gz
rockbox-fda1498696258d91d950ca4260daa76e536dcce0.zip
Remap flash ROM to 0x20000000 on the ipods and H10s, and implement dbg_save_roms() in the debug menu for those targets to dump the content to a file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12467 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/pp5002.h')
-rw-r--r--firmware/export/pp5002.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/export/pp5002.h b/firmware/export/pp5002.h
index 52de8c4cca..ef131fe6d6 100644
--- a/firmware/export/pp5002.h
+++ b/firmware/export/pp5002.h
@@ -113,6 +113,15 @@
#define SER1_MASK (1 << SER1_IRQ)
#define DMA_OUT_MASK (1 << DMA_OUT_IRQ)
+#define MMAP0_LOGICAL (*(volatile unsigned long*)(0xf000f000))
+#define MMAP0_PHYSICAL (*(volatile unsigned long*)(0xf000f004))
+#define MMAP1_LOGICAL (*(volatile unsigned long*)(0xf000f008))
+#define MMAP1_PHYSICAL (*(volatile unsigned long*)(0xf000f00c))
+#define MMAP2_LOGICAL (*(volatile unsigned long*)(0xf000f010))
+#define MMAP2_PHYSICAL (*(volatile unsigned long*)(0xf000f014))
+#define MMAP3_LOGICAL (*(volatile unsigned long*)(0xf000f018))
+#define MMAP3_PHYSICAL (*(volatile unsigned long*)(0xf000f01c))
+
/* The PortalPlayer USB controller uses base address 0xc5000000 */
#define USB_BASE 0xc5000000