Revision c190ea07 hw/apb_pci.c
b/hw/apb_pci.c | ||
---|---|---|
223 | 223 |
|
224 | 224 |
PCIBus *pci_apb_init(target_phys_addr_t special_base, |
225 | 225 |
target_phys_addr_t mem_base, |
226 |
qemu_irq *pic) |
|
226 |
qemu_irq *pic, PCIBus **bus2, PCIBus **bus3)
|
|
227 | 227 |
{ |
228 | 228 |
APBState *s; |
229 | 229 |
PCIDevice *d; |
230 | 230 |
int pci_mem_config, pci_mem_data, apb_config, pci_ioport; |
231 |
PCIBus *secondary; |
|
232 | 231 |
|
233 | 232 |
s = qemu_mallocz(sizeof(APBState)); |
234 | 233 |
/* Ultrasparc PBM main bus */ |
... | ... | |
269 | 268 |
d->config[0x0E] = 0x00; // header_type |
270 | 269 |
|
271 | 270 |
/* APB secondary busses */ |
272 |
secondary = pci_bridge_init(s->bus, 8, 0x108e5000, pci_apb_map_irq,
|
|
273 |
"Advanced PCI Bus secondary bridge 1");
|
|
274 |
pci_bridge_init(s->bus, 9, 0x108e5000, pci_apb_map_irq, |
|
275 |
"Advanced PCI Bus secondary bridge 2"); |
|
271 |
*bus2 = pci_bridge_init(s->bus, 8, 0x108e5000, pci_apb_map_irq,
|
|
272 |
"Advanced PCI Bus secondary bridge 1"); |
|
273 |
*bus3 = pci_bridge_init(s->bus, 9, 0x108e5000, pci_apb_map_irq,
|
|
274 |
"Advanced PCI Bus secondary bridge 2");
|
|
276 | 275 |
return s->bus; |
277 | 276 |
} |
Also available in: Unified diff