Revision 99a0949b hw/sysbus.c

b/hw/sysbus.c
38 38
    }
39 39
}
40 40

  
41
void sysbus_mmio_map(SysBusDevice *dev, int n, target_phys_addr_t addr)
41
void sysbus_mmio_map(SysBusDevice *dev, int n, a_target_phys_addr addr)
42 42
{
43 43
    assert(n >= 0 && n < dev->num_mmio);
44 44

  
......
46 46
        /* ??? region already mapped here.  */
47 47
        return;
48 48
    }
49
    if (dev->mmio[n].addr != (target_phys_addr_t)-1) {
49
    if (dev->mmio[n].addr != (a_target_phys_addr)-1) {
50 50
        /* Unregister previous mapping.  */
51 51
        cpu_register_physical_memory(dev->mmio[n].addr, dev->mmio[n].size,
52 52
                                     IO_MEM_UNASSIGNED);
......
82 82
    }
83 83
}
84 84

  
85
void sysbus_init_mmio(SysBusDevice *dev, target_phys_addr_t size, int iofunc)
85
void sysbus_init_mmio(SysBusDevice *dev, a_target_phys_addr size, int iofunc)
86 86
{
87 87
    int n;
88 88

  
......
93 93
    dev->mmio[n].iofunc = iofunc;
94 94
}
95 95

  
96
void sysbus_init_mmio_cb(SysBusDevice *dev, target_phys_addr_t size,
96
void sysbus_init_mmio_cb(SysBusDevice *dev, a_target_phys_addr size,
97 97
                         mmio_mapfunc cb)
98 98
{
99 99
    int n;
......
133 133
}
134 134

  
135 135
DeviceState *sysbus_create_varargs(const char *name,
136
                                   target_phys_addr_t addr, ...)
136
                                   a_target_phys_addr addr, ...)
137 137
{
138 138
    DeviceState *dev;
139 139
    SysBusDevice *s;
......
144 144
    dev = qdev_create(NULL, name);
145 145
    s = sysbus_from_qdev(dev);
146 146
    qdev_init(dev);
147
    if (addr != (target_phys_addr_t)-1) {
147
    if (addr != (a_target_phys_addr)-1) {
148 148
        sysbus_mmio_map(s, 0, addr);
149 149
    }
150 150
    va_start(va, addr);

Also available in: Unified diff