aboutsummaryrefslogtreecommitdiff
path: root/hw/pci_bridge_dev.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2013-03-07 16:17:00 -0700
committerMichael S. Tsirkin <mst@redhat.com>2013-03-26 21:02:17 +0200
commitea7cfed68bb4f26fc65b078ab735a4097e9b4fe2 (patch)
treed6d6ddd85808a3042e68536a31b04dbf1122059d /hw/pci_bridge_dev.c
parent659fefeed36a4b58191595cebab2dbc003788d90 (diff)
pci_bridge: Remove duplicate IRQ swizzle function
pci_bridge_dev_map_irq_fn() is identical to pci_swizzle_map_irq_fn(), which is now the default for all PCI bridges. We can therefore remove this function and the pci_bridge_map_irq() call that used it. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci_bridge_dev.c')
-rw-r--r--hw/pci_bridge_dev.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/hw/pci_bridge_dev.c b/hw/pci_bridge_dev.c
index 9cc6a4082d..840ef43f00 100644
--- a/hw/pci_bridge_dev.c
+++ b/hw/pci_bridge_dev.c
@@ -36,21 +36,12 @@ struct PCIBridgeDev {
};
typedef struct PCIBridgeDev PCIBridgeDev;
-/* Mapping mandated by PCI-to-PCI Bridge architecture specification,
- * revision 1.2 */
-/* Table 9-1: Interrupt Binding for Devices Behind a Bridge */
-static int pci_bridge_dev_map_irq_fn(PCIDevice *dev, int irq_num)
-{
- return (irq_num + PCI_SLOT(dev->devfn)) % PCI_NUM_PINS;
-}
-
static int pci_bridge_dev_initfn(PCIDevice *dev)
{
PCIBridge *br = DO_UPCAST(PCIBridge, dev, dev);
PCIBridgeDev *bridge_dev = DO_UPCAST(PCIBridgeDev, bridge, br);
int err;
- pci_bridge_map_irq(br, NULL, pci_bridge_dev_map_irq_fn);
err = pci_bridge_initfn(dev);
if (err) {
goto bridge_error;