configfs-usb-gadget 3.4 KB

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