diff options
author | Avi Kivity <avi@redhat.com> | 2011-11-23 15:17:36 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-11-28 15:38:40 +0200 |
commit | f32261498c83bf434dde74f7832ead98678cb8ae (patch) | |
tree | 934f5d89f505aa9d30d1efb31e7724884c08659f /hw/omap.h | |
parent | a56e423c7c39af0fa1515d575fddfda032a02916 (diff) | |
download | hqemu-f32261498c83bf434dde74f7832ead98678cb8ae.zip hqemu-f32261498c83bf434dde74f7832ead98678cb8ae.tar.gz |
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.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |