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