Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Set segment register if the device is 64 bit cap...



details:   https://anonhg.NetBSD.org/src/rev/b9ffd49151f6
branches:  trunk
changeset: 535295:b9ffd49151f6
user:      augustss <augustss%NetBSD.org@localhost>
date:      Wed Aug 14 11:20:28 2002 +0000

description:
Set segment register if the device is 64 bit capable.

diffstat:

 sys/dev/usb/ehci.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 28878336b4af -r b9ffd49151f6 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Wed Aug 14 01:02:45 2002 +0000
+++ b/sys/dev/usb/ehci.c        Wed Aug 14 11:20:28 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.35 2002/08/13 09:58:05 enami Exp $  */
+/*     $NetBSD: ehci.c,v 1.36 2002/08/14 11:20:28 augustss Exp $       */
 
 /*
  * TODO
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.35 2002/08/13 09:58:05 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.36 2002/08/14 11:20:28 augustss Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -326,6 +326,11 @@
        cparams = EREAD4(sc, EHCI_HCCPARAMS);
        DPRINTF(("ehci_init: cparams=0x%x\n", cparams));
 
+       if (EHCI_HCC_64BIT(cparams)) {
+               /* MUST clear segment register if 64 bit capable. */
+               EWRITE4(sc, EHCI_CTRLDSSEGMENT, 0);
+       }
+
        sc->sc_bus.usbrev = USBREV_2_0;
 
        /* Reset the controller */



Home | Main Index | Thread Index | Old Index