summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hcd.h
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez2006-08-26 04:35:29 +0200
committerGreg Kroah-Hartman2006-09-27 20:58:55 +0200
commit0165de09747be76b09ef769fcfed3514fe5f6509 (patch)
treef4b3dd96715630fbaa73b7791ba08f5c170d32a1 /drivers/usb/core/hcd.h
parentusb: deal with broken config descriptors (diff)
downloadkernel-qcow2-linux-0165de09747be76b09ef769fcfed3514fe5f6509.tar.gz
kernel-qcow2-linux-0165de09747be76b09ef769fcfed3514fe5f6509.tar.xz
kernel-qcow2-linux-0165de09747be76b09ef769fcfed3514fe5f6509.zip
wusb: hub code recognizes wusb ports
This patch enables the USB stack to recognize WUSB devices (from a WUSB HCD) and assigns them the proper speed setting (USB_SPEED_VARIABLE). 1. Introduce usb_hcd->wireless to mark a host controller instance as being wireless, and thus having wireless 'fake' ports. [discarded previous model of using a reserved bit in the port_stat struct to do this; thanks to Alan Stern for indicating the proper way to do it]. 2. Introduce hub.c:hub_is_wusb() that tests if a hub is a WUSB root hub (WUSB doesn't have non-root hubs). New code being pushed to linuxuwb.org requires this patch to connect WUSB devices. Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/hcd.h')
-rw-r--r--drivers/usb/core/hcd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/hcd.h b/drivers/usb/core/hcd.h
index 58c7767bc904..fc71a08a1af4 100644
--- a/drivers/usb/core/hcd.h
+++ b/drivers/usb/core/hcd.h
@@ -85,6 +85,7 @@ struct usb_hcd { /* usb_bus.hcpriv points to this */
unsigned uses_new_polling:1;
unsigned poll_rh:1; /* poll for rh status? */
unsigned poll_pending:1; /* status has changed? */
+ unsigned wireless:1; /* Wireless USB HCD */
int irq; /* irq allocated */
void __iomem *regs; /* device memory/io */