summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-09-06 22:14:00 +0000
committerjhb <jhb@FreeBSD.org>2002-09-06 22:14:00 +0000
commit6e666d91a9b94017de7e8dcd7c4a45f913f01be1 (patch)
treed73e1a1134d7d99b83c3df85ceebbd64a9002a01
parent40bf2edf8bd2d7c2a58f487fd83bede1bf892d92 (diff)
downloadFreeBSD-src-6e666d91a9b94017de7e8dcd7c4a45f913f01be1.zip
FreeBSD-src-6e666d91a9b94017de7e8dcd7c4a45f913f01be1.tar.gz
Export pcib_attach() as a "protected" for use in subclasses of the PCI-PCI
bridge driver.
-rw-r--r--sys/dev/pci/pci_pci.c3
-rw-r--r--sys/dev/pci/pcib_private.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index d195c28..3ffc3e4 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -49,7 +49,6 @@
#include "opt_pci.h"
static int pcib_probe(device_t dev);
-static int pcib_attach(device_t dev);
static int pcib_route_interrupt(device_t pcib, device_t dev, int pin);
static device_method_t pcib_methods[] = {
@@ -194,7 +193,7 @@ pcib_attach_common(device_t dev)
*/
}
-static int
+int
pcib_attach(device_t dev)
{
struct pcib_softc *sc;
diff --git a/sys/dev/pci/pcib_private.h b/sys/dev/pci/pcib_private.h
index 2d5c2e6..ec25172 100644
--- a/sys/dev/pci/pcib_private.h
+++ b/sys/dev/pci/pcib_private.h
@@ -58,6 +58,7 @@ struct pcib_softc
u_int8_t seclat; /* secondary bus latency timer */
};
+int pcib_attach(device_t dev);
void pcib_attach_common(device_t dev);
int pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result);
int pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t value);
OpenPOWER on IntegriCloud