summaryrefslogtreecommitdiff
path: root/sys/arch/arm64/include
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2019-06-03 13:09:57 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2019-06-03 13:09:57 +0000
commit02fa44190b3e9c0f34ad8daee47ec391b2e83637 (patch)
tree82a8e0e59424d74c324cd9fbb16bbce182533ec4 /sys/arch/arm64/include
parente7cf94253eb811f39938c716379ccfb595ae30d9 (diff)
Map the raw bus space operations to the regular ones.
ok kettenis@
Diffstat (limited to 'sys/arch/arm64/include')
-rw-r--r--sys/arch/arm64/include/bus.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/arch/arm64/include/bus.h b/sys/arch/arm64/include/bus.h
index 0e2b68b4084..7f7d8e79dd6 100644
--- a/sys/arch/arm64/include/bus.h
+++ b/sys/arch/arm64/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.5 2018/08/20 19:38:07 kettenis Exp $ */
+/* $OpenBSD: bus.h,v 1.6 2019/06/03 13:09:56 patrick Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB Sweden. All rights reserved.
*
@@ -96,6 +96,20 @@ struct bus_space {
#define bus_space_write_4(t, h, o, v) (*(t)->_space_write_4)((t), (h), (o), (v))
#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))
+#define bus_space_read_raw_4(t, h, o) \
+ (*(t)->_space_read_4)((t), (h), (o))
+#define bus_space_read_raw_8(t, h, o) \
+ (*(t)->_space_read_8)((t), (h), (o))
+
+#define bus_space_write_raw_2(t, h, o, v) \
+ (*(t)->_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))
+#define bus_space_write_raw_8(t, h, o, v) \
+ (*(t)->_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))
#define bus_space_read_raw_multi_4(t, h, a, b, l) \