summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-01-19 11:13:44 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-01-19 11:13:44 +0000
commit759014753c3f5679a4dbf7f1e0c01e1ad14c7888 (patch)
tree48d2b48caa4d68a2734c45dcb8338738e1bed8e5 /sys/arch/sparc64/include
parent0045dcf8cbc73adb4cf29549a96bccf0f7716908 (diff)
Make host bridges provide their own implementation of pci_conf_read() and
pci_conf_write() and give pyro(4) an implementation suitable for PCIe. For psycho(4) and schizo(4), go back to the origional implementation. This gets rid of the 'tagshift' member of pci_chipset_tag_t, and clears the way for sun4v.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/pci_machdep.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/pci_machdep.h b/sys/arch/sparc64/include/pci_machdep.h
index c18ca9c5923..f97af5807c9 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.18 2007/11/25 00:38:49 kettenis Exp $ */
+/* $OpenBSD: pci_machdep.h,v 1.19 2008/01/19 11:13:43 kettenis Exp $ */
/* $NetBSD: pci_machdep.h,v 1.7 2001/07/20 00:07:14 eeh Exp $ */
/*
@@ -68,7 +68,8 @@ struct sparc_pci_chipset {
bus_space_handle_t bushandle;
int rootnode; /* PCI controller */
int busnode[256];
- int tagshift;
+ pcireg_t (*conf_read)(pci_chipset_tag_t, pcitag_t, int);
+ void (*conf_write)(pci_chipset_tag_t, pcitag_t, int, pcireg_t);
int (*intr_map)(struct pci_attach_args *, pci_intr_handle_t *);
};