drivers: power: report battery voltage in AOSP compatible format
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / kernel / power / tuxonice_storage.h
CommitLineData
6fa3eb70
S
1/*
2 * kernel/power/tuxonice_storage.h
3 *
4 * Copyright (C) 2005-2010 Nigel Cunningham (nigel at tuxonice net)
5 *
6 * This file is released under the GPLv2.
7 */
8
9#ifdef CONFIG_NET
10int toi_prepare_usm(void);
11void toi_cleanup_usm(void);
12
13int toi_activate_storage(int force);
14int toi_deactivate_storage(int force);
15extern int toi_usm_init(void);
16extern void toi_usm_exit(void);
17#else
18static inline int toi_usm_init(void)
19{
20 return 0;
21}
22
23static inline void toi_usm_exit(void)
24{
25}
26
27static inline int toi_activate_storage(int force)
28{
29 return 0;
30}
31
32static inline int toi_deactivate_storage(int force)
33{
34 return 0;
35}
36
37static inline int toi_prepare_usm(void)
38{
39 return 0;
40}
41
42static inline void toi_cleanup_usm(void)
43{
44}
45#endif
46
47enum {
48 USM_MSG_BASE = 0x10,
49
50 /* Kernel -> Userspace */
51 USM_MSG_CONNECT = 0x30,
52 USM_MSG_DISCONNECT = 0x31,
53 USM_MSG_SUCCESS = 0x40,
54 USM_MSG_FAILED = 0x41,
55
56 USM_MSG_MAX,
57};