Mike Lockwood | 332bb43 | 2012-05-16 12:34:37 +0200 | [diff] [blame] | 1 | What: /sys/class/ccg_usb |
| 2 | Date: May 2012 |
| 3 | KernelVersion: 3.4 |
| 4 | Contact: linux-usb@vger.kernel.org |
| 5 | Description: |
| 6 | The ccg_usb/ class subdirectory belongs to ccg |
| 7 | USB gadget. |
| 8 | |
| 9 | What: /sys/class/ccg_usb/ccgX |
| 10 | Date: May 2012 |
| 11 | KernelVersion: 3.4 |
| 12 | Contact: linux-usb@vger.kernel.org |
| 13 | Description: |
| 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. |
| 18 | |
| 19 | What: /sys/class/ccg_usb/ccgX/functions |
| 20 | Date: May 2012 |
| 21 | KernelVersion: 3.4 |
| 22 | Contact: linux-usb@vger.kernel.org |
| 23 | Description: |
| 24 | A comma-separated list of USB function names to be activated |
Andrzej Pietrasiewicz | 4502798 | 2012-05-16 12:34:38 +0200 | [diff] [blame^] | 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. |
Mike Lockwood | 332bb43 | 2012-05-16 12:34:37 +0200 | [diff] [blame] | 28 | |
| 29 | What: /sys/class/ccg_usb/ccgX/enable |
| 30 | Date: May 2012 |
| 31 | KernelVersion: 3.4 |
| 32 | Contact: linux-usb@vger.kernel.org |
| 33 | Description: |
| 34 | A flag activating/deactivating the ccg usb gadget. |
| 35 | |
| 36 | What: /sys/class/ccg_usb/ccgX/state |
| 37 | Date: May 2012 |
| 38 | KernelVersion: 3.4 |
| 39 | Contact: linux-usb@vger.kernel.org |
| 40 | Description: |
| 41 | Configurable usb gadget state: |
| 42 | |
| 43 | DISCONNECTED |
| 44 | CONNECTED |
| 45 | CONFIGURED |
| 46 | |
| 47 | What: /sys/class/ccg_usb/ccgX/f_acm/ |
| 48 | Date: May 2012 |
| 49 | KernelVersion: 3.4 |
| 50 | Contact: linux-usb@vger.kernel.org |
| 51 | Description: |
| 52 | The /sys/class/ccg_usb/ccgX/f_acm subdirectory |
| 53 | corresponds to the gadget's USB CDC serial (ACM) function |
| 54 | driver. |
| 55 | |
| 56 | What: /sys/class/ccg_usb/ccgX/f_acm/instances |
| 57 | Date: May 2012 |
| 58 | KernelVersion: 3.4 |
| 59 | Contact: linux-usb@vger.kernel.org |
| 60 | Description: |
| 61 | Maximum number of the /dev/ttyGS<X> interface the driver uses. |
| 62 | |
Andrzej Pietrasiewicz | 4502798 | 2012-05-16 12:34:38 +0200 | [diff] [blame^] | 63 | What: /sys/class/ccg_usb/ccgX/f_fs |
| 64 | Date: May 2012 |
| 65 | KernelVersion: 3.4 |
| 66 | Contact: linux-usb@vger.kernel.org |
| 67 | Description: |
| 68 | The /sys/class/ccg_usb/ccgX/f_fs subdirectory |
| 69 | corresponds to the gadget's FunctionFS driver. |
| 70 | |
| 71 | What: /sys/class/ccg_usb/ccgX/f_fs/user_functions |
| 72 | Date: May 2012 |
| 73 | KernelVersion: 3.4 |
| 74 | Contact: linux-usb@vger.kernel.org |
| 75 | Description: |
| 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. |
| 83 | |
| 84 | What: /sys/class/ccg_usb/ccgX/f_fs/max_user_functions |
| 85 | Date: May 2012 |
| 86 | KernelVersion: 3.4 |
| 87 | Contact: linux-usb@vger.kernel.org |
| 88 | Description: |
| 89 | Maximum number of USB functions to be supported from userspace. |
| 90 | |
Mike Lockwood | 332bb43 | 2012-05-16 12:34:37 +0200 | [diff] [blame] | 91 | What: /sys/class/ccg_usb/ccgX/f_rndis |
| 92 | Date: May 2012 |
| 93 | KernelVersion: 3.4 |
| 94 | Contact: linux-usb@vger.kernel.org |
| 95 | Description: |
| 96 | The /sys/class/ccg_usb/ccgX/f_rndis subdirectory |
| 97 | corresponds to the gadget's RNDIS driver. |
| 98 | |
| 99 | What: /sys/class/ccg_usb/ccgX/f_rndis/manufacturer |
| 100 | Date: May 2012 |
| 101 | KernelVersion: 3.4 |
| 102 | Contact: linux-usb@vger.kernel.org |
| 103 | Description: |
| 104 | RNDIS Ethernet port manufacturer string. |
| 105 | |
| 106 | What: /sys/class/ccg_usb/ccgX/f_rndis/wceis |
| 107 | Date: May 2012 |
| 108 | KernelVersion: 3.4 |
| 109 | Contact: linux-usb@vger.kernel.org |
| 110 | Description: |
| 111 | RNDIS Ethernet port wireless flag. |
| 112 | |
| 113 | What: /sys/class/ccg_usb/ccgX/f_rndis/ethaddr |
| 114 | Date: May 2012 |
| 115 | KernelVersion: 3.4 |
| 116 | Contact: linux-usb@vger.kernel.org |
| 117 | Description: |
| 118 | RNDIS Ethernet port Ethernet address. |
| 119 | |
| 120 | What: /sys/class/ccg_usb/ccgX/f_rndis/vendorID |
| 121 | Date: May 2012 |
| 122 | KernelVersion: 3.4 |
| 123 | Contact: linux-usb@vger.kernel.org |
| 124 | Description: |
| 125 | RNDIS Ethernet port vendor ID. |
| 126 | |
| 127 | What: /sys/class/ccg_usb/ccgX/f_mass_storage |
| 128 | Date: May 2012 |
| 129 | KernelVersion: 3.4 |
| 130 | Contact: linux-usb@vger.kernel.org |
| 131 | Description: |
| 132 | The /sys/class/ccg_usb/ccgX/f_mass_storage subdirectory |
| 133 | corresponds to the gadget's USB mass storage driver. |
| 134 | |
| 135 | What: /sys/class/ccg_usb/ccgX/f_mass_storage/lun |
| 136 | Date: May 2012 |
| 137 | KernelVersion: 3.4 |
| 138 | Contact: linux-usb@vger.kernel.org |
| 139 | Description: |
| 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. |
| 143 | |
| 144 | What: /sys/class/ccg_usb/ccgX/f_mass_storage/lun |
| 145 | Date: May 2012 |
| 146 | KernelVersion: 3.4 |
| 147 | Contact: linux-usb@vger.kernel.org |
| 148 | Description: |
| 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. |
| 152 | |
| 153 | What: /sys/class/ccg_usb/ccgX/f_mass_storage/lun/file |
| 154 | Date: May 2012 |
| 155 | KernelVersion: 3.4 |
| 156 | Contact: linux-usb@vger.kernel.org |
| 157 | Description: |
| 158 | Gadget's USB mass storage underlying file. |