-/* $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.
((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_ */