Initial commit
[kernel/linux-3.0.git] / include / linux / partialsuspend_slp.h
1 /* include/linux/partialsuspend_slp.h
2  *
3  * Copyright (C) 2012 SAMSUNG, Inc.
4  *
5  * This software is licensed under the terms of the GNU General Public
6  * License version 2, as published by the Free Software Foundation, and
7  * may be copied, distributed, and modified under those terms.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  */
15
16 #ifndef _LINUX_PARTIALSUSPEND_H
17 #define _LINUX_PARTIALSUSPEND_H
18
19 #include <linux/list.h>
20
21 struct pre_suspend {
22         struct list_head link;
23         int level;
24         void (*suspend)(struct pre_suspend *h);
25         void (*resume)(struct pre_suspend *h);
26 };
27
28 struct suspend_status_struct {
29         char req;
30         char ing;
31         char done;
32 };
33
34 void register_pre_suspend(struct pre_suspend *handler);
35 void unregister_pre_suspend(struct pre_suspend *handler);
36 #endif