Home
last modified time | relevance | path

Searched full:gadget (Results 1 – 25 of 64) sorted by relevance

123

/Documentation/usb/
Draw-gadget.rst2 USB Raw Gadget
5 USB Raw Gadget is a gadget driver that gives userspace low-level control over
6 the gadget's communication process.
8 Like any other gadget driver, Raw Gadget implements USB devices via the
9 USB gadget API. Unlike most gadget drivers, Raw Gadget does not implement
12 Raw Gadget is currently a strictly debugging feature and should not be used
20 Raw Gadget is similar to GadgetFS but provides more direct access to the
21 USB gadget layer for userspace. The key differences are:
23 1. Raw Gadget passes every USB request to userspace to get a response, while
26 its own and never forward them to the gadget layer.
[all …]
Dgadget_serial.rst2 Linux Gadget Serial Driver v2.0
27 This document and the gadget serial driver itself are
36 Versions of the gadget serial driver are available for the
38 version 2.3 or later of the gadget serial driver in a 2.6
45 gadget and usb drivers as modules.
56 The gadget serial driver is a Linux USB gadget driver, a USB device
61 The gadget serial driver talks over USB to either a CDC ACM driver
75 Gadget |
77 | Gadget USB Periph. | |
78 | Device-Side | Gadget | Controller | |
[all …]
Dgadget_multi.rst2 Multifunction Composite Gadget
8 The Multifunction Composite Gadget (or g_multi) is a composite gadget
10 a... multifunction gadget.
17 and RNDIS can be turned off. If they are both enabled the gadget will
26 To make use of the gadget one needs to make it work on host side --
27 without that there's no hope of achieving anything with the gadget.
33 Since the gadget uses standard composite framework and appears as such
45 For the gadget to work under Windows two conditions have to be met:
47 Detecting as composite gadget
50 First of all, Windows need to detect the gadget as an USB composite
[all …]
Dgadget_configfs.rst2 Linux USB gadget configured through configfs
14 A USB Linux Gadget is a device which has a UDC (USB Device Controller) and can
18 A gadget is seen by its host as a set of configurations, each of which contains
19 a number of interfaces which, from the gadget's perspective, are known as
24 Creating a gadget means deciding what configurations there will be
31 It also describes how configfs integration into gadget is designed.
62 For each gadget to be created its corresponding directory must be created::
64 $ mkdir $CONFIGFS_HOME/usb_gadget/<gadget name>
76 Each gadget needs to have its vendor id <VID> and product id <PID> specified::
81 A gadget also needs its serial number, manufacturer and product strings.
[all …]
Dmass-storage.rst2 Mass Storage Gadget (MSG)
8 Mass Storage Gadget (or MSG) acts as a USB Mass Storage device,
12 to read-only, and gadget can indicate that it is removable and/or
26 This document describes how to use the gadget from user space, its
28 using it, and how it differs from File Storage Gadget (or FSG)
35 The mass storage gadget accepts the following mass storage specific
62 If this option is set for a logical unit, gadget will accept an
75 true. This has been changed to better match File Storage Gadget
83 reader). It does *not* mean that the entire gadget can be
99 backing file could not be opened in read/write mode, the gadget
[all …]
Dgadget_uvc.rst2 Linux UVC Gadget Driver
7 The UVC Gadget driver is a driver for hardware on the *device* side of a USB
14 On the host side (once connected via USB cable), a device running the UVC Gadget
26 USB_F_UVC must be selected to enable support for the UVC gadget.
28 Configuring the gadget through configfs
30 The UVC Gadget expects to be configured through configfs using the UVC function.
35 see Documentation/ABI/testing/configfs-usb-gadget-uvc
40 created a gadget as `/sys/kernel/config/usb_gadget/g1`.
51 GADGET="$CONFIGFS/usb_gadget/g1"
52 FUNCTION="$GADGET/functions/uvc.0"
[all …]
Dfunctionfs-desc.rst5 Some of the descriptors that can be written to the FFS gadget are
7 by the composite gadget and are not written by the user to the
8 FFS gadget.
10 Descriptors are written to the "ep0" file in the FFS gadget
Dgadget_printer.rst2 Linux USB Printer Gadget Driver
19 a gadget / "device class" driver using the Linux USB Gadget API. After the
20 USB device controller driver is loaded then load the printer gadget driver.
26 printer gadget driver using a device file. The printer returns a printer status
37 To load the USB device controller driver and the printer gadget driver. The
44 The follow command line parameter can be used when loading the printer gadget
111 To get the current printer status for the gadget driver:::
210 /* Open device file for printer gadget. */
230 /* Read data from printer gadget driver. */
260 /* Open device file for printer gadget. */
[all …]
Dgadget-testing.rst2 Gadget Testing
206 process which implements the function proper). The gadget should be enabled
207 by writing a suitable string to usb_gadget/<gadget>/UDC.
215 the gadget can be enabled.
220 On the device: start the function's userspace daemon, enable the gadget
262 - create the gadget
263 - connect the gadget to a host, preferably not the one used
264 to control the gadget
272 - observe the keystrokes from the gadget
293 device: run the gadget
[all …]
/Documentation/ABI/testing/
Dconfigfs-usb-gadget1 What: /config/usb-gadget
8 What: /config/usb-gadget/gadget
13 The attributes of a gadget:
16 UDC bind a gadget to UDC/unbind a gadget;
18 to bind a gadget, empty string "" to unbind.
34 What: /config/usb-gadget/gadget/configs
38 This group contains a USB gadget's configurations
40 What: /config/usb-gadget/gadget/configs/config
51 What: /config/usb-gadget/gadget/configs/config/strings
58 What: /config/usb-gadget/gadget/configs/config/strings/language
[all …]
Dconfigfs-usb-gadget-uvc1 What: /config/usb-gadget/gadget/functions/uvc.name
13 What: /config/usb-gadget/gadget/functions/uvc.name/control
27 What: /config/usb-gadget/gadget/functions/uvc.name/control/class
32 What: /config/usb-gadget/gadget/functions/uvc.name/control/class/ss
37 What: /config/usb-gadget/gadget/functions/uvc.name/control/class/fs
42 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal
47 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/output
52 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/output/default
69 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/camera
74 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/camera/default
[all …]
Dsysfs-devices-platform-_UDC_-gadget1 What: /sys/devices/platform/_UDC_/gadget/suspended
5 Show the suspend state of an USB composite gadget.
12 What: /sys/devices/platform/_UDC_/gadget/gadget-lunX/nofua
17 the SCSI WRITE(10,12) commands when a gadget in USB Mass
Dconfigfs-usb-gadget-acm1 What: /config/usb-gadget/gadget/functions/acm.name
10 What: /config/usb-gadget/gadget/functions/acm.name/protocol
Dconfigfs-usb-gadget-midi21 What: /config/usb-gadget/gadget/functions/midi2.name
13 What: /config/usb-gadget/gadget/functions/midi2.name/ep.number
33 What: /config/usb-gadget/gadget/functions/midi2.name/ep.number/block.number
Dconfigfs-usb-gadget-ffs1 What: /config/usb-gadget/gadget/functions/ffs.name
13 strings to ep0, so the gadget can be
Dconfigfs-usb-gadget-tcm1 What: /config/usb-gadget/gadget/functions/tcm.name
Dconfigfs-usb-gadget-phonet1 What: /config/usb-gadget/gadget/functions/phonet.name
Dconfigfs-usb-gadget-obex1 What: /config/usb-gadget/gadget/functions/obex.name
Dconfigfs-usb-gadget-serial1 What: /config/usb-gadget/gadget/functions/gser.name
Dconfigfs-usb-gadget-mass-storage1 What: /config/usb-gadget/gadget/functions/mass_storage.name
16 What: /config/usb-gadget/gadget/functions/mass_storage.name/lun.name
Dconfigfs-usb-gadget-uac1_legacy1 What: /config/usb-gadget/gadget/functions/uac1_legacy.name
Dsysfs-platform-chipidea-usb25 When read, it returns string "gadget" or "host", indicating
8 It will do role switch when "gadget" or "host" is written to it.
Dconfigfs-usb-gadget-ecm1 What: /config/usb-gadget/gadget/functions/ecm.name
Dconfigfs-usb-gadget-ncm1 What: /config/usb-gadget/gadget/functions/ncm.name
/Documentation/driver-api/usb/
Dgadget.rst2 USB Gadget API for Linux
11 This document presents a Linux-USB "Gadget" kernel mode API, for use
21 just two fixed-function ones. Gadget drivers can be written so
46 are "USB gadget drivers". In USB protocol interactions, the device
47 driver is the master (or "client driver") and the gadget driver is the
50 The gadget API resembles the host side Linux-USB API in that both use
56 details and assumptions that are inappropriate for a gadget API. While
62 Structure of Gadget Drivers
67 additional layers in user space code. The ``gadget`` API is used by the
76 ``<linux/usb/gadget.h>`` API abstracts the peripheral controller
[all …]

123