u-boot-brain/drivers/usb/host
Tom Rix 8f8bd565f3 USB Consolidate descriptor definitions
The header files usb.h and usbdescriptors.h have the same nameed
structure definitions for

usb_config_descriptor
usb_interface_descriptor
usb_endpoint_descriptor
usb_device_descriptor
usb_string_descriptor

These are out right duplicates in usb.h

usb_device_descriptor
usb_string_descriptor

This one has extra unused elements

usb_endpoint_descriptor

	unsigned char	bRefresh
	unsigned char	bSynchAddress;

These in usb.h have extra elements at the end of the usb 2.0
specified descriptor and are used.

usb_config_descriptor
usb_interface_descriptor

The change is to consolidate the definition of the descriptors
to usbdescriptors.h.  The dublicates in usb.h are removed.
The extra element structure will have their name shorted by
removing the '_descriptor' suffix.

So

usb_config_descriptor -> usb_config
usb_interface_descriptor -> usb_interface

For these, the common descriptor elements are accessed now
by an element 'desc'.

As an example

-	if (iface->bInterfaceClass != USB_CLASS_HUB)
+	if (iface->desc.bInterfaceClass != USB_CLASS_HUB)

This has been compile tested on MAKEALL arm, ppc and mips.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
2009-12-20 12:47:37 +01:00
..
ehci-core.h drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
ehci-fsl.c mpc8xxx: USB: fix: access of ehci struct elements 2009-07-09 21:33:15 +02:00
ehci-hcd.c USB Consolidate descriptor definitions 2009-12-20 12:47:37 +01:00
ehci-ixp4xx.c drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
ehci-kirkwood.c Coding Style cleanup; update CHANGELOG. 2009-07-23 22:23:23 +02:00
ehci-pci.c drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
ehci-vct.c drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
ehci.h drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
isp116x-hcd.c Fix e-mail address of Gary Jennejohn. 2009-05-15 22:11:59 +02:00
isp116x.h drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
Makefile usb: add Marvell Kirkwood ehci host controller driver 2009-07-09 21:33:15 +02:00
ohci-at91.c at91: fix a USB problem for AT91SAM9261 2009-06-09 22:25:48 +02:00
ohci-hcd.c Add a unified s3c24x0 header file 2009-11-27 16:26:13 -06:00
ohci.h Replace __attribute references with __attribute__ 2009-04-28 01:01:39 +02:00
r8a66597-hcd.c drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
r8a66597.h drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
s3c64xx-hcd.c s3c64xx: move s3c64xx header files to asm-arm/arch-s3c64xx 2009-11-27 16:26:13 -06:00
sl811-hcd.c drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
sl811.h drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00