From 9bb4cca1abdb9789c98fbab4387bed3091cb6f26 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 27 Jan 2025 22:16:51 -0500 Subject: kernel/amd64: pci: Add PCI MSI-X EOI wrapper Add machine-independent PCI MSI-X EOI wrapper to Local APIC EOI function Signed-off-by: Ian Moffett --- sys/arch/amd64/pci/pci_machdep.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sys/arch/amd64/pci') diff --git a/sys/arch/amd64/pci/pci_machdep.c b/sys/arch/amd64/pci/pci_machdep.c index 1cc2162..d2d4e72 100644 --- a/sys/arch/amd64/pci/pci_machdep.c +++ b/sys/arch/amd64/pci/pci_machdep.c @@ -140,6 +140,16 @@ pci_map_bar(struct pci_device *dev, uint8_t barno, void **vap) return bus_map(bar, size, 0, vap); } +void +pci_msix_eoi(void) +{ + /* + * On AMD64 all we need to do is send an EOI to the + * Local APIC onboard the current processor. + */ + lapic_eoi(); +} + /* * Enable MSI-X for a device and allocate an * interrupt vector. -- cgit v1.2.3