Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb Comments
details: https://anonhg.NetBSD.org/src/rev/4eea5dbcac61
branches: nick-nhusb
changeset: 334280:4eea5dbcac61
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Oct 21 21:36:08 2015 +0000
description:
Comments
diffstat:
sys/dev/usb/xhci.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 03bd1cfeafbc -r 4eea5dbcac61 sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c Wed Oct 21 21:34:11 2015 +0000
+++ b/sys/dev/usb/xhci.c Wed Oct 21 21:36:08 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xhci.c,v 1.28.2.43 2015/10/21 21:34:11 skrll Exp $ */
+/* $NetBSD: xhci.c,v 1.28.2.44 2015/10/21 21:36:08 skrll Exp $ */
/*
* Copyright (c) 2013 Jonathan A. Kollasch
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.28.2.43 2015/10/21 21:34:11 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.28.2.44 2015/10/21 21:36:08 skrll Exp $");
#include "opt_usb.h"
@@ -2860,6 +2860,7 @@
/* Hub requests */
case C(UR_CLEAR_FEATURE, UT_WRITE_CLASS_DEVICE):
break;
+ /* Clear Port Feature request */
case C(UR_CLEAR_FEATURE, UT_WRITE_CLASS_OTHER):
DPRINTFN(4, "UR_CLEAR_PORT_FEATURE port=%d feature=%d",
index, value, 0, 0);
@@ -2930,6 +2931,7 @@
memset(buf, 0, len); /* ? XXX */
totlen = len;
break;
+ /* Get Port Status request */
case C(UR_GET_STATUS, UT_READ_CLASS_OTHER):
DPRINTFN(8, "get port status i=%d", index, 0, 0, 0);
if (index < 1 || index > sc->sc_maxports) {
@@ -2975,6 +2977,7 @@
break;
case C(UR_SET_FEATURE, UT_WRITE_CLASS_DEVICE):
break;
+ /* Set Port Feature request */
case C(UR_SET_FEATURE, UT_WRITE_CLASS_OTHER): {
int optval = (index >> 8) & 0xff;
index &= 0xff;
Home |
Main Index |
Thread Index |
Old Index