aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI/testing/configfs-usb-gadget
blob: 01e769d6984d575bc431b3be14f014434633427b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
What:		/config/usb-gadget
Date:		Jun 2013
KenelVersion:	3.11
Description:
		This group contains sub-groups corresponding to created
		USB gadgets.

What:		/config/usb-gadget/gadget
Date:		Jun 2013
KenelVersion:	3.11
Description:

		The attributes of a gadget:

		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.

		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

What:		/config/usb-gadget/gadget/configs
Date:		Jun 2013
KenelVersion:	3.11
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:

		bmAttributes	- configuration characteristics
		MaxPower	- maximum power consumption from the bus

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:

		configuration	- configuration description


What:		/config/usb-gadget/gadget/functions
Date:		Jun 2013
KenelVersion:	3.11
Description:
		This group contains functions available to this USB gadget.

What:		/config/usb-gadget/gadget/strings
Date:		Jun 2013
KenelVersion:	3.11
Description:
		This group contains subdirectories for language-specific
		strings for this gadget.

What:		/config/usb-gadget/gadget/strings/language
Date:		Jun 2013
KenelVersion:	3.11
Description:
		The attributes:

		serialnumber	- gadget's serial number (string)
		product		- gadget's product description
		manufacturer	- gadget's manufacturer description