configfs-usb-gadget 4.3 KB

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