tizen 2.3 release
[framework/system/deviced.git] / src / pass / pass-plugin.h
1 /*
2  * deviced
3  *
4  * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the License);
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19
20 #ifndef __PASS_PLUGIN__
21 #define __PASS_PLUGIN__
22
23 #include "pass.h"
24
25 int get_pass_cpu_stats(struct pass_policy *policy);
26
27 int get_pass_table(struct pass_policy *policy, char *pass_conf_path);
28 void put_pass_table(struct pass_policy *policy);
29
30 int get_cpufreq_scaling_max_freq(void);
31 int set_cpufreq_scaling_max_freq(int);
32
33 int get_cpufreq_scaling_min_freq(void);
34 int set_cpufreq_scaling_min_freq(int);
35
36 int get_cpufreq_sampling_rate(void);
37 int set_cpufreq_sampling_rate(int);
38
39 int get_cpufreq_up_threshold(void);
40 int set_cpufreq_up_threshold(int);
41
42 int get_cpu_online(int);
43 int set_cpu_online(int, int);
44
45 int64_t get_time_ms(void);
46
47 #endif /* __PASS_PLUGIN__ */