summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-11-15 23:13:01 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-11-15 23:13:01 +0000
commitb98800bcb77ba1b3b3c3d1771d0ee7317a6befbc (patch)
treeae134127bfc383dd23fd53b1194ef0a90f0c5f8e /sys/arch/powerpc64
parent5e43c1fe8a32ca5b9cc34ad8cd087e7e7c2b0b3c (diff)
Hardwire bus_space_read_raw_N() and bus_space_write_raw_N() to
generic_space_read_N() and generic_space_write_N() as they should not do any byte swapping.
Diffstat (limited to 'sys/arch/powerpc64')
-rw-r--r--sys/arch/powerpc64/include/bus.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/powerpc64/include/bus.h b/sys/arch/powerpc64/include/bus.h
index f15761f17c8..d8c53d64144 100644
--- a/sys/arch/powerpc64/include/bus.h
+++ b/sys/arch/powerpc64/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.4 2020/06/07 20:08:49 kettenis Exp $ */
+/* $OpenBSD: bus.h,v 1.5 2020/11/15 23:13:00 kettenis Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB Sweden. All rights reserved.
*
@@ -92,18 +92,18 @@ struct bus_space {
#define bus_space_write_8(t, h, o, v) (*(t)->_space_write_8)((t), (h), (o), (v))
#define bus_space_read_raw_2(t, h, o) \
- (*(t)->_space_read_2)((t), (h), (o))
+ generic_space_read_2((t), (h), (o))
#define bus_space_read_raw_4(t, h, o) \
- (*(t)->_space_read_4)((t), (h), (o))
+ generic_space_read_4((t), (h), (o))
#define bus_space_read_raw_8(t, h, o) \
- (*(t)->_space_read_8)((t), (h), (o))
+ generic_space_read_8((t), (h), (o))
#define bus_space_write_raw_2(t, h, o, v) \
- (*(t)->_space_write_2)((t), (h), (o), (v))
+ generic_space_write_2((t), (h), (o), (v))
#define bus_space_write_raw_4(t, h, o, v) \
- (*(t)->_space_write_4)((t), (h), (o), (v))
+ generic_space_write_4((t), (h), (o), (v))
#define bus_space_write_raw_8(t, h, o, v) \
- (*(t)->_space_write_8)((t), (h), (o), (v))
+ generic_space_write_8((t), (h), (o), (v))
#define bus_space_read_raw_multi_2(t, h, a, b, l) \
(*(t)->_space_read_raw_2)((t), (h), (a), (b), (l))