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 DMA tag if avalable.
details: https://anonhg.NetBSD.org/src/rev/031ba1ea14f1
branches: trunk
changeset: 745386:031ba1ea14f1
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Mar 01 05:39:05 2020 +0000
description:
Use the 64-bit PCI DMA tag if avalable.
diffstat:
sys/dev/pci/if_cas.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 53b0785147a8 -r 031ba1ea14f1 sys/dev/pci/if_cas.c
--- a/sys/dev/pci/if_cas.c Sun Mar 01 03:21:54 2020 +0000
+++ b/sys/dev/pci/if_cas.c Sun Mar 01 05:39:05 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_cas.c,v 1.40 2020/02/07 00:04:28 thorpej Exp $ */
+/* $NetBSD: if_cas.c,v 1.41 2020/03/01 05:39:05 thorpej Exp $ */
/* $OpenBSD: if_cas.c,v 1.29 2009/11/29 16:19:38 kettenis Exp $ */
/*
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cas.c,v 1.40 2020/02/07 00:04:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cas.c,v 1.41 2020/03/01 05:39:05 thorpej Exp $");
#ifndef _MODULE
#include "opt_inet.h"
@@ -411,7 +411,11 @@
sc->sc_dev = self;
pci_aprint_devinfo(pa, NULL);
sc->sc_rev = PCI_REVISION(pa->pa_class);
- sc->sc_dmatag = pa->pa_dmat;
+
+ if (pci_dma64_available(pa))
+ sc->sc_dmatag = pa->pa_dmat64;
+ else
+ sc->sc_dmatag = pa->pa_dmat;
sc->sc_variant = CAS_UNKNOWN;
for (i = 0; cas_pci_devlist[i].cpd_vendor != 0; i++) {
Home |
Main Index |
Thread Index |
Old Index