• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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,
18 	SDP_TYPE,
19 	DCP_TYPE,
20 	CDP_TYPE,
21 	ACA_TYPE,
22 };
23 
24 /* USB charger state */
25 enum usb_charger_state {
26 	USB_CHARGER_DEFAULT,
27 	USB_CHARGER_PRESENT,
28 	USB_CHARGER_ABSENT,
29 };
30 
31 #endif /* _UAPI__LINUX_USB_CHARGER_H */
32