/*
* This file defines the USB charger type and state that are needed for
* USB device APIs.
*/
#ifndef __LINUX_USB_CHARGER_H
#define __LINUX_USB_CHARGER_H
/*
* USB charger type:
* SDP (Standard Downstream Port)
* DCP (Dedicated Charging Port)
* CDP (Charging Downstream Port)
* ACA (Accessory Charger Adapters)
*/
enum usb_charger_type {
UNKNOWN_TYPE = 0,
SDP_TYPE = 1,
DCP_TYPE = 2,
CDP_TYPE = 3,
ACA_TYPE = 4,
};
/* USB charger state */
enum usb_charger_state {
USB_CHARGER_DEFAULT = 0,
USB_CHARGER_PRESENT = 1,
USB_CHARGER_ABSENT = 2,
};
#endif /* __LINUX_USB_CHARGER_H */
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| audio.h | File | 19.03 KB | 0644 |
|
| cdc-wdm.h | File | 739 B | 0644 |
|
| cdc.h | File | 13.16 KB | 0644 |
|
| ch11.h | File | 8.93 KB | 0644 |
|
| ch9.h | File | 38.6 KB | 0644 |
|
| charger.h | File | 598 B | 0644 |
|
| functionfs.h | File | 10.13 KB | 0644 |
|
| g_printer.h | File | 1.35 KB | 0644 |
|
| g_uvc.h | File | 1.05 KB | 0644 |
|
| gadgetfs.h | File | 2.75 KB | 0644 |
|
| midi.h | File | 3.35 KB | 0644 |
|
| tmc.h | File | 4.74 KB | 0644 |
|
| video.h | File | 16.89 KB | 0644 |
|