mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
pci: Convert to realize
Convert i82801b11, io3130_upstream, io3130_downstream and pcie_root_port devices to realize. Cc: mst@redhat.com Cc: marcel@redhat.com Cc: armbru@redhat.com Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
2784127857
commit
f8cd1b0201
8 changed files with 56 additions and 50 deletions
|
@ -33,7 +33,8 @@
|
|||
#define PCI_BRIDGE_DEV_PROP_SHPC "shpc"
|
||||
|
||||
int pci_bridge_ssvid_init(PCIDevice *dev, uint8_t offset,
|
||||
uint16_t svid, uint16_t ssid);
|
||||
uint16_t svid, uint16_t ssid,
|
||||
Error **errp);
|
||||
|
||||
PCIDevice *pci_bridge_get_device(PCIBus *bus);
|
||||
PCIBus *pci_bridge_get_sec_bus(PCIBridge *br);
|
||||
|
|
|
@ -84,7 +84,8 @@ struct PCIExpressDevice {
|
|||
#define COMPAT_PROP_PCP "power_controller_present"
|
||||
|
||||
/* PCI express capability helper functions */
|
||||
int pcie_cap_init(PCIDevice *dev, uint8_t offset, uint8_t type, uint8_t port);
|
||||
int pcie_cap_init(PCIDevice *dev, uint8_t offset, uint8_t type,
|
||||
uint8_t port, Error **errp);
|
||||
int pcie_cap_v1_init(PCIDevice *dev, uint8_t offset,
|
||||
uint8_t type, uint8_t port);
|
||||
int pcie_endpoint_cap_init(PCIDevice *dev, uint8_t offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue