Merge Tizen 2.0 dev to RSA
[framework/system/power-manager.git] / pm_llinterface.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.tizenopensource.org/license
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15 */
16
17
18 /**
19  * @file        pm_llinterface.h
20  * @author      Suchang Woo (suchang.woo@samsung.com)
21  * @version     0.1
22  * @brief       Power manager low-level interface module header
23  */
24 #ifndef __PM_LLINTERFACE_H__
25 #define __PM_LLINTERFACE_H__
26
27 #define FLAG_X_DPMS             0x2
28
29 #define DEFAULT_DISPLAY 0
30
31 /*
32  * Event type enumeration
33  */
34 enum {
35         EVENT_TIMEOUT = 0,      /*< time out event from timer */
36         EVENT_DEVICE = EVENT_TIMEOUT,   /*< wake up by devices except input devices */
37         EVENT_INPUT,            /*< input event from noti service */
38         EVENT_END,
39 };
40
41 extern int init_sysfs(unsigned int);
42 extern int exit_sysfs(void);
43
44 extern int system_suspend(void);
45
46 extern int backlight_on(void);
47 extern int backlight_off(void);
48
49 extern int backlight_dim(void);
50 extern int backlight_restore(void);
51
52 extern int set_default_brt(int level);
53
54 extern int check_wakeup_src(void);
55
56 #endif