summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pcivar.h
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-04-07 01:04:50 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-04-07 01:04:50 +0000
commit2b1cfc3386b297ab81942c33c83f0d3e7793efaa (patch)
tree4cc7fd2eed058f0aeb943e8f05f2f2059e792210 /sys/dev/pci/pcivar.h
parentda675f40fefca37deefd78b185bf8d371de83a7a (diff)
implement a check whether a BAR is present at all at a given
configuration space address, pci_mapreg_probe(). From NetBSD ok dlg@
Diffstat (limited to 'sys/dev/pci/pcivar.h')
-rw-r--r--sys/dev/pci/pcivar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index cabf04e4946..f2e3f4fc25b 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcivar.h,v 1.47 2006/03/22 00:36:03 jsg Exp $ */
+/* $OpenBSD: pcivar.h,v 1.48 2006/04/07 01:04:49 brad Exp $ */
/* $NetBSD: pcivar.h,v 1.23 1997/06/06 23:48:05 thorpej Exp $ */
/*
@@ -182,6 +182,7 @@ struct pci_softc {
* Configuration space access and utility functions. (Note that most,
* e.g. make_tag, conf_read, conf_write are declared by pci_machdep.h.)
*/
+int pci_mapreg_probe(pci_chipset_tag_t, pcitag_t, int, pcireg_t *);
pcireg_t pci_mapreg_type(pci_chipset_tag_t, pcitag_t, int);
int pci_mapreg_info(pci_chipset_tag_t, pcitag_t, int, pcireg_t,
bus_addr_t *, bus_size_t *, int *);