aboutsummaryrefslogtreecommitdiff
path: root/hw/omap.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-11-23 15:17:36 +0200
committerAvi Kivity <avi@redhat.com>2011-11-28 15:38:40 +0200
commitf32261498c83bf434dde74f7832ead98678cb8ae (patch)
tree934f5d89f505aa9d30d1efb31e7724884c08659f /hw/omap.h
parenta56e423c7c39af0fa1515d575fddfda032a02916 (diff)
downloadqemu-f32261498c83bf434dde74f7832ead98678cb8ae.zip
qemu-f32261498c83bf434dde74f7832ead98678cb8ae.tar.gz
qemu-f32261498c83bf434dde74f7832ead98678cb8ae.tar.bz2
omap_l4: add memory API variant of omap_l4_attach()
Also add omap_l4_region_size(), since memory API functions need the size during initialization. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/omap.h')
-rw-r--r--hw/omap.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/omap.h b/hw/omap.h
index d12f402..367ba11 100644
--- a/hw/omap.h
+++ b/hw/omap.h
@@ -84,7 +84,8 @@ struct omap_target_agent_s {
uint32_t control;
uint32_t status;
};
-struct omap_l4_s *omap_l4_init(target_phys_addr_t base, int ta_num);
+struct omap_l4_s *omap_l4_init(MemoryRegion *address_space,
+ target_phys_addr_t base, int ta_num);
struct omap_target_agent_s;
struct omap_target_agent_s *omap_l4ta_get(
@@ -94,8 +95,12 @@ struct omap_target_agent_s *omap_l4ta_get(
int cs);
target_phys_addr_t omap_l4_attach(struct omap_target_agent_s *ta, int region,
int iotype);
+target_phys_addr_t omap_l4_attach_region(struct omap_target_agent_s *ta,
+ int region, MemoryRegion *mr);
target_phys_addr_t omap_l4_region_base(struct omap_target_agent_s *ta,
int region);
+target_phys_addr_t omap_l4_region_size(struct omap_target_agent_s *ta,
+ int region);
/* OMAP2 SDRAM controller */
struct omap_sdrc_s;