Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Don't forget to initialize data32iot and data32i...



details:   https://anonhg.NetBSD.org/src/rev/b12e2d3f923e
branches:  trunk
changeset: 750267:b12e2d3f923e
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue Dec 22 16:32:41 2009 +0000

description:
Don't forget to initialize data32iot and data32ioh in via_sata_chip_map_new().
This makes 32bit UDMA xfer work properly on VIA VT6421.

diffstat:

 sys/dev/pci/viaide.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 80c9e807fac5 -r b12e2d3f923e sys/dev/pci/viaide.c
--- a/sys/dev/pci/viaide.c      Tue Dec 22 14:24:37 2009 +0000
+++ b/sys/dev/pci/viaide.c      Tue Dec 22 16:32:41 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: viaide.c,v 1.64 2009/11/21 23:44:25 jakllsch Exp $     */
+/*     $NetBSD: viaide.c,v 1.65 2009/12/22 16:32:41 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.64 2009/11/21 23:44:25 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.65 2009/12/22 16:32:41 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1074,6 +1074,8 @@
                        return;
                }
                wdc_init_shadow_regs(wdc_cp);
+               wdr->data32iot = wdr->cmd_iot;
+               wdr->data32ioh = wdr->cmd_iohs[wd_data];
                wdcattach(wdc_cp);
        }
 }



Home | Main Index | Thread Index | Old Index