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.
This commit is contained in:
Augustin Cavalier
2022-06-09 15:57:48 -04:00
parent d13068c148
commit 2b609f8f66
@@ -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)