1 What: /sys/class/ccg_usb
4 Contact: linux-usb@vger.kernel.org
6 The ccg_usb/ class subdirectory belongs to ccg
9 What: /sys/class/ccg_usb/ccgX
12 Contact: linux-usb@vger.kernel.org
14 The /sys/class/ccg_usb/ccg{0,1,2,3...} class
15 subdirectories correspond to each ccg gadget device;
16 at the time of this writing there is only ccg0 and it
17 represents the ccg gadget.
19 What: /sys/class/ccg_usb/ccgX/functions
22 Contact: linux-usb@vger.kernel.org
24 A comma-separated list of USB function names to be activated
25 in this ccg gadget. It includes both the functions provided
26 in-kernel by the ccg gadget and the functions provided from
27 userspace through FunctionFS.
29 What: /sys/class/ccg_usb/ccgX/enable
32 Contact: linux-usb@vger.kernel.org
34 A flag activating/deactivating the ccg usb gadget.
36 What: /sys/class/ccg_usb/ccgX/state
39 Contact: linux-usb@vger.kernel.org
41 Configurable usb gadget state:
47 What: /sys/class/ccg_usb/ccgX/f_acm/
50 Contact: linux-usb@vger.kernel.org
52 The /sys/class/ccg_usb/ccgX/f_acm subdirectory
53 corresponds to the gadget's USB CDC serial (ACM) function
56 What: /sys/class/ccg_usb/ccgX/f_acm/instances
59 Contact: linux-usb@vger.kernel.org
61 Maximum number of the /dev/ttyGS<X> interface the driver uses.
63 What: /sys/class/ccg_usb/ccgX/f_fs
66 Contact: linux-usb@vger.kernel.org
68 The /sys/class/ccg_usb/ccgX/f_fs subdirectory
69 corresponds to the gadget's FunctionFS driver.
71 What: /sys/class/ccg_usb/ccgX/f_fs/user_functions
74 Contact: linux-usb@vger.kernel.org
76 A comma-separeted list of USB function names to be supported
77 from userspace. No other userspace FunctionFS functions can
78 be supported than listed here. However, the actual activation
79 of these functions is still done through
80 /sys/class/ccg_usb/ccgX/functions, where it is possible
81 to specify any subset (including maximum and empty) of
82 /sys/class/ccg_usb/ccgX/f_fs/user_functions.
84 What: /sys/class/ccg_usb/ccgX/f_fs/max_user_functions
87 Contact: linux-usb@vger.kernel.org
89 Maximum number of USB functions to be supported from userspace.
91 What: /sys/class/ccg_usb/ccgX/f_rndis
94 Contact: linux-usb@vger.kernel.org
96 The /sys/class/ccg_usb/ccgX/f_rndis subdirectory
97 corresponds to the gadget's RNDIS driver.
99 What: /sys/class/ccg_usb/ccgX/f_rndis/manufacturer
102 Contact: linux-usb@vger.kernel.org
104 RNDIS Ethernet port manufacturer string.
106 What: /sys/class/ccg_usb/ccgX/f_rndis/wceis
109 Contact: linux-usb@vger.kernel.org
111 RNDIS Ethernet port wireless flag.
113 What: /sys/class/ccg_usb/ccgX/f_rndis/ethaddr
116 Contact: linux-usb@vger.kernel.org
118 RNDIS Ethernet port Ethernet address.
120 What: /sys/class/ccg_usb/ccgX/f_rndis/vendorID
123 Contact: linux-usb@vger.kernel.org
125 RNDIS Ethernet port vendor ID.
127 What: /sys/class/ccg_usb/ccgX/f_mass_storage
130 Contact: linux-usb@vger.kernel.org
132 The /sys/class/ccg_usb/ccgX/f_mass_storage subdirectory
133 corresponds to the gadget's USB mass storage driver.
135 What: /sys/class/ccg_usb/ccgX/f_mass_storage/lun
138 Contact: linux-usb@vger.kernel.org
140 The /sys/class/ccg_usb/ccgX/f_mass_storage/lun
141 subdirectory corresponds to the gadget's USB mass storage
142 driver and its underlying storage.
144 What: /sys/class/ccg_usb/ccgX/f_mass_storage/lun
147 Contact: linux-usb@vger.kernel.org
149 The /sys/class/ccg_usb/ccgX/f_mass_storage/lun
150 subdirectory corresponds to the gadget's USB mass storage
151 driver and its underlying storage.
153 What: /sys/class/ccg_usb/ccgX/f_mass_storage/lun/file
156 Contact: linux-usb@vger.kernel.org
158 Gadget's USB mass storage underlying file.