Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/include Added macros for bus_space_mmap() an...
details: https://anonhg.NetBSD.org/src/rev/005408e2dee7
branches: trunk
changeset: 584544:005408e2dee7
user: macallan <macallan%NetBSD.org@localhost>
date: Fri Sep 23 18:53:16 2005 +0000
description:
Added macros for bus_space_mmap() and bus_space_vaddr()
diffstat:
sys/arch/macppc/include/bus.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 4be372916f64 -r 005408e2dee7 sys/arch/macppc/include/bus.h
--- a/sys/arch/macppc/include/bus.h Fri Sep 23 17:51:37 2005 +0000
+++ b/sys/arch/macppc/include/bus.h Fri Sep 23 18:53:16 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.17 2005/03/09 19:04:44 matt Exp $ */
+/* $NetBSD: bus.h,v 1.18 2005/09/23 18:53:16 macallan Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -387,6 +387,10 @@
#define bus_space_write_stream_2(t, h, o, v) out16(__BA(t, h, o), (v))
#define bus_space_write_stream_4(t, h, o, v) out32(__BA(t, h, o), (v))
+#define bus_space_mmap(tag, addr, off, prot, flags) \
+ (paddr_t)((tag & MACPPC_BUS_ADDR_MASK) + addr + off)
+#define bus_space_vaddr(tag, handle) __BA(tag, handle, 0)
+
#if 0 /* Cause a link error for bus_space_write_8 */
#define bus_space_write_8 !!! unimplemented !!!
#endif
Home |
Main Index |
Thread Index |
Old Index