Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Ricoh R5C822 has working DMA, but does not adver...



details:   https://anonhg.NetBSD.org/src/rev/1b8c265eaafa
branches:  trunk
changeset: 780136:1b8c265eaafa
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Jul 12 17:37:24 2012 +0000

description:
Ricoh R5C822 has working DMA, but does not advertise support for it, use force.

diffstat:

 sys/dev/pci/sdhc_pci.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r d5102a840b8d -r 1b8c265eaafa sys/dev/pci/sdhc_pci.c
--- a/sys/dev/pci/sdhc_pci.c    Thu Jul 12 17:27:42 2012 +0000
+++ b/sys/dev/pci/sdhc_pci.c    Thu Jul 12 17:37:24 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdhc_pci.c,v 1.7 2012/03/02 18:20:33 nonaka Exp $      */
+/*     $NetBSD: sdhc_pci.c,v 1.8 2012/07/12 17:37:24 jakllsch Exp $    */
 /*     $OpenBSD: sdhc_pci.c,v 1.7 2007/10/30 18:13:45 chl Exp $        */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdhc_pci.c,v 1.7 2012/03/02 18:20:33 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc_pci.c,v 1.8 2012/07/12 17:37:24 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -119,6 +119,15 @@
                0,
                SDHC_PCI_QUIRK_RICOH_LOWER_FREQ_HACK
        },
+
+       {
+               PCI_VENDOR_RICOH,
+               PCI_PRODUCT_RICOH_Rx5C822,
+               0xffff,
+               0xffff,
+               ~0,
+               SDHC_PCI_QUIRK_FORCE_DMA
+       },
 };
 
 static void sdhc_pci_quirk_ti_hack(struct pci_attach_args *);



Home | Main Index | Thread Index | Old Index