summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-06-08 18:06:03 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-06-08 18:06:03 +0000
commit54321b9a4d4242ee1168e8c68f9d9308b6bc8aa4 (patch)
tree3e5a8801ea9d18f2f6d261ce517d23a3163b4eed /sys/arch/sparc64/include
parent6b31244a8348da6a3b748b00d9a03b10162020cb (diff)
make pci_conf_{read|write} indirect functions so we can overload them
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/pci_machdep.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/pci_machdep.h b/sys/arch/sparc64/include/pci_machdep.h
index bb325fcb6df..d3757a2d68e 100644
--- a/sys/arch/sparc64/include/pci_machdep.h
+++ b/sys/arch/sparc64/include/pci_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.h,v 1.5 2002/04/03 16:54:19 jason Exp $ */
+/* $OpenBSD: pci_machdep.h,v 1.6 2002/06/08 18:06:02 jason Exp $ */
/* $NetBSD: pci_machdep.h,v 1.7 2001/07/20 00:07:14 eeh Exp $ */
/*
@@ -82,6 +82,8 @@ int pci_dev_funcorder(pci_chipset_tag_t, int, int, char *);
#endif
int pci_bus_maxdevs(pci_chipset_tag_t, int);
pcitag_t pci_make_tag(pci_chipset_tag_t, int, int, int);
+void pci_conf_setfunc(pcireg_t (*rd)(pci_chipset_tag_t, pcitag_t, int),
+ void (*wr)(pci_chipset_tag_t, pcitag_t, int, pcireg_t));
pcireg_t pci_conf_read(pci_chipset_tag_t, pcitag_t, int);
void pci_conf_write(pci_chipset_tag_t, pcitag_t, int,
pcireg_t);