Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/dev/wip/librumpusbhc Report the root hub as self-po...



details:   https://anonhg.NetBSD.org/src/rev/e265494f57fa
branches:  trunk
changeset: 747862:e265494f57fa
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Oct 03 20:46:49 2009 +0000

description:
Report the root hub as self-powered.  Works better when attaching
power-hungry devices.

diffstat:

 sys/rump/dev/wip/librumpusbhc/rumpusbhc.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r c70a65715274 -r e265494f57fa sys/rump/dev/wip/librumpusbhc/rumpusbhc.c
--- a/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c Sat Oct 03 20:24:39 2009 +0000
+++ b/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c Sat Oct 03 20:46:49 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpusbhc.c,v 1.2 2009/10/03 19:07:33 pooka Exp $      */
+/*     $NetBSD: rumpusbhc.c,v 1.3 2009/10/03 20:46:49 pooka Exp $      */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpusbhc.c,v 1.2 2009/10/03 19:07:33 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpusbhc.c,v 1.3 2009/10/03 20:46:49 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -158,7 +158,9 @@
                                  + USB_INTERFACE_DESCRIPTOR_SIZE
                                  + USB_ENDPOINT_DESCRIPTOR_SIZE },
        .bNumInterface          = 1,
+       .bmAttributes           = UC_SELF_POWERED | UC_ATTR_MBO,
 };
+/* XXX: spec says UC_ATTR_MBO is reserved and set to one.  required? */
 
 static const usb_interface_descriptor_t rumphub_uid = {
        .bLength                = USB_INTERFACE_DESCRIPTOR_SIZE,



Home | Main Index | Thread Index | Old Index