Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use a kvtophys() hack for mips like for alpha. N...



details:   https://anonhg.NetBSD.org/src/rev/230bcb4be319
branches:  trunk
changeset: 483757:230bcb4be319
user:      soren <soren%NetBSD.org@localhost>
date:      Fri Mar 17 11:30:14 2000 +0000

description:
Use a kvtophys() hack for mips like for alpha. No idea if it actually works..

diffstat:

 sys/dev/pci/ncr.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r aea24a785aa8 -r 230bcb4be319 sys/dev/pci/ncr.c
--- a/sys/dev/pci/ncr.c Fri Mar 17 11:23:23 2000 +0000
+++ b/sys/dev/pci/ncr.c Fri Mar 17 11:30:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ncr.c,v 1.94 2000/02/20 22:19:29 sommerfeld Exp $      */
+/*     $NetBSD: ncr.c,v 1.95 2000/03/17 11:30:14 soren Exp $   */
 
 /**************************************************************************
 **
@@ -252,6 +252,13 @@
 #define        vtophys(va)     alpha_XXX_dmamap((vaddr_t)(va))
 #endif
 
+#if defined(__NetBSD__) && defined(__mips__)
+/* XXX XXX NEED REAL DMA MAPPING SUPPORT XXX XXX */
+#undef vtophys
+extern paddr_t kvtophys __P((vaddr_t)); /* XXX */
+#define        vtophys(va)     kvtophys((vaddr_t)(va))
+#endif
+
 /*==========================================================
 **
 **     Debugging tags
@@ -1525,7 +1532,7 @@
 
 #if 0
 static char ident[] =
-       "\n$NetBSD: ncr.c,v 1.94 2000/02/20 22:19:29 sommerfeld Exp $\n";
+       "\n$NetBSD: ncr.c,v 1.95 2000/03/17 11:30:14 soren Exp $\n";
 #endif
 
 static const u_long    ncr_version = NCR_VERSION       * 11



Home | Main Index | Thread Index | Old Index