Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include Add bus_space_vaddr().



details:   https://anonhg.NetBSD.org/src/rev/5e72d968d632
branches:  trunk
changeset: 532087:5e72d968d632
user:      augustss <augustss%NetBSD.org@localhost>
date:      Fri May 31 11:31:30 2002 +0000

description:
Add bus_space_vaddr().

diffstat:

 sys/arch/powerpc/include/bus.h |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 3f4bddf787cc -r 5e72d968d632 sys/arch/powerpc/include/bus.h
--- a/sys/arch/powerpc/include/bus.h    Fri May 31 11:13:23 2002 +0000
+++ b/sys/arch/powerpc/include/bus.h    Fri May 31 11:31:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.3 2001/12/10 20:30:21 briggs Exp $   */
+/*     $NetBSD: bus.h,v 1.4 2002/05/31 11:31:30 augustss Exp $ */
 /*     $OpenBSD: bus.h,v 1.1 1997/10/13 10:53:42 pefo Exp $    */
 
 /*-
@@ -149,6 +149,15 @@
 #define        __BUS_SPACE_HAS_STREAM_METHODS
 
 /*
+ *     void *bus_space_vaddr __P((bus_space_tag_t, bus_space_handle_t));
+ *
+ * Get the kernel virtual address for the mapped bus space.
+ * Only allowed for regions mapped with BUS_SPACE_MAP_LINEAR.
+ *  (XXX not enforced)
+ */
+#define bus_space_vaddr(t, h) ((void *)(h))
+
+/*
  *     paddr_t bus_space_mmap  __P((bus_space_tag_t t, bus_addr_t addr,
  *         off_t offset, int prot, int flags));
  *



Home | Main Index | Thread Index | Old Index