xref: /kernel/linux/linux-5.10/include/uapi/linux/usb/charger.h (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/include/uapi/linux/usb/
18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * This file defines the USB charger type and state that are needed for
38c2ecf20Sopenharmony_ci * USB device APIs.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _UAPI__LINUX_USB_CHARGER_H
78c2ecf20Sopenharmony_ci#define _UAPI__LINUX_USB_CHARGER_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci/*
108c2ecf20Sopenharmony_ci * USB charger type:
118c2ecf20Sopenharmony_ci * SDP (Standard Downstream Port)
128c2ecf20Sopenharmony_ci * DCP (Dedicated Charging Port)
138c2ecf20Sopenharmony_ci * CDP (Charging Downstream Port)
148c2ecf20Sopenharmony_ci * ACA (Accessory Charger Adapters)
158c2ecf20Sopenharmony_ci */
168c2ecf20Sopenharmony_cienum usb_charger_type {
178c2ecf20Sopenharmony_ci	UNKNOWN_TYPE = 0,
188c2ecf20Sopenharmony_ci	SDP_TYPE = 1,
198c2ecf20Sopenharmony_ci	DCP_TYPE = 2,
208c2ecf20Sopenharmony_ci	CDP_TYPE = 3,
218c2ecf20Sopenharmony_ci	ACA_TYPE = 4,
228c2ecf20Sopenharmony_ci};
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci/* USB charger state */
258c2ecf20Sopenharmony_cienum usb_charger_state {
268c2ecf20Sopenharmony_ci	USB_CHARGER_DEFAULT = 0,
278c2ecf20Sopenharmony_ci	USB_CHARGER_PRESENT = 1,
288c2ecf20Sopenharmony_ci	USB_CHARGER_ABSENT = 2,
298c2ecf20Sopenharmony_ci};
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#endif /* _UAPI__LINUX_USB_CHARGER_H */
32

Indexes created Thu Nov 07 10:32:03 CST 2024