summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorFrederic Barrat2021-11-16 18:01:32 +0100
committerMichael S. Tsirkin2022-01-07 11:19:55 +0100
commit2fedf46e34d2377760b2d26cf85487b772bca6fa (patch)
tree439264ac449faed30fb76051adb07feea555a587 /hw
parentvhost-user-blk: propagate error return from generic vhost (diff)
downloadqemu-2fedf46e34d2377760b2d26cf85487b772bca6fa.tar.gz
qemu-2fedf46e34d2377760b2d26cf85487b772bca6fa.tar.xz
qemu-2fedf46e34d2377760b2d26cf85487b772bca6fa.zip
pci: Export the pci_intx() function
Move the pci_intx() definition to the PCI header file, so that it can be called from other PCI files. It is used by the next patch. Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Message-Id: <20211116170133.724751-3-fbarrat@linux.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/pci/pci.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index 322ba450e7..5d30f9ca60 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
@@ -1497,11 +1497,6 @@ static void pci_irq_handler(void *opaque, int irq_num, int level)
pci_change_irq_level(pci_dev, irq_num, change);
}
-static inline int pci_intx(PCIDevice *pci_dev)
-{
- return pci_get_byte(pci_dev->config + PCI_INTERRUPT_PIN) - 1;
-}
-
qemu_irq pci_allocate_irq(PCIDevice *pci_dev)
{
int intx = pci_intx(pci_dev);