}
}
-void sysbus_mmio_map(SysBusDevice *dev, int n, a_target_phys_addr addr)
+void sysbus_mmio_map(SysBusDevice *dev, int n, target_phys_addr_t addr)
{
assert(n >= 0 && n < dev->num_mmio);
/* ??? region already mapped here. */
return;
}
- if (dev->mmio[n].addr != (a_target_phys_addr)-1) {
+ if (dev->mmio[n].addr != (target_phys_addr_t)-1) {
/* Unregister previous mapping. */
cpu_register_physical_memory(dev->mmio[n].addr, dev->mmio[n].size,
IO_MEM_UNASSIGNED);
}
}
-void sysbus_init_mmio(SysBusDevice *dev, a_target_phys_addr size, int iofunc)
+void sysbus_init_mmio(SysBusDevice *dev, target_phys_addr_t size, int iofunc)
{
int n;
dev->mmio[n].iofunc = iofunc;
}
-void sysbus_init_mmio_cb(SysBusDevice *dev, a_target_phys_addr size,
+void sysbus_init_mmio_cb(SysBusDevice *dev, target_phys_addr_t size,
mmio_mapfunc cb)
{
int n;
}
DeviceState *sysbus_create_varargs(const char *name,
- a_target_phys_addr addr, ...)
+ target_phys_addr_t addr, ...)
{
DeviceState *dev;
SysBusDevice *s;
dev = qdev_create(NULL, name);
s = sysbus_from_qdev(dev);
qdev_init(dev);
- if (addr != (a_target_phys_addr)-1) {
+ if (addr != (target_phys_addr_t)-1) {
sysbus_mmio_map(s, 0, addr);
}
va_start(va, addr);