mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
sun4m: implement IOMMU translation using IOMMU memory region
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
331b7fc156
commit
8413846631
2 changed files with 67 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue