summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-11-25 00:38:50 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-11-25 00:38:50 +0000
commitc8e1d4dfddaf87539c238ef39c8feb9d976deddc (patch)
tree16837a020add4b192b8ed287252e02f5fb8c0595 /sys/arch/sparc64/include
parent99d3f3adc0276a12b1497ac4a9f464ff30101895 (diff)
Give the CarBus side of CardBus-PCI bridges a bus number, since OpenFirmware
doesn't do it for us.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/pci_machdep.h3
-rw-r--r--sys/arch/sparc64/include/rbus_machdep.h5
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/pci_machdep.h b/sys/arch/sparc64/include/pci_machdep.h
index 5381ae7a90e..c18ca9c5923 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.17 2007/08/04 16:39:15 kettenis Exp $ */
+/* $OpenBSD: pci_machdep.h,v 1.18 2007/11/25 00:38:49 kettenis Exp $ */
/* $NetBSD: pci_machdep.h,v 1.7 2001/07/20 00:07:14 eeh Exp $ */
/*
@@ -67,6 +67,7 @@ struct sparc_pci_chipset {
bus_space_tag_t bustag;
bus_space_handle_t bushandle;
int rootnode; /* PCI controller */
+ int busnode[256];
int tagshift;
int (*intr_map)(struct pci_attach_args *, pci_intr_handle_t *);
};
diff --git a/sys/arch/sparc64/include/rbus_machdep.h b/sys/arch/sparc64/include/rbus_machdep.h
index 5fd4308124e..939f3c7c738 100644
--- a/sys/arch/sparc64/include/rbus_machdep.h
+++ b/sys/arch/sparc64/include/rbus_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rbus_machdep.h,v 1.1 2007/08/04 16:46:03 kettenis Exp $ */
+/* $OpenBSD: rbus_machdep.h,v 1.2 2007/11/25 00:38:49 kettenis Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -32,4 +32,7 @@ rbus_tag_t rbus_pccbb_parent_mem(struct device *, struct pci_attach_args *);
bus_space_unmap((t), (h), (size)); \
} while (0)
+void pccbb_attach_hook(struct device *, struct device *,
+ struct pci_attach_args *);
+
#endif /* _SPARC64_RBUS_MACHDEP_H_ */