aboutsummaryrefslogtreecommitdiff
path: root/hw/omap.h
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-18 12:14:41 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-18 12:14:41 +0000
commitc66fb5bc0a1a1f04083fd52467d4e72942f7d38b (patch)
treeece4cd1d76c57074e8a7ec29ae5833a7015c3c41 /hw/omap.h
parent4eeed608c5999f52c1fe682262721fb01aee26e9 (diff)
Collapse omap peripherals on L4 bus into one io entry (temporarily).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4489 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/omap.h')
-rw-r--r--hw/omap.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/omap.h b/hw/omap.h
index af0a469860..f7b3b1d7bc 100644
--- a/hw/omap.h
+++ b/hw/omap.h
@@ -71,6 +71,7 @@ struct omap_target_agent_s;
struct omap_target_agent_s *omap_l4ta_get(struct omap_l4_s *bus, int cs);
target_phys_addr_t omap_l4_attach(struct omap_target_agent_s *ta, int region,
int iotype);
+# define l4_register_io_memory cpu_register_io_memory
struct omap_intr_handler_s;
struct omap_intr_handler_s *omap_inth_init(target_phys_addr_t base,
@@ -1135,4 +1136,13 @@ inline static int debug_register_io_memory(int io_index,
# define cpu_register_io_memory debug_register_io_memory
# endif
+/* Define when we want to reduce the number of IO regions registered. */
+# define L4_MUX_HACK
+
+# ifdef L4_MUX_HACK
+# undef l4_register_io_memory
+int l4_register_io_memory(int io_index, CPUReadMemoryFunc **mem_read,
+ CPUWriteMemoryFunc **mem_write, void *opaque);
+# endif
+
#endif /* hw_omap_h */