diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-01 16:12:16 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-01 16:12:16 -0500 |
commit | c227f0995e1722a1abccc28cadf0664266bd8043 (patch) | |
tree | 39e92c2f818e3e8144978740b914731613af0e40 /hw/iommu.c | |
parent | 99a0949b720a0936da2052cb9a46db04ffc6db29 (diff) |
Revert "Get rid of _t suffix"
In the very least, a change like this requires discussion on the list.
The naming convention is goofy and it causes a massive merge problem. Something
like this _must_ be presented on the list first so people can provide input
and cope with it.
This reverts commit 99a0949b720a0936da2052cb9a46db04ffc6db29.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/iommu.c')
-rw-r--r-- | hw/iommu.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/hw/iommu.c b/hw/iommu.c index 3fe0397005..20da7ab969 100644 --- a/hw/iommu.c +++ b/hw/iommu.c @@ -130,15 +130,15 @@ typedef struct IOMMUState { SysBusDevice busdev; uint32_t regs[IOMMU_NREGS]; - a_target_phys_addr iostart; + target_phys_addr_t iostart; uint32_t version; qemu_irq irq; } IOMMUState; -static uint32_t iommu_mem_readl(void *opaque, a_target_phys_addr addr) +static uint32_t iommu_mem_readl(void *opaque, target_phys_addr_t addr) { IOMMUState *s = opaque; - a_target_phys_addr saddr; + target_phys_addr_t saddr; uint32_t ret; saddr = addr >> 2; @@ -156,11 +156,11 @@ static uint32_t iommu_mem_readl(void *opaque, a_target_phys_addr addr) return ret; } -static void iommu_mem_writel(void *opaque, a_target_phys_addr addr, +static void iommu_mem_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { IOMMUState *s = opaque; - a_target_phys_addr saddr; + target_phys_addr_t saddr; saddr = addr >> 2; DPRINTF("write reg[%d] = %x\n", (int)saddr, val); @@ -250,12 +250,12 @@ static CPUWriteMemoryFunc * const iommu_mem_write[3] = { iommu_mem_writel, }; -static uint32_t iommu_page_get_flags(IOMMUState *s, a_target_phys_addr addr) +static uint32_t iommu_page_get_flags(IOMMUState *s, target_phys_addr_t addr) { uint32_t ret; - a_target_phys_addr iopte; + target_phys_addr_t iopte; #ifdef DEBUG_IOMMU - a_target_phys_addr pa = addr; + target_phys_addr_t pa = addr; #endif iopte = s->regs[IOMMU_BASE] << 4; @@ -269,11 +269,11 @@ static uint32_t iommu_page_get_flags(IOMMUState *s, a_target_phys_addr addr) return ret; } -static a_target_phys_addr iommu_translate_pa(a_target_phys_addr addr, +static target_phys_addr_t iommu_translate_pa(target_phys_addr_t addr, uint32_t pte) { uint32_t tmppte; - a_target_phys_addr pa; + target_phys_addr_t pa; tmppte = pte; pa = ((pte & IOPTE_PAGE) << 4) + (addr & ~IOMMU_PAGE_MASK); @@ -283,7 +283,7 @@ static a_target_phys_addr iommu_translate_pa(a_target_phys_addr addr, return pa; } -static void iommu_bad_addr(IOMMUState *s, a_target_phys_addr addr, +static void iommu_bad_addr(IOMMUState *s, target_phys_addr_t addr, int is_write) { DPRINTF("bad addr " TARGET_FMT_plx "\n", addr); @@ -295,12 +295,12 @@ static void iommu_bad_addr(IOMMUState *s, a_target_phys_addr addr, qemu_irq_raise(s->irq); } -void sparc_iommu_memory_rw(void *opaque, a_target_phys_addr addr, +void sparc_iommu_memory_rw(void *opaque, target_phys_addr_t addr, uint8_t *buf, int len, int is_write) { int l; uint32_t flags; - a_target_phys_addr page, phys_addr; + target_phys_addr_t page, phys_addr; while (len > 0) { page = addr & IOMMU_PAGE_MASK; |