diff options
author | Philippe Mathieu-Daudé | 2018-10-10 23:53:53 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2018-11-05 19:24:02 +0100 |
commit | c6329a2d0976661a466e02e29f50ce7b708cb8eb (patch) | |
tree | 40824dd17850755013808dfe8bdf89d4d203b22c /hw/pci-bridge/xio3130_upstream.c | |
parent | tests/bios-tables-test: add 64-bit PCI MMIO aperture round-up test on Q35 (diff) | |
download | qemu-c6329a2d0976661a466e02e29f50ce7b708cb8eb.tar.gz qemu-c6329a2d0976661a466e02e29f50ce7b708cb8eb.tar.xz qemu-c6329a2d0976661a466e02e29f50ce7b708cb8eb.zip |
hw/pci-bridge/xio3130: Remove unused functions
Introduced in 48ebf2f90f8 and faf1e708d5b, these functions
were never used. Remove them.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci-bridge/xio3130_upstream.c')
-rw-r--r-- | hw/pci-bridge/xio3130_upstream.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/hw/pci-bridge/xio3130_upstream.c b/hw/pci-bridge/xio3130_upstream.c index bca2f9a5ea..b524908cf1 100644 --- a/hw/pci-bridge/xio3130_upstream.c +++ b/hw/pci-bridge/xio3130_upstream.c @@ -23,7 +23,7 @@ #include "hw/pci/pci_ids.h" #include "hw/pci/msi.h" #include "hw/pci/pcie.h" -#include "xio3130_upstream.h" +#include "hw/pci/pcie_port.h" #define PCI_DEVICE_ID_TI_XIO3130U 0x8232 /* upstream port */ #define XIO3130_REVISION 0x2 @@ -108,28 +108,6 @@ static void xio3130_upstream_exitfn(PCIDevice *d) pci_bridge_exitfn(d); } -PCIEPort *xio3130_upstream_init(PCIBus *bus, int devfn, bool multifunction, - const char *bus_name, pci_map_irq_fn map_irq, - uint8_t port) -{ - PCIDevice *d; - PCIBridge *br; - DeviceState *qdev; - - d = pci_create_multifunction(bus, devfn, multifunction, "x3130-upstream"); - if (!d) { - return NULL; - } - br = PCI_BRIDGE(d); - - qdev = DEVICE(d); - pci_bridge_map_irq(br, bus_name, map_irq); - qdev_prop_set_uint8(qdev, "port", port); - qdev_init_nofail(qdev); - - return PCIE_PORT(d); -} - static const VMStateDescription vmstate_xio3130_upstream = { .name = "xio3130-express-upstream-port", .priority = MIG_PRI_PCI_BUS, |