From 2b609f8f66853463253fa5a53a861c3e0726b0f1 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 9 Jun 2022 15:57:48 -0400 Subject: [PATCH] openbsd_network: Add implementation of pci_intr_map. This is not used anywhere, but X512 will need it for testing some things on RISC-V. --- src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h b/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h index 95218d26b7..68e739ebad 100644 --- a/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h +++ b/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h @@ -93,6 +93,14 @@ pci_intr_map_msi(device_t dev, pci_intr_handle_t* ihp) return pci_alloc_msi(dev, &count); } +static int +pci_intr_map(device_t dev, pci_intr_handle_t* ihp) +{ + // No need to map legacy interrupts. + ihp->rid = 0; + return 0; +} + static void* pci_intr_establish_openbsd(device_t dev, pci_intr_handle_t ih, int level, int(*func)(void*), void* arg, const char* what)