aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ccg/sysfs-class-ccg_usb
blob: dd12a332fb00bf45f90b03edee482c76068f778e (plain) (blame)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
What:		/sys/class/ccg_usb
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		The ccg_usb/ class subdirectory belongs to ccg
		USB gadget.

What:		/sys/class/ccg_usb/ccgX
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		The /sys/class/ccg_usb/ccg{0,1,2,3...} class
		subdirectories correspond to each ccg gadget device;
		at the time of this writing there is only ccg0 and it
		represents the ccg gadget.

What:		/sys/class/ccg_usb/ccgX/functions
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		A comma-separated list of USB function names to be activated
		in this ccg gadget. It includes both the functions provided
		in-kernel by the ccg gadget and the functions provided from
		userspace through FunctionFS.

What:		/sys/class/ccg_usb/ccgX/enable
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		A flag activating/deactivating the ccg usb gadget.

What:		/sys/class/ccg_usb/ccgX/state
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		Configurable usb gadget state:

		DISCONNECTED
		CONNECTED
		CONFIGURED

What:		/sys/class/ccg_usb/ccgX/f_acm/
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		The /sys/class/ccg_usb/ccgX/f_acm subdirectory
		corresponds to the gadget's USB CDC serial (ACM) function
		driver.

What:		/sys/class/ccg_usb/ccgX/f_acm/instances
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		Maximum number of the /dev/ttyGS<X> interface the driver uses.

What:		/sys/class/ccg_usb/ccgX/f_fs
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		The /sys/class/ccg_usb/ccgX/f_fs subdirectory
		corresponds to the gadget's FunctionFS driver.

What:		/sys/class/ccg_usb/ccgX/f_fs/user_functions
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		A comma-separeted list of USB function names to be supported
		from userspace. No other userspace FunctionFS functions can
		be supported than listed here. However, the actual activation
		of these functions is still done through
		/sys/class/ccg_usb/ccgX/functions, where it is possible
		to specify any subset (including maximum and empty) of
		/sys/class/ccg_usb/ccgX/f_fs/user_functions.

What:		/sys/class/ccg_usb/ccgX/f_fs/max_user_functions
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		Maximum number of USB functions to be supported from userspace.

What:		/sys/class/ccg_usb/ccgX/f_rndis
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		The /sys/class/ccg_usb/ccgX/f_rndis subdirectory
		corresponds to the gadget's RNDIS driver.

What:		/sys/class/ccg_usb/ccgX/f_rndis/manufacturer
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		RNDIS Ethernet port manufacturer string.

What:		/sys/class/ccg_usb/ccgX/f_rndis/wceis
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		RNDIS Ethernet port wireless flag.

What:		/sys/class/ccg_usb/ccgX/f_rndis/ethaddr
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		RNDIS Ethernet port Ethernet address.

What:		/sys/class/ccg_usb/ccgX/f_rndis/vendorID
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		RNDIS Ethernet port vendor ID.

What:		/sys/class/ccg_usb/ccgX/f_mass_storage
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		The /sys/class/ccg_usb/ccgX/f_mass_storage subdirectory
		corresponds to the gadget's USB mass storage driver.

What:		/sys/class/ccg_usb/ccgX/f_mass_storage/lun
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		The /sys/class/ccg_usb/ccgX/f_mass_storage/lun
		subdirectory corresponds to the gadget's USB mass storage
		driver and its underlying storage.

What:		/sys/class/ccg_usb/ccgX/f_mass_storage/lun
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		The /sys/class/ccg_usb/ccgX/f_mass_storage/lun
		subdirectory corresponds to the gadget's USB mass storage
		driver and its underlying storage.

What:		/sys/class/ccg_usb/ccgX/f_mass_storage/lun/file
Date:		May 2012
KernelVersion:	3.4
Contact:	linux-usb@vger.kernel.org
Description:
		Gadget's USB mass storage underlying file.