1 What: /sys/class/ccg_usb
6 The ccg_usb/ class subdirectory belongs to ccg
9 What: /sys/class/ccg_usb/ccgX
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
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
34 A flag activating/deactivating the ccg usb gadget.
36 What: /sys/class/ccg_usb/ccgX/state
41 Configurable usb gadget state:
47 What: /sys/class/ccg_usb/ccgX/f_acm/
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
61 Maximum number of the /dev/ttyGS<X> interface the driver uses.
63 What: /sys/class/ccg_usb/ccgX/f_fs
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
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
89 Maximum number of USB functions to be supported from userspace.
91 What: /sys/class/ccg_usb/ccgX/f_rndis
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
104 RNDIS Ethernet port manufacturer string.
106 What: /sys/class/ccg_usb/ccgX/f_rndis/wceis
111 RNDIS Ethernet port wireless flag.
113 What: /sys/class/ccg_usb/ccgX/f_rndis/ethaddr
118 RNDIS Ethernet port Ethernet address.
120 What: /sys/class/ccg_usb/ccgX/f_rndis/vendorID
125 RNDIS Ethernet port vendor ID.
127 What: /sys/class/ccg_usb/ccgX/f_mass_storage
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
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
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
158 Gadget's USB mass storage underlying file.