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