2013-06-13 08:37:26 +00:00
|
|
|
What: /config/usb-gadget
|
|
|
|
Date: Jun 2013
|
2014-01-29 22:05:54 +00:00
|
|
|
KernelVersion: 3.11
|
2013-06-13 08:37:26 +00:00
|
|
|
Description:
|
|
|
|
This group contains sub-groups corresponding to created
|
|
|
|
USB gadgets.
|
|
|
|
|
|
|
|
What: /config/usb-gadget/gadget
|
|
|
|
Date: Jun 2013
|
2014-01-29 22:05:54 +00:00
|
|
|
KernelVersion: 3.11
|
2013-06-13 08:37:26 +00:00
|
|
|
Description:
|
|
|
|
|
|
|
|
The attributes of a gadget:
|
|
|
|
|
2020-10-30 07:40:39 +00:00
|
|
|
================ ============================================
|
|
|
|
UDC bind a gadget to UDC/unbind a gadget;
|
|
|
|
write UDC's name found in /sys/class/udc/*
|
|
|
|
to bind a gadget, empty string "" to unbind.
|
|
|
|
|
|
|
|
max_speed maximum speed the driver supports. Valid
|
|
|
|
names are super-speed-plus, super-speed,
|
|
|
|
high-speed, full-speed, and low-speed.
|
|
|
|
|
|
|
|
bDeviceClass USB device class code
|
|
|
|
bDeviceSubClass USB device subclass code
|
|
|
|
bDeviceProtocol USB device protocol code
|
|
|
|
bMaxPacketSize0 maximum endpoint 0 packet size
|
|
|
|
bcdDevice bcd device release number
|
|
|
|
bcdUSB bcd USB specification version number
|
|
|
|
idProduct product ID
|
|
|
|
idVendor vendor ID
|
|
|
|
================ ============================================
|
2013-06-13 08:37:26 +00:00
|
|
|
|
|
|
|
What: /config/usb-gadget/gadget/configs
|
|
|
|
Date: Jun 2013
|
2014-01-29 22:05:54 +00:00
|
|
|
KernelVersion: 3.11
|
2013-06-13 08:37:26 +00:00
|
|
|
Description:
|
|
|
|
This group contains a USB gadget's configurations
|
|
|
|
|
|
|
|
What: /config/usb-gadget/gadget/configs/config
|
|
|
|
Date: Jun 2013
|
|
|
|
KernelVersion: 3.11
|
|
|
|
Description:
|
|
|
|
The attributes of a configuration:
|
|
|
|
|
2020-10-30 07:40:39 +00:00
|
|
|
================ ======================================
|
|
|
|
bmAttributes configuration characteristics
|
|
|
|
MaxPower maximum power consumption from the bus
|
|
|
|
================ ======================================
|
2013-06-13 08:37:26 +00:00
|
|
|
|
|
|
|
What: /config/usb-gadget/gadget/configs/config/strings
|
|
|
|
Date: Jun 2013
|
|
|
|
KernelVersion: 3.11
|
|
|
|
Description:
|
|
|
|
This group contains subdirectories for language-specific
|
|
|
|
strings for this configuration.
|
|
|
|
|
|
|
|
What: /config/usb-gadget/gadget/configs/config/strings/language
|
|
|
|
Date: Jun 2013
|
|
|
|
KernelVersion: 3.11
|
|
|
|
Description:
|
|
|
|
The attributes:
|
|
|
|
|
2020-10-30 07:40:39 +00:00
|
|
|
================ =========================
|
|
|
|
configuration configuration description
|
|
|
|
================ =========================
|
2013-06-13 08:37:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
What: /config/usb-gadget/gadget/functions
|
|
|
|
Date: Jun 2013
|
2014-01-29 22:05:54 +00:00
|
|
|
KernelVersion: 3.11
|
2013-06-13 08:37:26 +00:00
|
|
|
Description:
|
|
|
|
This group contains functions available to this USB gadget.
|
|
|
|
|
2014-05-08 12:06:26 +00:00
|
|
|
What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>
|
|
|
|
Date: May 2014
|
|
|
|
KernelVersion: 3.16
|
|
|
|
Description:
|
|
|
|
This group contains "Feature Descriptors" specific for one
|
|
|
|
gadget's USB interface or one interface group described
|
|
|
|
by an IAD.
|
|
|
|
|
|
|
|
The attributes:
|
|
|
|
|
2020-10-30 07:40:39 +00:00
|
|
|
================= =====================================
|
|
|
|
compatible_id 8-byte string for "Compatible ID"
|
|
|
|
sub_compatible_id 8-byte string for "Sub Compatible ID"
|
|
|
|
================= =====================================
|
2014-05-08 12:06:26 +00:00
|
|
|
|
2014-05-08 12:06:28 +00:00
|
|
|
What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>/<property>
|
|
|
|
Date: May 2014
|
|
|
|
KernelVersion: 3.16
|
|
|
|
Description:
|
|
|
|
This group contains "Extended Property Descriptors" specific for one
|
|
|
|
gadget's USB interface or one interface group described
|
|
|
|
by an IAD.
|
|
|
|
|
|
|
|
The attributes:
|
|
|
|
|
2020-10-30 07:40:39 +00:00
|
|
|
===== ===============================================
|
|
|
|
type value 1..7 for interpreting the data
|
|
|
|
|
|
|
|
- 1: unicode string
|
|
|
|
- 2: unicode string with environment variable
|
|
|
|
- 3: binary
|
|
|
|
- 4: little-endian 32-bit
|
|
|
|
- 5: big-endian 32-bit
|
|
|
|
- 6: unicode string with a symbolic link
|
|
|
|
- 7: multiple unicode strings
|
|
|
|
data blob of data to be interpreted depending on
|
2014-05-08 12:06:28 +00:00
|
|
|
type
|
2020-10-30 07:40:39 +00:00
|
|
|
===== ===============================================
|
2014-05-08 12:06:28 +00:00
|
|
|
|
2013-06-13 08:37:26 +00:00
|
|
|
What: /config/usb-gadget/gadget/strings
|
|
|
|
Date: Jun 2013
|
2014-01-29 22:05:54 +00:00
|
|
|
KernelVersion: 3.11
|
2013-06-13 08:37:26 +00:00
|
|
|
Description:
|
|
|
|
This group contains subdirectories for language-specific
|
|
|
|
strings for this gadget.
|
|
|
|
|
|
|
|
What: /config/usb-gadget/gadget/strings/language
|
|
|
|
Date: Jun 2013
|
2014-01-29 22:05:54 +00:00
|
|
|
KernelVersion: 3.11
|
2013-06-13 08:37:26 +00:00
|
|
|
Description:
|
|
|
|
The attributes:
|
|
|
|
|
2020-10-30 07:40:39 +00:00
|
|
|
============ =================================
|
|
|
|
serialnumber gadget's serial number (string)
|
|
|
|
product gadget's product description
|
|
|
|
manufacturer gadget's manufacturer description
|
|
|
|
============ =================================
|
2013-06-13 08:37:26 +00:00
|
|
|
|
2014-05-08 12:06:25 +00:00
|
|
|
What: /config/usb-gadget/gadget/os_desc
|
|
|
|
Date: May 2014
|
|
|
|
KernelVersion: 3.16
|
|
|
|
Description:
|
|
|
|
This group contains "OS String" extension handling attributes.
|
|
|
|
|
2020-10-30 07:40:39 +00:00
|
|
|
============= ===============================================
|
docs: typo fixes in Documentation/ABI/
Fix the following typos in the Documentation/ABI/ directory:
- In file obsolete/sysfs-cpuidle, change "obselete" for "obsolete".
- In file removed/sysfs-kernel-uids, change "propotional" for "proportional".
- In directory stable/, fix the following words: "associtated" for "associated",
"hexidecimal" for "hexadecimal", "vlue" for "value", "csed" for "caused" and
"wrtie" for "write". This updates a total of five files.
- In directory testing/, fix the following words: "subystem" for "subsystem",
"isochrnous" for "isochronous", "Desctiptors" for "Descriptors", "picutre" for
"picture", "capture" for "capture", "occured" for "ocurred", "connnected" for
"connected","agressively" for "aggressively","manufacturee" for "manufacturer"
and "transaction" for "transaction", "malformatted" for "incorrectly formated"
,"internel" for "internal", "writtento" for "written to", "specificed" for
"specified", "beyound" for "beyond", "Symetric" for "Symmetric". This updates
a total of eleven files.
Signed-off-by: Carlos Bilbao <bilbao@vt.edu>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/5710038.lOV4Wx5bFT@iron-maiden
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2021-05-13 13:31:10 +00:00
|
|
|
use flag turning "OS Descriptors" support on/off
|
2020-10-30 07:40:39 +00:00
|
|
|
b_vendor_code one-byte value used for custom per-device and
|
2014-05-08 12:06:25 +00:00
|
|
|
per-interface requests
|
2020-10-30 07:40:39 +00:00
|
|
|
qw_sign an identifier to be reported as "OS String"
|
2014-05-08 12:06:25 +00:00
|
|
|
proper
|
2020-10-30 07:40:39 +00:00
|
|
|
============= ===============================================
|