summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcib_private.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-22 17:50:47 +0000
committerjhb <jhb@FreeBSD.org>2002-11-22 17:50:47 +0000
commitc532e9c1042c4729b06bc8853da88a03a269625e (patch)
treef1416576e12ca74626ba634e2a66d84d801872db /sys/dev/pci/pcib_private.h
parent16a0962105073549c567209736af81ded4ef56f8 (diff)
downloadFreeBSD-src-c532e9c1042c4729b06bc8853da88a03a269625e.zip
FreeBSD-src-c532e9c1042c4729b06bc8853da88a03a269625e.tar.gz
Add a function host_pcib_get_bnsno() that attempts to determine the bus
number of the child bus of a host to PCI bridge by reading from proprietary configuration registers in the host to PCI bridge devices. Approved by: re
Diffstat (limited to 'sys/dev/pci/pcib_private.h')
-rw-r--r--sys/dev/pci/pcib_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/pcib_private.h b/sys/dev/pci/pcib_private.h
index ec25172..b6ef8b8 100644
--- a/sys/dev/pci/pcib_private.h
+++ b/sys/dev/pci/pcib_private.h
@@ -58,6 +58,10 @@ struct pcib_softc
u_int8_t seclat; /* secondary bus latency timer */
};
+typedef u_int32_t pci_read_config_fn(int b, int s, int f, int reg, int width);
+
+int host_pcib_get_busno(pci_read_config_fn read_config, int bus,
+ int slot, int func, u_int8_t *busnum);
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);
OpenPOWER on IntegriCloud