Revision 9596ebb7 hw/pci.c
b/hw/pci.c | ||
---|---|---|
65 | 65 |
return bus; |
66 | 66 |
} |
67 | 67 |
|
68 |
PCIBus *pci_register_secondary_bus(PCIDevice *dev, pci_map_irq_fn map_irq) |
|
68 |
static PCIBus *pci_register_secondary_bus(PCIDevice *dev, pci_map_irq_fn map_irq)
|
|
69 | 69 |
{ |
70 | 70 |
PCIBus *bus; |
71 | 71 |
bus = qemu_mallocz(sizeof(PCIBus)); |
... | ... | |
159 | 159 |
*(uint32_t *)(pci_dev->config + addr) = cpu_to_le32(type); |
160 | 160 |
} |
161 | 161 |
|
162 |
target_phys_addr_t pci_to_cpu_addr(target_phys_addr_t addr) |
|
162 |
static target_phys_addr_t pci_to_cpu_addr(target_phys_addr_t addr)
|
|
163 | 163 |
{ |
164 | 164 |
return addr + pci_mem_base; |
165 | 165 |
} |
... | ... | |
606 | 606 |
PCIBus *bus; |
607 | 607 |
} PCIBridge; |
608 | 608 |
|
609 |
void pci_bridge_write_config(PCIDevice *d, |
|
609 |
static void pci_bridge_write_config(PCIDevice *d,
|
|
610 | 610 |
uint32_t address, uint32_t val, int len) |
611 | 611 |
{ |
612 | 612 |
PCIBridge *s = (PCIBridge *)d; |
Also available in: Unified diff