[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 35/43] hw/isa/piix4: Prefix pci_slot_get_pirq() with "piix4_"
From: |
Bernhard Beschow |
Subject: |
[PATCH v2 35/43] hw/isa/piix4: Prefix pci_slot_get_pirq() with "piix4_" |
Date: |
Sat, 22 Oct 2022 17:05:00 +0200 |
Prefixing with "piix4_" makes the method distinguishable from its
PIIX3 counterpart upon merging and also complies more with QEMU
conventions.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
hw/isa/piix4.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c
index 2f5b6fc934..dd189fa594 100644
--- a/hw/isa/piix4.c
+++ b/hw/isa/piix4.c
@@ -63,7 +63,7 @@ static void piix4_set_irq(void *opaque, int irq_num, int
level)
}
}
-static int pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num)
+static int piix4_pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num)
{
int slot;
@@ -249,7 +249,8 @@ static void piix4_realize(PCIDevice *dev, Error **errp)
qdev_get_gpio_in(DEVICE(&s->pic), 9));
}
- pci_bus_irqs(pci_bus, piix4_set_irq, pci_slot_get_pirq, s, PIIX_NUM_PIRQS);
+ pci_bus_irqs(pci_bus, piix4_set_irq, piix4_pci_slot_get_pirq, s,
+ PIIX_NUM_PIRQS);
}
static void piix4_init(Object *obj)
--
2.38.1
- [PATCH v2 26/43] meson: Fix dependencies of piix4 southbridge, (continued)
- [PATCH v2 26/43] meson: Fix dependencies of piix4 southbridge, Bernhard Beschow, 2022/10/22
- [PATCH v2 27/43] hw/isa/piix4: Add missing initialization, Bernhard Beschow, 2022/10/22
- [PATCH v2 28/43] hw/isa/piix4: Move pci_ide_create_devs() call to board code, Bernhard Beschow, 2022/10/22
- [PATCH v2 29/43] hw/isa/piix4: Make PIIX4's ACPI and USB functions optional, Bernhard Beschow, 2022/10/22
- [PATCH v2 30/43] hw/isa/piix4: Allow board to provide PCI interrupt routes, Bernhard Beschow, 2022/10/22
- [PATCH v2 31/43] hw/isa/piix4: Remove unused code, Bernhard Beschow, 2022/10/22
- [PATCH v2 32/43] hw/isa/piix4: Use ISA PIC device, Bernhard Beschow, 2022/10/22
- [PATCH v2 33/43] hw/isa/piix4: Reuse struct PIIXState from PIIX3, Bernhard Beschow, 2022/10/22
- [PATCH v2 34/43] hw/isa/piix4: Rename reset control operations to match PIIX3, Bernhard Beschow, 2022/10/22
- [PATCH v2 35/43] hw/isa/piix4: Prefix pci_slot_get_pirq() with "piix4_",
Bernhard Beschow <=
- [PATCH v2 37/43] hw/isa/piix: Harmonize names of reset control memory regions, Bernhard Beschow, 2022/10/22
- [PATCH v2 36/43] hw/isa/piix3: Merge hw/isa/piix4.c, Bernhard Beschow, 2022/10/22
- [PATCH v2 38/43] hw/isa/piix: Reuse PIIX3 base class' realize method in PIIX4, Bernhard Beschow, 2022/10/22
- [PATCH v2 39/43] hw/isa/piix: Rename functions to be shared for interrupt triggering, Bernhard Beschow, 2022/10/22
- [PATCH v2 40/43] hw/isa/piix: Consolidate IRQ triggering, Bernhard Beschow, 2022/10/22
- [PATCH v2 41/43] hw/isa/piix: Share PIIX3 base class with PIIX4, Bernhard Beschow, 2022/10/22
- [PATCH v2 42/43] hw/isa/piix: Drop the "3" from the PIIX base class, Bernhard Beschow, 2022/10/22
- [PATCH v2 43/43] hw/i386/acpi-build: Resolve PIIX ISA bridge rather than ACPI controller, Bernhard Beschow, 2022/10/22