Kill the "bus powered" bit in the configuration descriptor. This doesn't

exist in newer spec revisions, and is recommended to be set to 1.
So call it _MBO and also use it in the fake root hub descriptors, just
for sanity, even if nothing ever looks at it.
This commit is contained in:
drochner 2007-01-19 22:46:21 +00:00
parent a813a29041
commit 60e1a2a1cb
4 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ehci.c,v 1.119 2007/01/07 16:44:44 drochner Exp $ */
/* $NetBSD: ehci.c,v 1.120 2007/01/19 22:46:21 drochner Exp $ */
/*
* Copyright (c) 2004,2005 The NetBSD Foundation, Inc.
@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.119 2007/01/07 16:44:44 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.120 2007/01/19 22:46:21 drochner Exp $");
#include "ohci.h"
#include "uhci.h"
@ -1584,7 +1584,7 @@ Static usb_config_descriptor_t ehci_confd = {
1,
1,
0,
UC_SELF_POWERED,
UC_ATTR_MBO | UC_SELF_POWERED,
0 /* max power */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: ohci.c,v 1.179 2006/11/16 01:33:26 christos Exp $ */
/* $NetBSD: ohci.c,v 1.180 2007/01/19 22:46:21 drochner Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
/*
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.179 2006/11/16 01:33:26 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.180 2007/01/19 22:46:21 drochner Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -2323,7 +2323,7 @@ Static usb_config_descriptor_t ohci_confd = {
1,
1,
0,
UC_SELF_POWERED,
UC_ATTR_MBO | UC_SELF_POWERED,
0 /* max power */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: uhci.c,v 1.205 2006/11/16 01:33:26 christos Exp $ */
/* $NetBSD: uhci.c,v 1.206 2007/01/19 22:46:21 drochner Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
/*
@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.205 2006/11/16 01:33:26 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.206 2007/01/19 22:46:21 drochner Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -3020,7 +3020,7 @@ usb_config_descriptor_t uhci_confd = {
1,
1,
0,
UC_SELF_POWERED,
UC_ATTR_MBO | UC_SELF_POWERED,
0 /* max power */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: usb.h,v 1.75 2006/12/03 22:34:58 pavel Exp $ */
/* $NetBSD: usb.h,v 1.76 2007/01/19 22:46:21 drochner Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb.h,v 1.14 1999/11/17 22:33:46 n_hibma Exp $ */
/*
@ -215,7 +215,7 @@ typedef struct {
uByte bConfigurationValue;
uByte iConfiguration;
uByte bmAttributes;
#define UC_BUS_POWERED 0x80
#define UC_ATTR_MBO 0x80
#define UC_SELF_POWERED 0x40
#define UC_REMOTE_WAKEUP 0x20
uByte bMaxPower; /* max current in 2 mA units */