Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _LINUX_ANDROID_POWER_H
     20 #define _LINUX_ANDROID_POWER_H
     21 #include <linux/list.h>
     22 typedef struct
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 {
     25  struct list_head link;
     26  int lock_count;
     27  int flags;
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29  const char *name;
     30  int expires;
     31 } android_suspend_lock_t;
     32 #define ANDROID_SUSPEND_LOCK_FLAG_COUNTED (1U << 0)
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define ANDROID_SUSPEND_LOCK_FLAG_USER_READABLE (1U << 1)
     35 #define ANDROID_SUSPEND_LOCK_FLAG_USER_SET (1U << 2)
     36 #define ANDROID_SUSPEND_LOCK_FLAG_USER_CLEAR (1U << 3)
     37 #define ANDROID_SUSPEND_LOCK_FLAG_USER_INC (1U << 4)
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define ANDROID_SUSPEND_LOCK_FLAG_USER_DEC (1U << 5)
     40 #define ANDROID_SUSPEND_LOCK_FLAG_USER_VISIBLE_MASK (0x1fU << 1)
     41 #define ANDROID_SUSPEND_LOCK_AUTO_EXPIRE (1U << 6)
     42 typedef struct android_early_suspend android_early_suspend_t;
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 struct android_early_suspend
     45 {
     46  struct list_head link;
     47  int level;
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49  void (*suspend)(android_early_suspend_t *h);
     50  void (*resume)(android_early_suspend_t *h);
     51 };
     52 typedef enum {
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  ANDROID_CHARGING_STATE_UNKNOWN,
     55  ANDROID_CHARGING_STATE_DISCHARGE,
     56  ANDROID_CHARGING_STATE_MAINTAIN,
     57  ANDROID_CHARGING_STATE_SLOW,
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59  ANDROID_CHARGING_STATE_NORMAL,
     60  ANDROID_CHARGING_STATE_FAST,
     61  ANDROID_CHARGING_STATE_OVERHEAT
     62 } android_charging_state_t;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #endif
     65