blob: 3d13e64e553e4545ab1d4dfdd895bbed45b94e04 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/* drivers/devfreq/exynos7580_ppmu.h
*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* EXYNOS - PPMU control.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __DEVFREQ_EXYNOS_PPMU_H
#define __DEVFREQ_EXYNOS_PPMU_H __FILE__
#include <linux/notifier.h>
#include "exynos_ppmu_fw.h"
enum DEVFREQ_TYPE {
INT,
MIF,
DEVFREQ_TYPE_COUNT,
};
struct devfreq_exynos {
struct list_head node;
struct ppmu_info *ppmu_list;
unsigned int ppmu_count;
unsigned long long val_ccnt;
unsigned long long val_pmcnt;
enum DEVFREQ_TYPE type;
};
struct devfreq_ppmu {
struct ppmu_info *ppmu_list;
unsigned int ppmu_count;
};
int exynos_devfreq_register(struct devfreq_exynos *de);
int exynos_ppmu_register_notifier(enum DEVFREQ_TYPE type, struct notifier_block *nb);
int exynos_ppmu_unregister_notifier(enum DEVFREQ_TYPE type, struct notifier_block *nb);
int exynos_ppmu_is_initialized(void);
#endif /* __DEVFREQ_EXYNOS_PPMU_H */
|