summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2005-05-24 19:39:51 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2005-05-24 19:39:51 +0000
commit5efe66fef58c106bfd79d5d8ef638e42b1760dbc (patch)
tree5db3571949be9eddf1ebf493883a3e5d16f195de /sys
parent42f085fa4408e033e1a9b24a138bc932345de87d (diff)
wrap into nice defines
ok mickey@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/include/rbus_machdep.h8
-rw-r--r--sys/arch/hppa64/include/rbus_machdep.h8
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/arch/hppa/include/rbus_machdep.h b/sys/arch/hppa/include/rbus_machdep.h
index d980299670d..516978893d3 100644
--- a/sys/arch/hppa/include/rbus_machdep.h
+++ b/sys/arch/hppa/include/rbus_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rbus_machdep.h,v 1.1 2004/08/06 20:29:47 mickey Exp $ */
+/* $OpenBSD: rbus_machdep.h,v 1.2 2005/05/24 19:39:50 martin Exp $ */
/*
* Copyright (c) 2004 Michael Shalayeff
@@ -26,6 +26,10 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+#if !defined _ARCH_HPPA_HPPA_RBUS_MACHDEP_H_
+#define _ARCH_HPPA_HPPA_RBUS_MACHDEP_H_
+
static __inline int
md_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, int flags, bus_space_handle_t *bshp)
{
@@ -41,3 +45,5 @@ struct pci_attach_args;
#define rbus_pccbb_parent_mem(d, p) (*(p)->pa_pc->pc_alloc_parent)((d), (p), 0)
#define rbus_pccbb_parent_io(d, p) (*(p)->pa_pc->pc_alloc_parent)((d), (p), 1)
+
+#endif /* _ARCH_HPPA_HPPA_RBUS_MACHDEP_H_ */
diff --git a/sys/arch/hppa64/include/rbus_machdep.h b/sys/arch/hppa64/include/rbus_machdep.h
index 963e54b89ff..1d6a2252145 100644
--- a/sys/arch/hppa64/include/rbus_machdep.h
+++ b/sys/arch/hppa64/include/rbus_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rbus_machdep.h,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
+/* $OpenBSD: rbus_machdep.h,v 1.2 2005/05/24 19:39:50 martin Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -17,6 +17,10 @@
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+
+#if !defined _ARCH_HPPA64_HPPA64_RBUS_MACHDEP_H_
+#define _ARCH_HPPA64_HPPA64_RBUS_MACHDEP_H_
+
static __inline int
md_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, int flags, bus_space_handle_t *bshp)
{
@@ -32,3 +36,5 @@ struct pci_attach_args;
#define rbus_pccbb_parent_mem(d, p) (*(p)->pa_pc->pc_alloc_parent)((d), (p), 0)
#define rbus_pccbb_parent_io(d, p) (*(p)->pa_pc->pc_alloc_parent)((d), (p), 1)
+
+#endif /* _ARCH_HPPA64_HPPA64_RBUS_MACHDEP_H_ */