charger.h 613 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * This file defines the USB charger type and state that are needed for
  3. * USB device APIs.
  4. */
  5. #ifndef _UAPI__LINUX_USB_CHARGER_H
  6. #define _UAPI__LINUX_USB_CHARGER_H
  7. /*
  8. * USB charger type:
  9. * SDP (Standard Downstream Port)
  10. * DCP (Dedicated Charging Port)
  11. * CDP (Charging Downstream Port)
  12. * ACA (Accessory Charger Adapters)
  13. */
  14. enum usb_charger_type {
  15. UNKNOWN_TYPE = 0,
  16. SDP_TYPE = 1,
  17. DCP_TYPE = 2,
  18. CDP_TYPE = 3,
  19. ACA_TYPE = 4,
  20. };
  21. /* USB charger state */
  22. enum usb_charger_state {
  23. USB_CHARGER_DEFAULT = 0,
  24. USB_CHARGER_PRESENT = 1,
  25. USB_CHARGER_ABSENT = 2,
  26. };
  27. #endif /* _UAPI__LINUX_USB_CHARGER_H */