summaryrefslogtreecommitdiff
path: root/sys/arch/arm
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-04-04 12:49:31 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-04-04 12:49:31 +0000
commit2370c66ed9b4927257472417cf83e3027a8509c6 (patch)
tree8d2176746df1edb17a844f0569acffc2751d4904 /sys/arch/arm
parent803c01a401b2c48ee9649632aa98b5873d6cea6f (diff)
OpenBSD uses bus_space_copy_#, not bus_space_copy_region_#. Make sure only the
first name is used, and remove any #define foo_region foo compatibility defines. Also, on sparc64, do not provide a `raw' version of bus_space_copy.
Diffstat (limited to 'sys/arch/arm')
-rw-r--r--sys/arch/arm/arm/arm_machdep.c4
-rw-r--r--sys/arch/arm/include/bus.h22
2 files changed, 7 insertions, 19 deletions
diff --git a/sys/arch/arm/arm/arm_machdep.c b/sys/arch/arm/arm/arm_machdep.c
index c526411b1ec..4fdd397f7a7 100644
--- a/sys/arch/arm/arm/arm_machdep.c
+++ b/sys/arch/arm/arm/arm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arm_machdep.c,v 1.1 2004/02/01 05:09:48 drahn Exp $ */
+/* $OpenBSD: arm_machdep.c,v 1.2 2010/04/04 12:49:30 miod Exp $ */
/* $NetBSD: arm_machdep.c,v 1.7 2003/10/25 19:44:42 scw Exp $ */
/*
@@ -205,6 +205,7 @@ cpu_upcall(struct lwp *l, int type, int nevents, int ninterrupted, void *sas,
#endif
+#if 0
#define _CONCAT(A,B) A ## B
#define __C(A,B) _CONCAT(A,B)
@@ -231,7 +232,6 @@ BUS_SPACE_COPY_N(4,u_int32_t)
-#if 0
#define BUS_SPACE_READ_RAW_MULTI_N(BYTES,SHIFT,TYPE) \
void \
__C(bus_space_read_raw_multi_,BYTES)(bus_space_tag_t bst, \
diff --git a/sys/arch/arm/include/bus.h b/sys/arch/arm/include/bus.h
index e070c49fabb..187ff95fadb 100644
--- a/sys/arch/arm/include/bus.h
+++ b/sys/arch/arm/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.12 2009/07/26 18:48:55 miod Exp $ */
+/* $OpenBSD: bus.h,v 1.13 2010/04/04 12:49:30 miod Exp $ */
/* $NetBSD: bus.h,v 1.12 2003/10/23 15:03:24 scw Exp $ */
/*-
@@ -358,27 +358,15 @@ struct bus_space {
/*
* Copy operations.
*/
-#define bus_space_copy_region_1(t, h1, o1, h2, o2, c) \
+#define bus_space_copy_1(t, h1, o1, h2, o2, c) \
__bs_copy(1, t, h1, o1, h2, o2, c)
-#define bus_space_copy_region_2(t, h1, o1, h2, o2, c) \
+#define bus_space_copy_2(t, h1, o1, h2, o2, c) \
__bs_copy(2, t, h1, o1, h2, o2, c)
-#define bus_space_copy_region_4(t, h1, o1, h2, o2, c) \
+#define bus_space_copy_4(t, h1, o1, h2, o2, c) \
__bs_copy(4, t, h1, o1, h2, o2, c)
-#define bus_space_copy_region_8(t, h1, o1, h2, o2, c) \
+#define bus_space_copy_8(t, h1, o1, h2, o2, c) \
__bs_copy(8, t, h1, o1, h2, o2, c)
-void
-bus_space_copy_1(bus_space_tag_t bst, bus_space_handle_t h1,
- bus_space_handle_t h2, bus_size_t o1, bus_size_t o2, bus_size_t c);
-void
-bus_space_copy_2(bus_space_tag_t bst, bus_space_handle_t h1,
- bus_space_handle_t h2, bus_size_t o1, bus_size_t o2, bus_size_t c);
-void
-bus_space_copy_4(bus_space_tag_t bst, bus_space_handle_t h1,
- bus_space_handle_t h2, bus_size_t o1, bus_size_t o2, bus_size_t c);
-#define bus_space_copy_8 \
- !!! bus_space_copy_8 not implemented !!!
-
/*
* Macros to provide prototypes for all the functions used in the
* bus_space structure