3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 * @file pm_llinterface.h
21 * @author Suchang Woo (suchang.woo@samsung.com)
23 * @brief Power manager low-level interface module header
25 #ifndef __PM_LLINTERFACE_H__
26 #define __PM_LLINTERFACE_H__
28 #define FLAG_X_DPMS 0x2
30 #define DEFAULT_DISPLAY 0
32 #define PM_MAX_BRIGHTNESS 100
33 #define PM_MIN_BRIGHTNESS 1
35 # define PM_DEFAULT_BRIGHTNESS 100
37 # define PM_DEFAULT_BRIGHTNESS 60
41 * Event type enumeration
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 */
50 extern int init_sysfs(unsigned int);
51 extern int exit_sysfs(void);
53 extern int system_suspend(void);
55 extern int backlight_on(void);
56 extern int backlight_off(void);
58 extern int backlight_dim(void);
59 extern int backlight_restore(void);
61 extern int set_default_brt(int level);
63 extern int check_wakeup_src(void);