summaryrefslogtreecommitdiff
path: root/include/usbdescriptors.h
Commit message (Collapse)AuthorAgeLines
* usb: align usb_endpoint_descriptor to 16-bit boundaryStefan Kristiansson2011-12-11-1/+1
| | | | | | | | | | | | | | | | | The usb_endpoint_descriptor struct is 7 bytes large and is defined as an array (ep_desc[USB_MAXENDPOINTS]) in the usb_interface struct in include/usb.h This fact will result in that every odd index in that array will start at an uneven address, this in turn makes accesses to u16 wMaxPacketSize unaligned. Such accesses are illegal on the OpenRISC architecture (as well as other architectures) and will render a bus error. Setting the aligned(2) attribute on usb_endpoint_descriptor will force wMaxPacketSize to a 16-bit boundary. Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
* USB add macros for debugging usb device setup.Tom Rix2009-12-20-0/+26
| | | | | | | When developing usb device features, it is useful to print out common usb structures. Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
* Code cleanupWolfgang Denk2006-06-14-1/+1
|
* Various USB related patchesWolfgang Denk2006-06-14-14/+24
| | | | | | | | | | | | | - Add support for mpc8xx USB device. - Add support for Common Device Class - Abstract Control Model USB console. - Add support for flow control in USB slave devices. - Add support for switching between gserial and cdc_acm using environment. - Minor changes to usbdcore_omap1510.c usbdcore_omap1510.h - Update usbcore slightly to ease host enumeration. - Fix non-portable endian problems in usbdcore and usbdcore_ep0. - Add AdderUSB_config as a defconfig to enable usage of the USB console by default with the Adder87x U-Boot port. Patches by Bryan O'Donoghue <bodonoghue@codehermit.ie>, 29 May 2006
* Add support for Siemens SX1 mobile phone;wdenk2004-03-12-0/+497
add support for USB-based console (enable with "setenv stdout usbtty; setenv stdin usbtty")