Commit | Line | Data |
---|---|---|
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 | |
10 | int toi_prepare_usm(void); | |
11 | void toi_cleanup_usm(void); | |
12 | ||
13 | int toi_activate_storage(int force); | |
14 | int toi_deactivate_storage(int force); | |
15 | extern int toi_usm_init(void); | |
16 | extern void toi_usm_exit(void); | |
17 | #else | |
18 | static inline int toi_usm_init(void) | |
19 | { | |
20 | return 0; | |
21 | } | |
22 | ||
23 | static inline void toi_usm_exit(void) | |
24 | { | |
25 | } | |
26 | ||
27 | static inline int toi_activate_storage(int force) | |
28 | { | |
29 | return 0; | |
30 | } | |
31 | ||
32 | static inline int toi_deactivate_storage(int force) | |
33 | { | |
34 | return 0; | |
35 | } | |
36 | ||
37 | static inline int toi_prepare_usm(void) | |
38 | { | |
39 | return 0; | |
40 | } | |
41 | ||
42 | static inline void toi_cleanup_usm(void) | |
43 | { | |
44 | } | |
45 | #endif | |
46 | ||
47 | enum { | |
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 | }; |