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