ehset_compliance.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Introduction
  2. ============
  3. A USB high speed host must pass electrical compliance tests defined
  4. by the USB-IF. These compliance tests require the host controller to
  5. support various test modes defined by the USB 2.0 specification.
  6. USB-IF defines a standard method to initiate the test modes on an
  7. embedded host controller by using a test fixture. During enumeration
  8. by the USB host, this test fixture provides a Vendor-Id/Product-Id
  9. (or VID/PID) pair which is used by the host to initiate a particular
  10. test mode as each VID/PID pair corresponds to a unique test mode.
  11. Hardware description
  12. ====================
  13. The driver doesn't require any new hardware and is like any other
  14. USB host class driver. It gets notified when a Test Fixture device is
  15. connected to the host.
  16. The test modes that can be initiated are specific to the high speed
  17. hosts controllers only.
  18. Software description
  19. ====================
  20. This EHSET (or Embedded High Speed Electrical Test) driver registers
  21. itself with USB core as the preferred driver for the Test Fixture
  22. device. During registration it provides the list of the various
  23. VID/PID pairs which the Test Fixture may present during enumeration.
  24. The VID is always 0x1A0A, and the PIDs presented by the Test Fixture
  25. correspond to the following test modes:
  26. __________________________________________________
  27. PID Test Mode
  28. --------------------------------------------------
  29. 0x0101 TEST_SE0_NAK
  30. 0x0102 TEST_J
  31. 0x0103 TEST_K
  32. 0x0104 TEST_PACKET
  33. 0x0106 HS_HOST_PORT_SUSPEND_RESUME
  34. 0x0107 SINGLE_STEP_GET_DEV_DESC
  35. 0x0108 SINGLE_STEP_SET_FEATURE
  36. --------------------------------------------------
  37. The control flow is as follows:
  38. 1. USB core notifies the ehset driver when a device (Test Fixture) is
  39. attached to the host having the VID/PID pair as one of the specified
  40. above.
  41. 2. EHSET driver checks the PID which the Test Fixture presented during
  42. enumeration and then initiates the corresponding test mode.
  43. Dependencies
  44. ============
  45. The driver depends on the USB EHCI Host support.
  46. Other
  47. =====
  48. The driver's code shall be added as a new file in the
  49. /kernel/drivers/usb/misc directory.
  50. Embedded High-speed Electrical Test Procedure document is available
  51. at:
  52. http://www.usb.org/developers/onthego/EHSET_v1.01.pdf