Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Define bus_space_*_stream_N functions as their non-...
details: https://anonhg.NetBSD.org/src/rev/f9046695e430
branches: trunk
changeset: 495580:f9046695e430
user: briggs <briggs%NetBSD.org@localhost>
date: Mon Jul 31 22:43:46 2000 +0000
description:
Define bus_space_*_stream_N functions as their non-stream counterparts.
diffstat:
sys/arch/alpha/include/bus.h | 31 ++++++++++++++++++++++++++++++-
sys/arch/i386/include/bus.h | 40 +++++++++++++++++++++++++++++++++++++++-
2 files changed, 69 insertions(+), 2 deletions(-)
diffs (155 lines):
diff -r de160b596800 -r f9046695e430 sys/arch/alpha/include/bus.h
--- a/sys/arch/alpha/include/bus.h Mon Jul 31 22:40:25 2000 +0000
+++ b/sys/arch/alpha/include/bus.h Mon Jul 31 22:43:46 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.40 2000/06/26 04:55:22 simonb Exp $ */
+/* $NetBSD: bus.h,v 1.41 2000/07/31 22:47:08 briggs Exp $ */
/*-
* Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -454,6 +454,35 @@
#define bus_space_copy_region_8(t, h1, o1, h2, o2, c) \
__abs_copy(8, u_int64_t, (t), (h1), (o1), (h2), (o2), (c))
+/*
+ * Bus stream operations--defined in terms of non-stream counterparts
+ */
+#define __BUS_SPACE_HAS_STREAM_METHODS 1
+#define bus_space_read_stream_1 bus_space_read_1
+#define bus_space_read_stream_2 bus_space_read_2
+#define bus_space_read_stream_4 bus_space_read_4
+#define bus_space_read_stream_8 bus_space_read_8
+#define bus_space_read_multi_stream_1 bus_space_read_multi_1
+#define bus_space_read_multi_stream_2 bus_space_read_multi_2
+#define bus_space_read_multi_stream_4 bus_space_read_multi_4
+#define bus_space_read_multi_stream_8 bus_space_read_multi_8
+#define bus_space_read_region_stream_1 bus_space_read_region_1
+#define bus_space_read_region_stream_2 bus_space_read_region_2
+#define bus_space_read_region_stream_4 bus_space_read_region_4
+#define bus_space_read_region_stream_8 bus_space_read_region_8
+#define bus_space_write_stream_1 bus_space_write_1
+#define bus_space_write_stream_2 bus_space_write_2
+#define bus_space_write_stream_4 bus_space_write_4
+#define bus_space_write_stream_8 bus_space_write_8
+#define bus_space_write_multi_stream_1 bus_space_write_multi_1
+#define bus_space_write_multi_stream_2 bus_space_write_multi_2
+#define bus_space_write_multi_stream_4 bus_space_write_multi_4
+#define bus_space_write_multi_stream_8 bus_space_write_multi_8
+#define bus_space_write_region_stream_1 bus_space_write_region_1
+#define bus_space_write_region_stream_2 bus_space_write_region_2
+#define bus_space_write_region_stream_4 bus_space_write_region_4
+#define bus_space_write_region_stream_8 bus_space_write_region_8
+
/*
* Bus DMA methods.
diff -r de160b596800 -r f9046695e430 sys/arch/i386/include/bus.h
--- a/sys/arch/i386/include/bus.h Mon Jul 31 22:40:25 2000 +0000
+++ b/sys/arch/i386/include/bus.h Mon Jul 31 22:43:46 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.29 2000/06/26 04:55:44 simonb Exp $ */
+/* $NetBSD: bus.h,v 1.30 2000/07/31 22:43:46 briggs Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -105,6 +105,8 @@
#define I386_BUS_SPACE_IO 0 /* space is i/o space */
#define I386_BUS_SPACE_MEM 1 /* space is mem space */
+#define __BUS_SPACE_HAS_STREAM_METHODS 1
+
/*
* Bus address and size types
*/
@@ -226,8 +228,14 @@
((t) == I386_BUS_SPACE_IO ? (inl((h) + (o))) : \
(*(volatile u_int32_t *)((h) + (o)))))
+#define bus_space_read_stream_1 bus_space_read_1
+#define bus_space_read_stream_2 bus_space_read_2
+#define bus_space_read_stream_4 bus_space_read_4
+
#if 0 /* Cause a link error for bus_space_read_8 */
#define bus_space_read_8(t, h, o) !!! bus_space_read_8 unimplemented !!!
+#define bus_space_read_stream_8(t, h, o) \
+ !!! bus_space_read_stream_8 unimplemented !!!
#endif
/*
@@ -300,8 +308,14 @@
} \
} while (0)
+#define bus_space_read_multi_stream_1 bus_space_read_multi_1
+#define bus_space_read_multi_stream_2 bus_space_read_multi_2
+#define bus_space_read_multi_stream_4 bus_space_read_multi_4
+
#if 0 /* Cause a link error for bus_space_read_multi_8 */
#define bus_space_read_multi_8 !!! bus_space_read_multi_8 unimplemented !!!
+#define bus_space_read_multi_stream_8 \
+ !!! bus_space_read_multi_stream_8 unimplemented !!!
#endif
/*
@@ -411,8 +425,14 @@
} \
} while (0)
+#define bus_space_read_region_stream_1 bus_space_read_region_1
+#define bus_space_read_region_stream_2 bus_space_read_region_2
+#define bus_space_read_region_stream_4 bus_space_read_region_4
+
#if 0 /* Cause a link error for bus_space_read_region_8 */
#define bus_space_read_region_8 !!! bus_space_read_region_8 unimplemented !!!
+#define bus_space_read_region_stream_8 \
+ !!! bus_space_read_region_stream_8 unimplemented !!!
#endif
/*
@@ -450,8 +470,14 @@
((void)(*(volatile u_int32_t *)((h) + (o)) = (v))); \
} while (0)
+#define bus_space_write_stream_1 bus_space_write_1
+#define bus_space_write_stream_2 bus_space_write_2
+#define bus_space_write_stream_4 bus_space_write_4
+
#if 0 /* Cause a link error for bus_space_write_8 */
#define bus_space_write_8 !!! bus_space_write_8 not implemented !!!
+#define bus_space_write_stream_8 \
+ !!! bus_space_write_stream_8 not implemented !!!
#endif
/*
@@ -521,9 +547,15 @@
} \
} while (0)
+#define bus_space_write_multi_stream_1 bus_space_write_multi_1
+#define bus_space_write_multi_stream_2 bus_space_write_multi_2
+#define bus_space_write_multi_stream_4 bus_space_write_multi_4
+
#if 0 /* Cause a link error for bus_space_write_multi_8 */
#define bus_space_write_multi_8(t, h, o, a, c) \
!!! bus_space_write_multi_8 unimplemented !!!
+#define bus_space_write_multi_stream_8(t, h, o, a, c) \
+ !!! bus_space_write_multi_stream_8 unimplemented !!!
#endif
/*
@@ -632,9 +664,15 @@
} \
} while (0)
+#define bus_space_write_region_stream_1 bus_space_write_region_1
+#define bus_space_write_region_stream_2 bus_space_write_region_2
+#define bus_space_write_region_stream_4 bus_space_write_region_4
+
#if 0 /* Cause a link error for bus_space_write_region_8 */
#define bus_space_write_region_8 \
!!! bus_space_write_region_8 unimplemented !!!
+#define bus_space_write_region_stream_8 \
+ !!! bus_space_write_region_stream_8 unimplemented !!!
#endif
/*
Home |
Main Index |
Thread Index |
Old Index