2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.org/license
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.
19 * @file pm_llinterface.h
20 * @author Suchang Woo (suchang.woo@samsung.com)
22 * @brief Power manager low-level interface module header
24 #ifndef __PM_LLINTERFACE_H__
25 #define __PM_LLINTERFACE_H__
27 #define FLAG_X_DPMS 0x2
29 #define DEFAULT_DISPLAY 0
32 * Event type enumeration
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 */
41 extern int init_sysfs(unsigned int);
42 extern int exit_sysfs(void);
44 extern int system_suspend(void);
46 extern int backlight_on(void);
47 extern int backlight_off(void);
49 extern int backlight_dim(void);
50 extern int backlight_restore(void);
52 extern int set_default_brt(int level);
54 extern int check_wakeup_src(void);