mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Add statics and missing #includes for prototypes.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3683 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
4c1b1bfe30
commit
9596ebb701
48 changed files with 137 additions and 145 deletions
6
hw/pci.c
6
hw/pci.c
|
@ -65,7 +65,7 @@ PCIBus *pci_register_bus(pci_set_irq_fn set_irq, pci_map_irq_fn map_irq,
|
|||
return bus;
|
||||
}
|
||||
|
||||
PCIBus *pci_register_secondary_bus(PCIDevice *dev, pci_map_irq_fn map_irq)
|
||||
static PCIBus *pci_register_secondary_bus(PCIDevice *dev, pci_map_irq_fn map_irq)
|
||||
{
|
||||
PCIBus *bus;
|
||||
bus = qemu_mallocz(sizeof(PCIBus));
|
||||
|
@ -159,7 +159,7 @@ void pci_register_io_region(PCIDevice *pci_dev, int region_num,
|
|||
*(uint32_t *)(pci_dev->config + addr) = cpu_to_le32(type);
|
||||
}
|
||||
|
||||
target_phys_addr_t pci_to_cpu_addr(target_phys_addr_t addr)
|
||||
static target_phys_addr_t pci_to_cpu_addr(target_phys_addr_t addr)
|
||||
{
|
||||
return addr + pci_mem_base;
|
||||
}
|
||||
|
@ -606,7 +606,7 @@ typedef struct {
|
|||
PCIBus *bus;
|
||||
} PCIBridge;
|
||||
|
||||
void pci_bridge_write_config(PCIDevice *d,
|
||||
static void pci_bridge_write_config(PCIDevice *d,
|
||||
uint32_t address, uint32_t val, int len)
|
||||
{
|
||||
PCIBridge *s = (PCIBridge *)d;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue