diff options
Diffstat (limited to 'sys/amd64/pci/pci_bus.c')
-rw-r--r-- | sys/amd64/pci/pci_bus.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/amd64/pci/pci_bus.c b/sys/amd64/pci/pci_bus.c index e2d6bd6..665b46d 100644 --- a/sys/amd64/pci/pci_bus.c +++ b/sys/amd64/pci/pci_bus.c @@ -68,6 +68,14 @@ nexus_pcib_write_config(device_t dev, int bus, int slot, int func, pci_cfgregwrite(bus, slot, func, reg, data, bytes); } +/* route interrupt */ + +static int +nexus_pcib_route_interrupt(device_t bus, int device, int pin) +{ + return(pci_cfgintr(nexus_get_pcibus(bus), device, pin)); +} + static devclass_t pcib_devclass; static const char * @@ -435,6 +443,7 @@ static device_method_t nexus_pcib_methods[] = { DEVMETHOD(pcib_maxslots, nexus_pcib_maxslots), DEVMETHOD(pcib_read_config, nexus_pcib_read_config), DEVMETHOD(pcib_write_config, nexus_pcib_write_config), + DEVMETHOD(pcib_route_interrupt, nexus_pcib_route_interrupt), { 0, 0 } }; |