5 * @file energy/energy.h
6 * @author Vyacheslav Cherkashin <v.cherkashin@samsung.com>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 * Copyright (C) Samsung Electronics, 2013
26 * @section DESCRIPTION
31 #include <linux/types.h>
34 /** Description of parameters */
35 enum parameter_energy {
36 PE_TIME_IDLE, /**< IDLE working time */
37 PE_TIME_SYSTEM, /**< system working time */
38 PE_TIME_APPS, /**< apps working time */
39 PE_READ_SYSTEM, /**< number of bytes are read by system */
40 PE_WRITE_SYSTEM, /**< number of bytes are write by system */
41 PE_READ_APPS, /**< number of bytes are read by apps */
42 PE_WRITE_APPS, /**< number of bytes are write by apps */
43 PE_WF_RECV_SYSTEM, /**< number of bytes are receive by system through wifi */
44 PE_WF_SEND_SYSTEM, /**< number of bytes are send by system through wifi */
45 PE_WF_RECV_APPS, /**< number of bytes are receive by apps through wifi */
46 PE_WF_SEND_APPS, /**< number of bytes are send by apps through wifi */
50 int energy_once(void);
51 int energy_init(void);
52 void energy_uninit(void);
55 int unset_energy(void);
57 int get_parameter_energy(enum parameter_energy pe, void *buf, size_t sz);
59 #endif /* _ENERGY_H */