Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Fix ETTF PSPD definitions and enable the ETTF PO...
details: https://anonhg.NetBSD.org/src/rev/b076556f2697
branches: trunk
changeset: 782481:b076556f2697
user: matt <matt%NetBSD.org@localhost>
date: Sun Nov 04 12:01:55 2012 +0000
description:
Fix ETTF PSPD definitions and enable the ETTF PORTSC detection.
Fix EHCI portion of PR/47156.
diffstat:
sys/dev/usb/ehci.c | 6 ++----
sys/dev/usb/ehcireg.h | 8 ++++----
2 files changed, 6 insertions(+), 8 deletions(-)
diffs (57 lines):
diff -r 47c1e373c18e -r b076556f2697 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c Sun Nov 04 11:12:31 2012 +0000
+++ b/sys/dev/usb/ehci.c Sun Nov 04 12:01:55 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.192 2012/06/22 00:12:23 mrg Exp $ */
+/* $NetBSD: ehci.c,v 1.193 2012/11/04 12:01:55 matt Exp $ */
/*
* Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.192 2012/06/22 00:12:23 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.193 2012/11/04 12:01:55 matt Exp $");
#include "ohci.h"
#include "uhci.h"
@@ -2363,7 +2363,6 @@
DPRINTFN(8,("ehci_root_ctrl_start: port status=0x%04x\n", v));
i = UPS_HIGH_SPEED;
-#if 0
if (sc->sc_flags & EHCIF_ETTF) {
/*
* If we are doing embedded transaction translation,
@@ -2373,7 +2372,6 @@
*/
i = __SHIFTOUT(v, EHCI_PS_PSPD) * UPS_LOW_SPEED;
}
-#endif
if (v & EHCI_PS_CS) i |= UPS_CURRENT_CONNECT_STATUS;
if (v & EHCI_PS_PE) i |= UPS_PORT_ENABLED;
if (v & EHCI_PS_SUSP) i |= UPS_SUSPEND;
diff -r 47c1e373c18e -r b076556f2697 sys/dev/usb/ehcireg.h
--- a/sys/dev/usb/ehcireg.h Sun Nov 04 11:12:31 2012 +0000
+++ b/sys/dev/usb/ehcireg.h Sun Nov 04 12:01:55 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ehcireg.h,v 1.33 2011/10/17 16:44:02 mbalmer Exp $ */
+/* $NetBSD: ehcireg.h,v 1.34 2012/11/04 12:01:55 matt Exp $ */
/*
* Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
@@ -149,10 +149,10 @@
#define EHCI_CONF_CF 0x00000001 /* RW configure flag */
#define EHCI_PORTSC(n) (0x40+4*(n)) /* RO, RW, RWC Port Status reg */
-#define EHCI_PS_PSPD 0x03000000 /* RO port speed (ETTF) */
+#define EHCI_PS_PSPD 0x0C000000 /* RO port speed (ETTF) */
#define EHCI_PS_PSPD_FS 0x00000000 /* Full speed (ETTF) */
-#define EHCI_PS_PSPD_LS 0x01000000 /* Low speed (ETTF) */
-#define EHCI_PS_PSPD_HS 0x02000000 /* High speed (ETTF) */
+#define EHCI_PS_PSPD_LS 0x04000000 /* Low speed (ETTF) */
+#define EHCI_PS_PSPD_HS 0x08000000 /* High speed (ETTF) */
#define EHCI_PS_WKOC_E 0x00400000 /* RW wake on over current ena */
#define EHCI_PS_WKDSCNNT_E 0x00200000 /* RW wake on disconnect ena */
#define EHCI_PS_WKCNNT_E 0x00100000 /* RW wake on connect ena */
Home |
Main Index |
Thread Index |
Old Index