From 44de9da1c5056fc0bb92ab81a7e876e2cb0b6515 Mon Sep 17 00:00:00 2001 From: benno Date: Tue, 14 Jan 2003 11:37:56 +0000 Subject: Make the base pcib_route_interrupt method available to other pci-pci bridge sub-classes. This allows the powerpc kernel to build again. Forgotten by: benno Spotted by: grehan --- sys/dev/pci/pci_pci.c | 3 +-- sys/dev/pci/pcib_private.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c index 40f8b8c..71d814c 100644 --- a/sys/dev/pci/pci_pci.c +++ b/sys/dev/pci/pci_pci.c @@ -51,7 +51,6 @@ #include "pcib_if.h" static int pcib_probe(device_t dev); -static int pcib_route_interrupt(device_t pcib, device_t dev, int pin); static device_method_t pcib_methods[] = { /* Device interface */ @@ -478,7 +477,7 @@ pcib_write_config(device_t dev, int b, int s, int f, int reg, u_int32_t val, int /* * Route an interrupt across a PCI bridge. */ -static int +int pcib_route_interrupt(device_t pcib, device_t dev, int pin) { device_t bus; diff --git a/sys/dev/pci/pcib_private.h b/sys/dev/pci/pcib_private.h index b6ef8b8..e897e4b 100644 --- a/sys/dev/pci/pcib_private.h +++ b/sys/dev/pci/pcib_private.h @@ -71,6 +71,7 @@ struct resource *pcib_alloc_resource(device_t dev, device_t child, int type, int int pcib_maxslots(device_t dev); u_int32_t pcib_read_config(device_t dev, int b, int s, int f, int reg, int width); void pcib_write_config(device_t dev, int b, int s, int f, int reg, u_int32_t val, int width); +int pcib_route_interrupt(device_t pcib, device_t dev, int pin); extern devclass_t pcib_devclass; -- cgit v1.1