summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/arc/include/bus.h31
1 files changed, 22 insertions, 9 deletions
diff --git a/sys/arch/arc/include/bus.h b/sys/arch/arc/include/bus.h
index 77db1fa692c..1e274c0e5b3 100644
--- a/sys/arch/arc/include/bus.h
+++ b/sys/arch/arc/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.4 1996/09/14 15:58:25 pefo Exp $ */
+/* $OpenBSD: bus.h,v 1.5 1996/09/18 11:39:24 niklas Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -119,13 +119,26 @@ struct arc_isa_busmap {
((void)(*(volatile u_int64_t *)((h) + (o)) = (v)))
/* These are extensions to the general NetBSD bus interface. */
-/* XXX Check endianess */
-#define bus_to_host_2(t, v) (v)
-#define bus_to_host_4(t, v) (v)
-#define bus_to_host_8(t, v) (v)
-
-#define bus_from_host_2(t, v) (v)
-#define bus_from_host_4(t, v) (v)
-#define bus_from_host_8(t, v) (v)
+#define bus_io_read_raw_multi_1(t, h, o, a, c) \
+ insb((h) + (o), (a), (c))
+#define bus_io_read_raw_multi_2(t, h, o, a, c) \
+ insw((h) + (o), (a), (c))
+#define bus_io_read_raw_multi_4(t, h, o, a, c) \
+ insl((h) + (o), (a), (c))
+#if 0 /* Cause a link error for bus_io_read_raw_multi_8 */
+#define bus_io_read_raw_multi_8(t, h, o, a, c) \
+ !!! bus_io_read_raw_multi_8 unimplemented !!!
+#endif
+
+#define bus_io_write_raw_multi_1(t, h, o, a, c) \
+ outsb((h) + (o), (a), (c))
+#define bus_io_write_raw_multi_2(t, h, o, a, c) \
+ outsw((h) + (o), (a), (c))
+#define bus_io_write_raw_multi_4(t, h, o, a, c) \
+ outsl((h) + (o), (a), (c))
+#if 0 /* Cause a link error for bus_io_write_raw_multi_8 */
+#define bus_io_write_raw_multi_8(t, h, o, a, c) \
+ !!! bus_io_write_raw_multi_8 unimplimented !!!
+#endif
#endif /* _ARC_BUS_H_ */