[IMPROVE] Driver: implement kernel -> user connect
[kernel/swap-modules.git] / energy / energy.h
1 #ifndef _ENERGY_H
2 #define _ENERGY_H
3
4 /*
5  *  Dynamic Binary Instrumentation Module based on KProbes
6  *  energy/energy.h
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  *
22  * Copyright (C) Samsung Electronics, 2013
23  *
24  * 2013         Vyacheslav Cherkashin <v.cherkashin@samsung.com>
25  *
26  */
27
28
29 #include <linux/types.h>
30
31
32 enum parameter_energy {
33         PE_TIME_IDLE,
34         PE_TIME_SYSTEM,
35         PE_TIME_APPS,
36         PE_READ_SYSTEM,
37         PE_WRITE_SYSTEM,
38         PE_READ_APPS,
39         PE_WRITE_APPS
40 };
41
42
43 int energy_init(void);
44 void energy_uninit(void);
45
46 int set_energy(void);
47 int unset_energy(void);
48
49 u64 get_parameter_energy(enum parameter_energy pe);
50
51 #endif /* _ENERGY_H */