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 the 64-bit PCI tag, if available.



details:   https://anonhg.NetBSD.org/src/rev/00d68d1a3881
branches:  trunk
changeset: 969752:00d68d1a3881
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Feb 29 21:27:19 2020 +0000

description:
Use the 64-bit PCI tag, if available.

diffstat:

 sys/dev/pci/if_rge.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r b371bb774056 -r 00d68d1a3881 sys/dev/pci/if_rge.c
--- a/sys/dev/pci/if_rge.c      Sat Feb 29 21:10:09 2020 +0000
+++ b/sys/dev/pci/if_rge.c      Sat Feb 29 21:27:19 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_rge.c,v 1.8 2020/02/27 23:15:34 sevan Exp $ */
+/*     $NetBSD: if_rge.c,v 1.9 2020/02/29 21:27:19 thorpej Exp $       */
 /*     $OpenBSD: if_rge.c,v 1.2 2020/01/02 09:00:45 kevlo Exp $        */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_rge.c,v 1.8 2020/02/27 23:15:34 sevan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_rge.c,v 1.9 2020/02/29 21:27:19 thorpej Exp $");
 
 /* #include "vlan.h" Sevan */
 
@@ -242,7 +242,11 @@
        }
        printf(": %s", intrstr);
 
-       sc->sc_dmat = pa->pa_dmat;
+       if (pci_dma64_available(pa))
+               sc->sc_dmat = pa->pa_dmat64;
+       else
+               sc->sc_dmat = pa->pa_dmat;
+
        sc->sc_pc = pa->pa_pc;
        sc->sc_tag = pa->pa_tag;
 



Home | Main Index | Thread Index | Old Index