Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci EHCI_USBINTR is 4 bytes wide, use proper access ...



details:   https://anonhg.NetBSD.org/src/rev/848528d4b448
branches:  trunk
changeset: 780311:848528d4b448
user:      uwe <uwe%NetBSD.org@localhost>
date:      Fri Jul 20 01:26:19 2012 +0000

description:
EHCI_USBINTR is 4 bytes wide, use proper access ops.

diffstat:

 sys/dev/pci/ehci_pci.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r d978e1477753 -r 848528d4b448 sys/dev/pci/ehci_pci.c
--- a/sys/dev/pci/ehci_pci.c    Thu Jul 19 22:47:52 2012 +0000
+++ b/sys/dev/pci/ehci_pci.c    Fri Jul 20 01:26:19 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci_pci.c,v 1.55 2012/06/10 06:15:53 mrg Exp $        */
+/*     $NetBSD: ehci_pci.c,v 1.56 2012/07/20 01:26:19 uwe Exp $        */
 
 /*
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.55 2012/06/10 06:15:53 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.56 2012/07/20 01:26:19 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -145,7 +145,7 @@
        /* Disable interrupts, so we don't get any spurious ones. */
        sc->sc.sc_offs = EREAD1(&sc->sc, EHCI_CAPLENGTH);
        DPRINTF(("%s: offs=%d\n", device_xname(self), sc->sc.sc_offs));
-       EOWRITE2(&sc->sc, EHCI_USBINTR, 0);
+       EOWRITE4(&sc->sc, EHCI_USBINTR, 0);
 
        sc->sc_pc = pc;
        sc->sc_tag = tag;
@@ -285,9 +285,9 @@
        ehci_shutdown(self, flags);
 
        /* disable interrupts */
-       EOWRITE2(&sc->sc, EHCI_USBINTR, 0);
+       EOWRITE4(&sc->sc, EHCI_USBINTR, 0);
        /* XXX grotty hack to flush the write */
-       (void)EOREAD2(&sc->sc, EHCI_USBINTR);
+       (void)EOREAD4(&sc->sc, EHCI_USBINTR);
 
        if (sc->sc_ih != NULL) {
                pci_intr_disestablish(sc->sc_pc, sc->sc_ih);



Home | Main Index | Thread Index | Old Index