Use a kvtophys() hack for mips like for alpha. No idea if it actually works..
This commit is contained in:
parent
82ad0bf745
commit
bd1cc85c63
@ -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 @@ static int read_tekram_eeprom
|
||||
|
||||
#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
|
||||
|
Loading…
x
Reference in New Issue
Block a user