rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2018 MediaTek Inc. |
| 3 | * |
| 4 | * This program is free software: you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #ifndef _STAT_H_ |
| 15 | #define _STAT_H_ |
| 16 | |
| 17 | #include <linux/device.h> |
| 18 | |
| 19 | extern struct metdevice met_stat; |
| 20 | |
| 21 | int stat_reg(struct kobject *parent); |
| 22 | void stat_unreg(void); |
| 23 | |
| 24 | void stat_start(void); |
| 25 | void stat_stop(void); |
| 26 | void stat_polling(unsigned long long stamp, int cpu); |
| 27 | |
| 28 | unsigned int get_ctrl_flags(void); |
| 29 | |
| 30 | #endif /* _STAT_H_ */ |