summaryrefslogtreecommitdiff
path: root/original-kernel-headers/linux/msm-core-interface.h
blob: 6c0dae46ab572278f9a7acf8c10141e79dcb56a7 (plain)
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
#ifndef __MSM_CORE_LIB_H__
#define __MSM_CORE_LIB_H__

#include <linux/ioctl.h>

#define TEMP_DATA_POINTS 13
#define MAX_NUM_FREQ 200

enum msm_core_ioctl_params {
	MSM_CORE_LEAKAGE,
	MSM_CORE_VOLTAGE,
};

#define MSM_CORE_MAGIC 0x9D

struct sched_params {
	uint32_t cpumask;
	uint32_t cluster;
	uint32_t power[TEMP_DATA_POINTS][MAX_NUM_FREQ];
	uint32_t voltage[MAX_NUM_FREQ];
	uint32_t freq[MAX_NUM_FREQ];
};


#define EA_LEAKAGE _IOWR(MSM_CORE_MAGIC, MSM_CORE_LEAKAGE,\
						struct sched_params)
#define EA_VOLT _IOWR(MSM_CORE_MAGIC, MSM_CORE_VOLTAGE,\
						struct sched_params)
#endif