From 53f576f788b49d5254fe4675aae728d07682d750 Mon Sep 17 00:00:00 2001 From: mark Date: Sun, 20 Sep 1998 03:37:29 +0000 Subject: [PATCH] bus_space_copy_* -> bus_space_copy_region_* Add BUS_SPACE_COMPAT_OLDDEFS for bus_space_copy_* compat. --- sys/arch/arm32/include/bus.h | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/sys/arch/arm32/include/bus.h b/sys/arch/arm32/include/bus.h index c2fb7b34fa11..8cff5c553988 100644 --- a/sys/arch/arm32/include/bus.h +++ b/sys/arch/arm32/include/bus.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus.h,v 1.13 1998/06/28 07:27:52 thorpej Exp $ */ +/* $NetBSD: bus.h,v 1.14 1998/09/20 03:37:29 mark Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -355,15 +355,26 @@ struct bus_space { /* * Copy operations. */ -#define bus_space_copy_1(t, h1, o1, h2, o2, c) \ +#define bus_space_copy_region_1(t, h1, o1, h2, o2, c) \ __bs_copy(1, t, h1, o1, h2, o2, c) -#define bus_space_copy_2(t, h1, o1, h2, o2, c) \ +#define bus_space_copy_region_2(t, h1, o1, h2, o2, c) \ __bs_copy(2, t, h1, o1, h2, o2, c) -#define bus_space_copy_4(t, h1, o1, h2, o2, c) \ +#define bus_space_copy_region_4(t, h1, o1, h2, o2, c) \ __bs_copy(4, t, h1, o1, h2, o2, c) -#define bus_space_copy_8(t, h1, o1, h2, o2, c) \ +#define bus_space_copy_region_8(t, h1, o1, h2, o2, c) \ __bs_copy(8, t, h1, o1, h2, o2, c) +#ifdef __BUS_SPACE_COMPAT_OLDDEFS +/* compatibility definitions; deprecated */ +#define bus_space_copy_1(t, h1, o1, h2, o2, c) \ + bus_space_copy_region_1((t), (h1), (o1), (h2), (o2), (c)) +#define bus_space_copy_2(t, h1, o1, h2, o2, c) \ + bus_space_copy_region_1((t), (h1), (o1), (h2), (o2), (c)) +#define bus_space_copy_4(t, h1, o1, h2, o2, c) \ + bus_space_copy_region_1((t), (h1), (o1), (h2), (o2), (c)) +#define bus_space_copy_8(t, h1, o1, h2, o2, c) \ + bus_space_copy_region_1((t), (h1), (o1), (h2), (o2), (c)) +#endif /* * Macros to provide prototypes for all the functions used in the