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 64-bit DMA tag (if available) on PCI-E re(4)...
details: https://anonhg.NetBSD.org/src/rev/d2f2dc2dfc00
branches: trunk
changeset: 756662:d2f2dc2dfc00
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Tue Jul 27 21:48:41 2010 +0000
description:
Use 64-bit DMA tag (if available) on PCI-E re(4) NICs.
diffstat:
sys/dev/pci/if_re_pci.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r ab6964404828 -r d2f2dc2dfc00 sys/dev/pci/if_re_pci.c
--- a/sys/dev/pci/if_re_pci.c Tue Jul 27 21:05:04 2010 +0000
+++ b/sys/dev/pci/if_re_pci.c Tue Jul 27 21:48:41 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_re_pci.c,v 1.39 2010/07/27 21:02:00 jakllsch Exp $ */
+/* $NetBSD: if_re_pci.c,v 1.40 2010/07/27 21:48:41 jakllsch Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_re_pci.c,v 1.39 2010/07/27 21:02:00 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_re_pci.c,v 1.40 2010/07/27 21:48:41 jakllsch Exp $");
#include <sys/types.h>
@@ -236,7 +236,10 @@
t->rtk_basetype == RTK_8101E)
sc->sc_quirk |= RTKQ_PCIE;
- sc->sc_dmat = pa->pa_dmat;
+ if (pci_dma64_available(pa) && (sc->sc_quirk & RTKQ_PCIE))
+ sc->sc_dmat = pa->pa_dmat64;
+ else
+ sc->sc_dmat = pa->pa_dmat;
/*
* No power/enable/disable machinery for PCI attach;
Home |
Main Index |
Thread Index |
Old Index