Revision 81a322d4 hw/apb_pci.c
b/hw/apb_pci.c | ||
---|---|---|
260 | 260 |
return d->host_state.bus; |
261 | 261 |
} |
262 | 262 |
|
263 |
static void pci_pbm_init_device(SysBusDevice *dev)
|
|
263 |
static int pci_pbm_init_device(SysBusDevice *dev)
|
|
264 | 264 |
{ |
265 | 265 |
|
266 | 266 |
APBState *s; |
... | ... | |
283 | 283 |
pci_mem_data = cpu_register_io_memory(pci_apb_read, |
284 | 284 |
pci_apb_write, &s->host_state); |
285 | 285 |
sysbus_init_mmio(dev, 0x10000000ULL, pci_mem_data); |
286 |
return 0; |
|
286 | 287 |
} |
287 | 288 |
|
288 |
static void pbm_pci_host_init(PCIDevice *d)
|
|
289 |
static int pbm_pci_host_init(PCIDevice *d)
|
|
289 | 290 |
{ |
290 | 291 |
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_SUN); |
291 | 292 |
pci_config_set_device_id(d->config, PCI_DEVICE_ID_SUN_SABRE); |
... | ... | |
298 | 299 |
pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST); |
299 | 300 |
d->config[0x0D] = 0x10; // latency_timer |
300 | 301 |
d->config[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL; // header_type |
302 |
return 0; |
|
301 | 303 |
} |
302 | 304 |
|
303 | 305 |
static PCIDeviceInfo pbm_pci_host_info = { |
Also available in: Unified diff