summaryrefslogtreecommitdiffstats
path: root/sys/pci/ncr.c
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>1999-05-26 23:01:57 +0000
committergallatin <gallatin@FreeBSD.org>1999-05-26 23:01:57 +0000
commitb5afe950d0039e26fabd75bdd242c03803121f40 (patch)
tree040900e637c5436a92b5528ed6c92fa92675aba9 /sys/pci/ncr.c
parent68290356efdb6c55d4f937b8eb380a3c6c8aab06 (diff)
downloadFreeBSD-src-b5afe950d0039e26fabd75bdd242c03803121f40.zip
FreeBSD-src-b5afe950d0039e26fabd75bdd242c03803121f40.tar.gz
Allow chipset drivers to specify the direct-mapped DMA window's mask in
preparation for tsunami support. Previous chipsets' direct-mapped DMA mask was always 1024*1024*1024. The Tsunami chipset needs it to be 2*1024*1024*1024 These changes should not affect the i386 port Reviewed by: Doug Rabson <dfr@nlsystems.com>
Diffstat (limited to 'sys/pci/ncr.c')
-rw-r--r--sys/pci/ncr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index 9953bad..1e72679 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncr.c,v 1.146 1999/05/09 22:44:42 se Exp $
+** $Id: ncr.c,v 1.147 1999/05/21 22:02:02 ken Exp $
**
** Device driver for the NCR 53C8XX PCI-SCSI-Controller Family.
**
@@ -275,8 +275,7 @@
#ifdef __alpha__
/* XXX */
#undef vtophys
-#define vtophys(va) (pmap_kextract(((vm_offset_t) (va))) \
- + 1*1024*1024*1024)
+#define vtophys(va) alpha_XXX_dmamap((vm_offset_t)va)
#endif
#ifdef NCR_IOMAPPED
@@ -1361,7 +1360,7 @@ static void ncr_attach (pcici_t tag, int unit);
#if !defined(lint)
static const char ident[] =
- "\n$Id: ncr.c,v 1.146 1999/05/09 22:44:42 se Exp $\n";
+ "\n$Id: ncr.c,v 1.147 1999/05/21 22:02:02 ken Exp $\n";
#endif
static const u_long ncr_version = NCR_VERSION * 11
OpenPOWER on IntegriCloud