Add default Smack manifest for devman.spec
[platform/core/system/devman.git] / devman_plugin_intf.h
1 /*
2  *  devman
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: DongGi Jang <dg0402.jang@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20 */
21
22
23 #ifndef __DEVMAN_PLUGIN_INTF_H__
24 #define __DEVMAN_PLUGIN_INTF_H__
25
26 enum {
27         STATUS_OFFLINE  = 0,
28         STATUS_ONLINE,
29 };
30
31 enum {
32         STATUS_OFF      = 0,
33         STATUS_ON,
34 };
35
36 enum {
37         PATH_CP         = 0,
38         PATH_AP,
39 };
40
41 enum {
42         BATTERY_NOT_FULLY_CHARGED       = 0,
43         BATTERY_FULLY_CHARGED,
44 };
45
46 enum {
47         BATTERY_UNKNOWN         = 0,
48         BATTERY_GOOD,
49         BATTERY_OVERHEAT,
50         BATTERY_DEAD,
51         BATTERY_OVERVOLTAGE,
52         BATTERY_UNSPECIFIED,
53         BATTERY_COLD,
54         BATTERY_HEALTH_MAX,
55 };
56
57 enum {
58         POWER_STATE_SUSPEND     = 0,
59 };
60
61 typedef struct {
62         int     (*OEM_sys_get_display_count) (int *value);
63
64         int     (*OEM_sys_get_backlight_max_brightness) (int index, int *value);
65         int     (*OEM_sys_get_backlight_brightness) (int index, int *value);
66         int     (*OEM_sys_set_backlight_brightness) (int index, int value);
67
68         int     (*OEM_sys_get_backlight_acl_control) (int index, int *value);
69         int     (*OEM_sys_set_backlight_acl_control) (int index, int value);
70
71         int     (*OEM_sys_get_lcd_power) (int index, int *value);
72         int     (*OEM_sys_set_lcd_power) (int index, int value);
73
74         int     (*OEM_sys_get_image_enhance_mode) (int *value);
75         int     (*OEM_sys_set_image_enhance_mode) (int value);
76         int     (*OEM_sys_get_image_enhance_scenario) (int *value);
77         int     (*OEM_sys_set_image_enhance_scenario) (int value);
78         int     (*OEM_sys_get_image_enhance_tone) (int *value);
79         int     (*OEM_sys_set_image_enhance_tone) (int value);
80         int     (*OEM_sys_get_image_enhance_outdoor) (int *value);
81         int     (*OEM_sys_set_image_enhance_outdoor) (int value);
82
83         int     (*OEM_sys_get_image_enhance_tune) (int *value);
84         int     (*OEM_sys_set_image_enhance_tune) (int value);
85
86         int     (*OEM_sys_get_uart_path) (int *value);
87         int     (*OEM_sys_set_uart_path) (int value);
88
89         int     (*OEM_sys_get_usb_path) (int *value);
90         int     (*OEM_sys_set_usb_path) (int value);
91
92         int     (*OEM_sys_get_haptic_vibetones_level_max) (int *value);
93         int     (*OEM_sys_get_haptic_vibetones_level) (int *value);
94         int     (*OEM_sys_set_haptic_vibetones_level) (int value);
95         int     (*OEM_sys_set_haptic_vibetones_enable) (int value);
96         int     (*OEM_sys_set_haptic_vibetones_oneshot) (int value);
97
98         int     (*OEM_sys_get_battery_capacity) (int *value);
99         int     (*OEM_sys_get_battery_charge_full) (int *value);
100         int     (*OEM_sys_get_battery_charge_now) (int *value);
101         int     (*OEM_sys_get_battery_present) (int *value);
102         int     (*OEM_sys_get_battery_health) (int *value);
103
104         int     (*OEM_sys_get_jack_charger_online) (int *value);
105         int     (*OEM_sys_get_jack_earjack_online) (int *value);
106         int     (*OEM_sys_get_jack_earkey_online) (int *value);
107         int     (*OEM_sys_get_jack_hdmi_online) (int *value);
108         int     (*OEM_sys_get_jack_usb_online) (int *value);
109         int     (*OEM_sys_get_jack_cradle_online) (int *value);
110         int     (*OEM_sys_get_jack_tvout_online) (int *value);
111         int     (*OEM_sys_get_jack_keyboard_online) (int *value);
112
113         int     (*OEM_sys_get_leds_torch_max_brightness) (int *value);
114         int     (*OEM_sys_get_leds_torch_brightness) (int *value);
115         int     (*OEM_sys_set_leds_torch_brightness) (int value);
116
117         /* TODO: Change args type */
118         int     (*OEM_sys_set_power_state) (int value);
119
120         /* TODO: Should determine enum values of wakeup_count nodes */
121         int     (*OEM_sys_get_power_wakeup_count) (int *value);
122         int     (*OEM_sys_set_power_wakeup_count) (int value);
123
124         int     (*OEM_sys_get_memnotify_node) (char *node);
125         int     (*OEM_sys_get_memnotify_victim_task) (int *value);
126         int     (*OEM_sys_set_memnotify_threshold_lv1) (int value);
127         int     (*OEM_sys_set_memnotify_threshold_lv2) (int value);
128
129         int     (*OEM_sys_get_process_monitor_node) (char *node);
130         int     (*OEM_sys_set_process_monitor_mp_pnp) (int value);
131         int     (*OEM_sys_set_process_monitor_mp_vip) (int value);
132
133         int     (*OEM_sys_get_cpufreq_cpuinfo_max_freq) (int *value);
134         int     (*OEM_sys_get_cpufreq_cpuinfo_min_freq) (int *value);
135         int     (*OEM_sys_get_cpufreq_scaling_max_freq) (int *value);
136         int     (*OEM_sys_set_cpufreq_scaling_max_freq) (int value);
137         int     (*OEM_sys_get_cpufreq_scaling_min_freq) (int *value);
138         int     (*OEM_sys_set_cpufreq_scaling_min_freq) (int value);
139 } OEM_sys_devman_plugin_interface;
140
141 const OEM_sys_devman_plugin_interface *OEM_sys_get_devman_plugin_interface();
142
143 #endif  /* __DEVMAN_PLUGIN_INTF_H__ */