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 bus_space_write_2() to write the 16 bit regi...



details:   https://anonhg.NetBSD.org/src/rev/67a11878c6f4
branches:  trunk
changeset: 541060:67a11878c6f4
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Jan 01 00:36:29 2003 +0000

description:
Use bus_space_write_2() to write the 16 bit register "EMU_TIMER" which
should fix PR kern/15663. Patch supplied by Yorick Hardy via GNATS.

diffstat:

 sys/dev/pci/emuxki.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e2e4ec4c53de -r 67a11878c6f4 sys/dev/pci/emuxki.c
--- a/sys/dev/pci/emuxki.c      Wed Jan 01 00:35:30 2003 +0000
+++ b/sys/dev/pci/emuxki.c      Wed Jan 01 00:36:29 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emuxki.c,v 1.13 2002/12/24 10:53:03 jdolecek Exp $     */
+/*     $NetBSD: emuxki.c,v 1.14 2003/01/01 00:36:29 tron Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emuxki.c,v 1.13 2002/12/24 10:53:03 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emuxki.c,v 1.14 2003/01/01 00:36:29 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -1457,7 +1457,7 @@
 
        if (timerate & ~EMU_TIMER_RATE_MASK)
                timerate = 0;
-       bus_space_write_4(sc->sc_iot, sc->sc_ioh, EMU_TIMER, timerate);
+       bus_space_write_2(sc->sc_iot, sc->sc_ioh, EMU_TIMER, timerate);
        if (!active && (sc->timerstate & EMU_TIMER_STATE_ENABLED)) {
                bus_space_write_4(sc->sc_iot, sc->sc_ioh, EMU_INTE,
                        bus_space_read_4(sc->sc_iot, sc->sc_ioh, EMU_INTE) &



Home | Main Index | Thread Index | Old Index