linux-stable/include/uapi/linux/usb
Robert Baldyga 1b0bf88fd8 usb: gadget: f_fs: virtual endpoint address mapping
This patch introduces virtual endpoint address mapping. It separates
function logic form physical endpoint addresses making it more hardware
independent.

Following modifications changes user space API, so to enable them user
have to switch on the FUNCTIONFS_VIRTUAL_ADDR flag in descriptors.

Endpoints are now refered using virtual endpoint addresses chosen by
user in endpoint descpriptors. This applies to each context when endpoint
address can be used:
- when accessing endpoint files in FunctionFS filesystemi (in file name),
- in setup requests directed to specific endpoint (in wIndex field),
- in descriptors returned by FUNCTIONFS_ENDPOINT_DESC ioctl.

In endpoint file names the endpoint address number is formatted as
double-digit hexadecimal value ("ep%02x") which has few advantages -
it is easy to parse, allows to easly recognize endpoint direction basing
on its name (IN endpoint number starts with digit 8, and OUT with 0)
which can be useful for debugging purpose, and it makes easier to introduce
further features allowing to use each endpoint number in both directions
to have more endpoints available for function if hardware supports this
(for example we could have ep01 which is endpoint 1 with OUT direction,
and ep81 which is endpoint 1 with IN direction).

Physical endpoint address can be still obtained using ioctl named
FUNCTIONFS_ENDPOINT_REVMAP, but now it's not neccesary to handle
USB transactions properly.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-09-16 09:58:21 -05:00
..
audio.h ALSA: usb: Fix Processing Unit Descriptor parsers 2013-02-21 13:55:12 +01:00
cdc-wdm.h USB: cdc-wdm: properly include types.h 2014-05-27 16:32:10 -07:00
cdc.h USB: cdc: add MBIM extended functional descriptor structure 2014-03-20 16:57:34 -04:00
ch9.h USB: fix an incorrect table index in comment 2013-04-08 09:08:34 -07:00
ch11.h USB: move the definition of USB_MAXCHILDREN 2013-07-16 15:33:02 -07:00
functionfs.h usb: gadget: f_fs: virtual endpoint address mapping 2014-09-16 09:58:21 -05:00
g_printer.h
gadgetfs.h
Kbuild usb: cdc-wdm: export cdc-wdm uapi header 2014-05-27 16:29:39 -07:00
midi.h
tmc.h
video.h