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:
@@ -93,6 +93,14 @@ pci_intr_map_msi(device_t dev, pci_intr_handle_t* ihp)
|
|||||||
return pci_alloc_msi(dev, &count);
|
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*
|
static void*
|
||||||
pci_intr_establish_openbsd(device_t dev, pci_intr_handle_t ih, int level,
|
pci_intr_establish_openbsd(device_t dev, pci_intr_handle_t ih, int level,
|
||||||
int(*func)(void*), void* arg, const char* what)
|
int(*func)(void*), void* arg, const char* what)
|
||||||
|
|||||||
Reference in New Issue
Block a user