Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/include Delint a bit.
details: https://anonhg.NetBSD.org/src/rev/c132e115b70f
branches: trunk
changeset: 526628:c132e115b70f
user: uwe <uwe%NetBSD.org@localhost>
date: Tue May 07 06:45:22 2002 +0000
description:
Delint a bit.
diffstat:
sys/arch/sparc/include/bus.h | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diffs (77 lines):
diff -r 7ec13c67adb7 -r c132e115b70f sys/arch/sparc/include/bus.h
--- a/sys/arch/sparc/include/bus.h Tue May 07 06:17:10 2002 +0000
+++ b/sys/arch/sparc/include/bus.h Tue May 07 06:45:22 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.31 2002/05/07 00:37:47 uwe Exp $ */
+/* $NetBSD: bus.h,v 1.32 2002/05/07 06:45:22 uwe Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -219,7 +219,7 @@
int f;
bus_space_handle_t *hp;
{
- _BS_CALL(t, sparc_bus_map)(t, a, s, f, 0, hp);
+ _BS_CALL(t, sparc_bus_map)(t, a, s, f, (vaddr_t)0, hp);
}
static __inline__ int
@@ -298,7 +298,7 @@
bus_size_t size));
#endif
-#define bus_space_vaddr(t, h) ((void *)(h))
+#define bus_space_vaddr(t, h) ((void)(t), (void *)(h))
/* flags for bus space map functions */
#define BUS_SPACE_MAP_CACHEABLE 0x0001
@@ -343,16 +343,16 @@
*/
#define bus_space_read_1(t, h, o) \
- ((void)t, *(volatile u_int8_t *)((h) + (o)))
+ ((void)(t), *(volatile u_int8_t *)((h) + (o)))
#define bus_space_read_2(t, h, o) \
- ((void)t, *(volatile u_int16_t *)((h) + (o)))
+ ((void)(t), *(volatile u_int16_t *)((h) + (o)))
#define bus_space_read_4(t, h, o) \
- ((void)t, *(volatile u_int32_t *)((h) + (o)))
+ ((void)(t), *(volatile u_int32_t *)((h) + (o)))
#define bus_space_read_8(t, h, o) \
- ((void)t, *(volatile u_int64_t *)((h) + (o)))
+ ((void)(t), *(volatile u_int64_t *)((h) + (o)))
#define bus_space_read_stream_1 bus_space_read_1
#define bus_space_read_stream_2 bus_space_read_2
@@ -370,20 +370,20 @@
*/
#define bus_space_write_1(t, h, o, v) do { \
- ((void)t, (void)(*(volatile u_int8_t *)((h) + (o)) = (v))); \
-} while (0)
+ ((void)(t), (void)(*(volatile u_int8_t *)((h) + (o)) = (v))); \
+} while (/* CONSTCOND */ 0)
#define bus_space_write_2(t, h, o, v) do { \
- ((void)t, (void)(*(volatile u_int16_t *)((h) + (o)) = (v))); \
-} while (0)
+ ((void)(t), (void)(*(volatile u_int16_t *)((h) + (o)) = (v))); \
+} while (/* CONSTCOND */ 0)
#define bus_space_write_4(t, h, o, v) do { \
- ((void)t, (void)(*(volatile u_int32_t *)((h) + (o)) = (v))); \
-} while (0)
+ ((void)(t), (void)(*(volatile u_int32_t *)((h) + (o)) = (v))); \
+} while (/* CONSTCOND */ 0)
#define bus_space_write_8(t, h, o, v) do { \
- ((void)t, (void)(*(volatile u_int64_t *)((h) + (o)) = (v))); \
-} while (0)
+ ((void)(t), (void)(*(volatile u_int64_t *)((h) + (o)) = (v))); \
+} while (/* CONSTCOND */ 0)
#define bus_space_write_stream_1 bus_space_write_1
#define bus_space_write_stream_2 bus_space_write_2
Home |
Main Index |
Thread Index |
Old Index