Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Enable DMA transfer.
details: https://anonhg.NetBSD.org/src/rev/c0c58b154a2f
branches: trunk
changeset: 347041:c0c58b154a2f
user: nonaka <nonaka%NetBSD.org@localhost>
date: Thu Aug 11 01:54:30 2016 +0000
description:
Enable DMA transfer.
diffstat:
sys/dev/acpi/sdhc_acpi.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 1edf66a7c039 -r c0c58b154a2f sys/dev/acpi/sdhc_acpi.c
--- a/sys/dev/acpi/sdhc_acpi.c Thu Aug 11 01:47:15 2016 +0000
+++ b/sys/dev/acpi/sdhc_acpi.c Thu Aug 11 01:54:30 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdhc_acpi.c,v 1.2 2016/06/22 05:39:49 nonaka Exp $ */
+/* $NetBSD: sdhc_acpi.c,v 1.3 2016/08/11 01:54:30 nonaka Exp $ */
/*
* Copyright (c) 2016 Kimihiro Nonaka <nonaka%NetBSD.org@localhost>
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdhc_acpi.c,v 1.2 2016/06/22 05:39:49 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc_acpi.c,v 1.3 2016/08/11 01:54:30 nonaka Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -138,6 +138,9 @@
goto cleanup;
}
+ /* Enable DMA transfer */
+ sc->sc.sc_flags |= SDHC_FLAG_USE_DMA;
+
if (sdhc_host_found(&sc->sc, aa->aa_memt, memh, mem->ar_length) != 0) {
aprint_error_dev(self, "couldn't initialize host\n");
goto cleanup;
Home |
Main Index |
Thread Index |
Old Index