^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /config/usb-gadget
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: Jun 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) This group contains sub-groups corresponding to created
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) USB gadgets.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) What: /config/usb-gadget/gadget
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) Date: Jun 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) The attributes of a gadget:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) ================ ============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) UDC bind a gadget to UDC/unbind a gadget;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) write UDC's name found in /sys/class/udc/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) to bind a gadget, empty string "" to unbind.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) max_speed maximum speed the driver supports. Valid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) names are super-speed-plus, super-speed,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) high-speed, full-speed, and low-speed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) bDeviceClass USB device class code
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) bDeviceSubClass USB device subclass code
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) bDeviceProtocol USB device protocol code
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) bMaxPacketSize0 maximum endpoint 0 packet size
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) bcdDevice bcd device release number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) bcdUSB bcd USB specification version number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) idProduct product ID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) idVendor vendor ID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) ================ ============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) What: /config/usb-gadget/gadget/configs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) Date: Jun 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) This group contains a USB gadget's configurations
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) What: /config/usb-gadget/gadget/configs/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) Date: Jun 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) The attributes of a configuration:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) ================ ======================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) bmAttributes configuration characteristics
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) MaxPower maximum power consumption from the bus
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) ================ ======================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) What: /config/usb-gadget/gadget/configs/config/strings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) Date: Jun 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) This group contains subdirectories for language-specific
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) strings for this configuration.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) What: /config/usb-gadget/gadget/configs/config/strings/language
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) Date: Jun 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) The attributes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) ================ =========================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) configuration configuration description
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) ================ =========================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) What: /config/usb-gadget/gadget/functions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) Date: Jun 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) This group contains functions available to this USB gadget.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) Date: May 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) KernelVersion: 3.16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) This group contains "Feature Descriptors" specific for one
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) gadget's USB interface or one interface group described
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) by an IAD.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) The attributes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) ================= =====================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) compatible_id 8-byte string for "Compatible ID"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) sub_compatible_id 8-byte string for "Sub Compatible ID"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) ================= =====================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>/<property>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) Date: May 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) KernelVersion: 3.16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) This group contains "Extended Property Descriptors" specific for one
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) gadget's USB interface or one interface group described
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) by an IAD.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) The attributes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) ===== ===============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) type value 1..7 for interpreting the data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) - 1: unicode string
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) - 2: unicode string with environment variable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) - 3: binary
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) - 4: little-endian 32-bit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) - 5: big-endian 32-bit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) - 6: unicode string with a symbolic link
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) - 7: multiple unicode strings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) data blob of data to be interpreted depending on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) ===== ===============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) What: /config/usb-gadget/gadget/strings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) Date: Jun 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) This group contains subdirectories for language-specific
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) strings for this gadget.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) What: /config/usb-gadget/gadget/strings/language
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) Date: Jun 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) The attributes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) ============ =================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) serialnumber gadget's serial number (string)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) product gadget's product description
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) manufacturer gadget's manufacturer description
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) ============ =================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) What: /config/usb-gadget/gadget/os_desc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) Date: May 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) KernelVersion: 3.16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) This group contains "OS String" extension handling attributes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) ============= ===============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) use flag turning "OS Desctiptors" support on/off
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) b_vendor_code one-byte value used for custom per-device and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) per-interface requests
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) qw_sign an identifier to be reported as "OS String"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) proper
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) ============= ===============================================