diff options
author | benno <benno@FreeBSD.org> | 2003-01-14 11:37:56 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2003-01-14 11:37:56 +0000 |
commit | 44de9da1c5056fc0bb92ab81a7e876e2cb0b6515 (patch) | |
tree | 054ee4487be0d9c9f5a442e16688f745b6751a83 | |
parent | d92ba29c91c2bf4808c57fde67d9d1b7cd28f035 (diff) | |
download | FreeBSD-src-44de9da1c5056fc0bb92ab81a7e876e2cb0b6515.zip FreeBSD-src-44de9da1c5056fc0bb92ab81a7e876e2cb0b6515.tar.gz |
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
-rw-r--r-- | sys/dev/pci/pci_pci.c | 3 | ||||
-rw-r--r-- | 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; |