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