blob: 946dd0b95efec8ec6a465be2e6dba879d5162e8d [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ***
Ben Cheng94a85f62012-03-06 15:45:52 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_ANDROID_POWER_H
20#define _LINUX_ANDROID_POWER_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <linux/list.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022typedef struct
Ben Cheng94a85f62012-03-06 15:45:52 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024{
25 struct list_head link;
26 int lock_count;
27 int flags;
Ben Cheng94a85f62012-03-06 15:45:52 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029 const char *name;
30 int expires;
31} android_suspend_lock_t;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032#define ANDROID_SUSPEND_LOCK_FLAG_COUNTED (1U << 0)
Ben Cheng94a85f62012-03-06 15:45:52 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034#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)
Ben Cheng94a85f62012-03-06 15:45:52 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039#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)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080042typedef struct android_early_suspend android_early_suspend_t;
Ben Cheng94a85f62012-03-06 15:45:52 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044struct android_early_suspend
45{
46 struct list_head link;
47 int level;
Ben Cheng94a85f62012-03-06 15:45:52 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049 void (*suspend)(android_early_suspend_t *h);
50 void (*resume)(android_early_suspend_t *h);
51};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080052typedef enum {
Ben Cheng94a85f62012-03-06 15:45:52 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054 ANDROID_CHARGING_STATE_UNKNOWN,
55 ANDROID_CHARGING_STATE_DISCHARGE,
56 ANDROID_CHARGING_STATE_MAINTAIN,
57 ANDROID_CHARGING_STATE_SLOW,
Ben Cheng94a85f62012-03-06 15:45:52 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059 ANDROID_CHARGING_STATE_NORMAL,
60 ANDROID_CHARGING_STATE_FAST,
61 ANDROID_CHARGING_STATE_OVERHEAT
62} android_charging_state_t;
Ben Cheng94a85f62012-03-06 15:45:52 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064#endif