2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00
linux-next/include/linux/usb
Michal Nazarewicz ddf8abd259 USB: f_fs: the FunctionFS driver
The FunctionFS is a USB composite function that can be used
with the composite framework to create an USB gadget.

>From kernel point of view it is just a composite function with
some unique behaviour.  It may be added to an USB
configuration only after the user space driver has registered
by writing descriptors and strings (the user space program has
to provide the same information that kernel level composite
functions provide when they are added to the configuration).

>From user space point of view it is a file system which when
mounted provide an "ep0" file.  User space driver need to
write descriptors and strings to that file.  It does not need
to worry about endpoints, interfaces or strings numbers but
simply provide descriptors such as if the function was the
only one (endpoints and strings numbers starting from one and
interface numbers starting from core).  The FunctionFS changes
numbers of those as needed also handling situation when
numbers differ in different configurations.

When descriptors and strings are written "ep#" files appear
(one for each declared endpoint) which handle communication on
a single endpoint.  Again, FunctionFS takes care of the real
numbers and changing of the configuration (which means that
"ep1" file may be really mapped to (say) endpoint 3 (and when
configuration changes to (say) endpoint 2)).  "ep0" is used
for receiving events and handling setup requests.

When all files are closed the function disables itself.

Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-20 13:21:43 -07:00
..
association.h
atmel_usba_udc.h USB: atmel uaba: Adding invert vbus_pin 2010-03-02 14:54:57 -08:00
audio.h ALSA: usb/audio.h: Fix field order 2010-03-05 08:23:09 +01:00
c67x00.h
cdc.h usb: cdc: ncm constants and structures added 2010-05-20 13:21:39 -07:00
ch9.h USB: Add definition for the Pipe Usage descriptor 2010-05-20 13:21:41 -07:00
ch11.h USB: export the new ch11.h file to userspce 2010-05-20 13:21:40 -07:00
composite.h USB: Composite framework: Add suspended sysfs entry 2010-05-20 13:21:39 -07:00
ehci_def.h
functionfs.h USB: f_fs: the FunctionFS driver 2010-05-20 13:21:43 -07:00
g_hid.h USB: gadget: add HID gadget driver 2010-05-20 13:21:35 -07:00
g_printer.h
gadget.h USB: Composite framework: Add suspended sysfs entry 2010-05-20 13:21:39 -07:00
gadgetfs.h
gpio_vbus.h
hcd.h USB: Support for allocating USB 3.0 streams. 2010-05-20 13:21:38 -07:00
input.h
iowarrior.h
irda.h
isp116x.h
isp1362.h
isp1760.h
Kbuild USB: export the new ch11.h file to userspce 2010-05-20 13:21:40 -07:00
langwell_udc.h
m66592.h
midi.h
musb.h USB: musb: allow the Blackfin vrsel gpio to be active low 2010-05-20 13:21:32 -07:00
ncm.h USB: ncm: added ncm.h with auxiliary definitions 2010-05-20 13:21:39 -07:00
net2280.h
otg.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 2010-03-03 08:48:58 -08:00
quirks.h USB: Add a new quirk: USB_QUIRK_HONOR_BNUMINTERFACES 2010-05-20 13:21:32 -07:00
r8a66597.h
rndis_host.h
serial.h USB: serial: remove multi-urb write from generic driver 2010-05-20 13:21:42 -07:00
sl811.h
tmc.h
ulpi.h usb: otg: add global ULPI register definitions 2010-05-20 13:21:36 -07:00
usbnet.h usbnet: Convert dev(dbg|err|warn|info) macros to netdev_<level> 2010-02-17 13:35:40 -08:00
video.h
wusb-wa.h
wusb.h tree-wide: fix misspelling of "definition" in comments 2009-12-04 23:41:47 +01:00