xref: /linux/include/uapi/linux/usb/charger.h (revision 8dd06ef34b6e2f41b29fbf5fc1663780f2524285)
144dd8a98SBaolin Wang /*
244dd8a98SBaolin Wang  * This file defines the USB charger type and state that are needed for
344dd8a98SBaolin Wang  * USB device APIs.
444dd8a98SBaolin Wang  */
544dd8a98SBaolin Wang 
644dd8a98SBaolin Wang #ifndef _UAPI__LINUX_USB_CHARGER_H
744dd8a98SBaolin Wang #define _UAPI__LINUX_USB_CHARGER_H
844dd8a98SBaolin Wang 
944dd8a98SBaolin Wang /*
1044dd8a98SBaolin Wang  * USB charger type:
1144dd8a98SBaolin Wang  * SDP (Standard Downstream Port)
1244dd8a98SBaolin Wang  * DCP (Dedicated Charging Port)
1344dd8a98SBaolin Wang  * CDP (Charging Downstream Port)
1444dd8a98SBaolin Wang  * ACA (Accessory Charger Adapters)
1544dd8a98SBaolin Wang  */
1644dd8a98SBaolin Wang enum usb_charger_type {
17*ca4b43c1SPeter Chen 	UNKNOWN_TYPE = 0,
18*ca4b43c1SPeter Chen 	SDP_TYPE = 1,
19*ca4b43c1SPeter Chen 	DCP_TYPE = 2,
20*ca4b43c1SPeter Chen 	CDP_TYPE = 3,
21*ca4b43c1SPeter Chen 	ACA_TYPE = 4,
2244dd8a98SBaolin Wang };
2344dd8a98SBaolin Wang 
2444dd8a98SBaolin Wang /* USB charger state */
2544dd8a98SBaolin Wang enum usb_charger_state {
26*ca4b43c1SPeter Chen 	USB_CHARGER_DEFAULT = 0,
27*ca4b43c1SPeter Chen 	USB_CHARGER_PRESENT = 1,
28*ca4b43c1SPeter Chen 	USB_CHARGER_ABSENT = 2,
2944dd8a98SBaolin Wang };
3044dd8a98SBaolin Wang 
3144dd8a98SBaolin Wang #endif /* _UAPI__LINUX_USB_CHARGER_H */
32