From 8413846631113f42f0cd18165f465a6193af7f30 Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Fri, 27 Oct 2017 13:09:03 +0100 Subject: sun4m: implement IOMMU translation using IOMMU memory region Signed-off-by: Mark Cave-Ayland --- include/hw/sparc/sun4m.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/hw/sparc/sun4m.h b/include/hw/sparc/sun4m.h index 1f1cf91ed9..6e21e1046f 100644 --- a/include/hw/sparc/sun4m.h +++ b/include/hw/sparc/sun4m.h @@ -12,11 +12,16 @@ #define TYPE_SUN4M_IOMMU "iommu" #define SUN4M_IOMMU(obj) OBJECT_CHECK(IOMMUState, (obj), TYPE_SUN4M_IOMMU) +#define TYPE_SUN4M_IOMMU_MEMORY_REGION "sun4m-iommu-memory-region" + #define IOMMU_NREGS (4 * 4096 / 4) typedef struct IOMMUState { SysBusDevice parent_obj; + AddressSpace iommu_as; + IOMMUMemoryRegion iommu; + MemoryRegion iomem; uint32_t regs[IOMMU_NREGS]; hwaddr iostart; -- cgit v1.2.1