1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
/*
* device-node
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __DEVMAN_PLUGIN_INTF_H__
#define __DEVMAN_PLUGIN_INTF_H__
enum {
PATH_CP = 0,
PATH_AP,
};
enum {
BATTERY_UNKNOWN = 0,
BATTERY_GOOD,
BATTERY_OVERHEAT,
BATTERY_DEAD,
BATTERY_OVERVOLTAGE,
BATTERY_UNSPECIFIED,
BATTERY_COLD,
BATTERY_HEALTH_MAX,
};
enum {
POWER_STATE_SUSPEND = 0,
POWER_STATE_PRE_SUSPEND,
POWER_STATE_POST_RESUME,
};
typedef struct {
int (*OEM_sys_get_display_count) (int *value);
int (*OEM_sys_get_backlight_min_brightness) (int index, int *value);
int (*OEM_sys_get_backlight_max_brightness) (int index, int *value);
int (*OEM_sys_get_backlight_brightness) (int index, int *value, int power_saving);
int (*OEM_sys_set_backlight_brightness) (int index, int value, int power_saving);
int (*OEM_sys_set_backlight_dimming) (int index, int value);
int (*OEM_sys_get_backlight_acl_control) (int index, int *value);
int (*OEM_sys_set_backlight_acl_control) (int index, int value);
int (*OEM_sys_get_lcd_power) (int index, int *value);
int (*OEM_sys_set_lcd_power) (int index, int value);
int (*OEM_sys_get_image_enhance_mode) (int *value);
int (*OEM_sys_set_image_enhance_mode) (int value);
int (*OEM_sys_get_image_enhance_scenario) (int *value);
int (*OEM_sys_set_image_enhance_scenario) (int value);
int (*OEM_sys_get_image_enhance_tone) (int *value);
int (*OEM_sys_set_image_enhance_tone) (int value);
int (*OEM_sys_get_image_enhance_outdoor) (int *value);
int (*OEM_sys_set_image_enhance_outdoor) (int value);
int (*OEM_sys_get_image_enhance_tune) (int *value);
int (*OEM_sys_set_image_enhance_tune) (int value);
int (*OEM_sys_image_enhance_info) (int *value);
int (*OEM_sys_set_display_frame_rate) (int value);
int (*OEM_sys_get_uart_path) (int *value);
int (*OEM_sys_set_uart_path) (int value);
int (*OEM_sys_get_usb_path) (int *value);
int (*OEM_sys_set_usb_path) (int value);
int (*OEM_sys_get_battery_capacity) (int *value);
int (*OEM_sys_get_battery_capacity_raw) (int *value);
int (*OEM_sys_get_battery_charge_full) (int *value);
int (*OEM_sys_get_battery_charge_now) (int *value);
int (*OEM_sys_get_battery_present) (int *value);
int (*OEM_sys_get_battery_health) (int *value);
int (*OEM_sys_get_battery_polling_required) (int *value);
int (*OEM_sys_get_battery_support_insuspend_charging) (int *value);
int (*OEM_sys_get_jack_charger_online) (int *value);
int (*OEM_sys_get_jack_earjack_online) (int *value);
int (*OEM_sys_get_jack_earkey_online) (int *value);
int (*OEM_sys_get_jack_hdmi_online) (int *value);
int (*OEM_sys_get_jack_usb_online) (int *value);
int (*OEM_sys_get_jack_cradle_online) (int *value);
int (*OEM_sys_get_jack_tvout_online) (int *value);
int (*OEM_sys_get_jack_keyboard_online) (int *value);
int (*OEM_sys_get_leds_torch_max_brightness) (int *value);
int (*OEM_sys_get_leds_torch_brightness) (int *value);
int (*OEM_sys_set_leds_torch_brightness) (int value);
/* TODO: Change args type */
int (*OEM_sys_set_power_state) (int value);
/* TODO: Should determine enum values of wakeup_count nodes */
int (*OEM_sys_get_power_wakeup_count) (int *value);
int (*OEM_sys_set_power_wakeup_count) (int value);
int (*OEM_sys_get_backlight_brightness_by_lux) (int lux, int *value);
int (*OEM_sys_get_whitemagic_mode) (int index, int *value);
int (*OEM_sys_set_whitemagic_mode) (int index, int value);
int (*OEM_sys_get_hdmi_support) (int *value);
int (*OEM_sys_set_irled_control) (char *value);
int (*OEM_sys_get_hardkey_backlight) (int *value);
int (*OEM_sys_set_hardkey_backlight) (int value);
} OEM_sys_devman_plugin_interface;
const OEM_sys_devman_plugin_interface *OEM_sys_get_devman_plugin_interface();
#endif /* __DEVMAN_PLUGIN_INTF_H__ */
|