Module Name: src
Committed By: mrg
Date: Wed Sep 12 09:49:03 UTC 2018
Modified Files:
src/sys/dev/pci: hdaudio_pci.c
Log Message:
use pa_dmat64 if pci_dma64_available().
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/pci/hdaudio_pci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/hdaudio_pci.c
diff -u src/sys/dev/pci/hdaudio_pci.c:1.9 src/sys/dev/pci/hdaudio_pci.c:1.10
--- src/sys/dev/pci/hdaudio_pci.c:1.9 Wed Sep 12 03:23:38 2018
+++ src/sys/dev/pci/hdaudio_pci.c Wed Sep 12 09:49:03 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: hdaudio_pci.c,v 1.9 2018/09/12 03:23:38 mrg Exp $ */
+/* $NetBSD: hdaudio_pci.c,v 1.10 2018/09/12 09:49:03 mrg Exp $ */
/*
* Copyright (c) 2009 Precedence Technologies Ltd <[email protected]>
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdaudio_pci.c,v 1.9 2018/09/12 03:23:38 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdaudio_pci.c,v 1.10 2018/09/12 09:49:03 mrg Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -139,7 +139,10 @@ hdaudio_pci_attach(device_t parent, devi
return;
}
sc->sc_hdaudio.sc_memvalid = true;
- sc->sc_hdaudio.sc_dmat = pa->pa_dmat;
+ if (pci_dma64_available(pa))
+ sc->sc_hdaudio.sc_dmat = pa->pa_dmat64;
+ else
+ sc->sc_hdaudio.sc_dmat = pa->pa_dmat;
/* Map interrupt and establish handler */
if (pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0)) {