[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 18/18] hw/pci/pci.c: remove pci_allocate_irq()
|
From: |
Mark Cave-Ayland |
|
Subject: |
[RFC PATCH 18/18] hw/pci/pci.c: remove pci_allocate_irq() |
|
Date: |
Thu, 11 May 2023 09:57:31 +0100 |
This function is no longer used and can now be removed.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
hw/pci/pci.c | 8 --------
include/hw/pci/pci.h | 1 -
2 files changed, 9 deletions(-)
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index 0dd3b24b62..79eb427709 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
@@ -1670,14 +1670,6 @@ static void pci_bus_irq_handler(void *opaque, int devfn,
int level)
pci_irq_handler(pci_dev, intx, level);
}
-qemu_irq pci_allocate_irq(PCIDevice *pci_dev)
-{
- int intx = pci_intx(pci_dev);
- assert(0 <= intx && intx < PCI_NUM_PINS);
-
- return qemu_allocate_irq(pci_irq_handler, pci_dev, intx);
-}
-
void pci_set_irq(PCIDevice *pci_dev, int level)
{
qemu_set_irq(pci_dev->irq, level);
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index 935b4b91b4..080c5a0df2 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -587,7 +587,6 @@ PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const
char *name);
void lsi53c8xx_handle_legacy_cmdline(DeviceState *lsi_dev);
-qemu_irq pci_allocate_irq(PCIDevice *pci_dev);
void pci_set_irq(PCIDevice *pci_dev, int level);
static inline void pci_irq_assert(PCIDevice *pci_dev)
--
2.30.2
- [RFC PATCH 08/18] hw/net/can/can_pcm3680_pci.c: switch SerialState to use PCI device input gpio, (continued)
- [RFC PATCH 08/18] hw/net/can/can_pcm3680_pci.c: switch SerialState to use PCI device input gpio, Mark Cave-Ayland, 2023/05/11
- [RFC PATCH 09/18] hw/net/can/ctucan_pci.c: switch CtuCanPCIState to use PCI device input gpio, Mark Cave-Ayland, 2023/05/11
- [RFC PATCH 10/18] hw/net/ne2000-pci.c: switch NE2000State to use PCI device input gpio, Mark Cave-Ayland, 2023/05/11
- [RFC PATCH 11/18] hw/net/pcnet-pci.c: switch PCIPCNetState to use PCI device input gpio, Mark Cave-Ayland, 2023/05/11
- [RFC PATCH 12/18] hw/net/tulip.c: switch TULIPState to use PCI device input gpio, Mark Cave-Ayland, 2023/05/11
- [RFC PATCH 13/18] hw/scsi/esp-pci.c: switch ESPState to use PCI device input gpio, Mark Cave-Ayland, 2023/05/11
- [RFC PATCH 14/18] hw/sd/sdhci-pci.c: switch SDHCIState to use PCI device input gpio, Mark Cave-Ayland, 2023/05/11
- [RFC PATCH 15/18] hw/usb/hcd-ehci-pci.c: switch EHCIState to use PCI device input gpio, Mark Cave-Ayland, 2023/05/11
- [RFC PATCH 16/18] hw/usb/hcd-ohci-pci.c: switch OHCIState to use PCI device input gpio, Mark Cave-Ayland, 2023/05/11
- [RFC PATCH 17/18] hw/usb/hcd-uhci.c: switch UHCIState to use PCI device input gpio, Mark Cave-Ayland, 2023/05/11
- [RFC PATCH 18/18] hw/pci/pci.c: remove pci_allocate_irq(),
Mark Cave-Ayland <=