u-boot/drivers/usb/gadget
Przemyslaw Marczak 93c813b3ac usb: ums: code refactoring to improve reusability on other boards.
This patch introduces some cleanups to ums code. Changes:

ums common:
- introduce UMS_START_SECTOR and UMS_NUM_SECTORS as defined in
  usb_mass_storage.h both default values as 0 if board config
  doesn't define them

common cleanup changes:
- change name of struct "ums_board_info" to "ums"
- "ums_device" fields are moved to struct ums and "dev_num" is removed
- change function name: board_ums_init to ums_init
- remove "extern" prefixes from usb_mass_storage.h

cmd_usb_mass_storage:
- change error() to printf() if need to print info message
- change return values to command_ret_t type at ums command code
- add command usage string

Changes v2:
ums common:
- always returns number of read/write sectors
- coding style clean-up
ums gadget:
- calculate amount of read/write from device returned value.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
2013-11-08 20:46:19 +01:00
..
atmel_usba_udc.c USB: gadget: atmel: disconnect before unbind 2013-09-24 17:51:36 +02:00
atmel_usba_udc.h USB: gadget: add atmel usba udc driver 2013-09-24 17:51:35 +02:00
composite.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
config.c usb: gadget: config: fix unaligned access issues 2013-09-24 17:51:35 +02:00
core.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
designware_udc.c usb: udc: add udc.h include file 2013-10-20 23:46:38 +02:00
ep0.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ep0.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
epautoconf.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ether.c usb: gadget: ether: return error from rx_submit if no request 2013-10-20 23:42:39 +02:00
f_dfu.c dfu: Implementation of target reset after communication with dfu-util's -R switch 2013-07-29 23:01:33 +02:00
f_dfu.h usb:g_dnl:dfu: Download gadget and DFU function code clean up 2013-09-24 17:51:36 +02:00
f_mass_storage.c usb: ums: code refactoring to improve reusability on other boards. 2013-11-08 20:46:19 +01:00
f_thor.c usb:g_dnl:f_thor: USB download function to support TIZEN's THOR protocol 2013-10-20 23:42:41 +02:00
f_thor.h usb:g_dnl:f_thor: USB download function to support TIZEN's THOR protocol 2013-10-20 23:42:41 +02:00
fotg210.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
g_dnl.c usb:g_dnl: Support for TIZEN's THOR function in generic download code 2013-10-20 23:42:41 +02:00
gadget_chips.h usb: mv_udc: Unbreak the mv_udc driver 2013-07-29 23:01:31 +02:00
Makefile drivers: usb: convert makefiles to Kbuild style 2013-10-31 13:25:38 -04:00
mpc8xx_udc.c usb: udc: add udc.h include file 2013-10-20 23:46:38 +02:00
mv_udc.c usb: gadget: mv_udc: split mv_udc.h file 2013-10-20 23:46:36 +02:00
mv_udc.h usb: gadget: mv_udc: split mv_udc.h file 2013-10-20 23:46:36 +02:00
ndis.h USB: Add USB RNDIS gadget protocol 2011-02-19 20:32:37 +01:00
omap1510_udc.c usb: udc: add udc.h include file 2013-10-20 23:46:38 +02:00
pxa25x_udc.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pxa25x_udc.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pxa27x_udc.c usb: udc: add udc.h include file 2013-10-20 23:46:38 +02:00
regs-otg.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
rndis.c Coding Style cleanup: remove trailing empty lines 2011-03-27 21:48:08 +02:00
rndis.h USB-RNDIS: Send RNDIS state on disconnecting 2011-02-19 20:32:38 +01:00
s3c_udc_otg.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
s3c_udc_otg_xfer_dma.c usb:udc:s3c: Reduce dcache invalidate range for UDC receive buffer 2013-10-20 23:42:40 +02:00
storage_common.c usb: ums: code refactoring to improve reusability on other boards. 2013-11-08 20:46:19 +01:00
usbstring.c Add LGPL-2.1+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00