bus_space_copy_* -> bus_space_copy_region_*

Add BUS_SPACE_COMPAT_OLDDEFS for bus_space_copy_* compat.
This commit is contained in:
mark 1998-09-20 03:37:29 +00:00
parent 08e1d890a4
commit 53f576f788
1 changed files with 16 additions and 5 deletions

View File

@ -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