mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
pci: use PCI_SLOT() and PCI_FUNC().
use PCI_SLOT() and PCI_FUNC() where appropriate instead of direct use of bit operation. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
e369cad7cd
commit
2217dcfff5
2 changed files with 8 additions and 6 deletions
10
hw/apb_pci.c
10
hw/apb_pci.c
|
@ -261,11 +261,13 @@ PCIBus *pci_apb_init(target_phys_addr_t special_base,
|
|||
0, 32);
|
||||
pci_create_simple(d->host_state.bus, 0, "pbm");
|
||||
/* APB secondary busses */
|
||||
*bus2 = pci_bridge_init(d->host_state.bus, 8, PCI_VENDOR_ID_SUN,
|
||||
PCI_DEVICE_ID_SUN_SIMBA, pci_apb_map_irq,
|
||||
*bus2 = pci_bridge_init(d->host_state.bus, PCI_DEVFN(1, 0),
|
||||
PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_SIMBA,
|
||||
pci_apb_map_irq,
|
||||
"Advanced PCI Bus secondary bridge 1");
|
||||
*bus3 = pci_bridge_init(d->host_state.bus, 9, PCI_VENDOR_ID_SUN,
|
||||
PCI_DEVICE_ID_SUN_SIMBA, pci_apb_map_irq,
|
||||
*bus3 = pci_bridge_init(d->host_state.bus, PCI_DEVFN(1, 1),
|
||||
PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_SIMBA,
|
||||
pci_apb_map_irq,
|
||||
"Advanced PCI Bus secondary bridge 2");
|
||||
|
||||
return d->host_state.bus;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue