diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/t19x_mce.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/linux/t19x_mce.h b/include/linux/t19x_mce.h new file mode 100644 index 000000000..fcd611d94 --- /dev/null +++ b/include/linux/t19x_mce.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 11 | * more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #ifndef _LINUX_TEGRA_MCE_H | ||
| 18 | #define _LINUX_TEGRA_MCE_H | ||
| 19 | |||
| 20 | #define NVG_STAT_MAX_ENTRIES 5 | ||
| 21 | |||
| 22 | int t19x_mce_enter_cstate(u32 state, u32 wake_time); | ||
| 23 | int t19x_mce_update_cstate_info(u32 cluster, u32 ccplex, | ||
| 24 | u32 system, u8 force, u32 wake_mask, bool valid); | ||
| 25 | int t19x_mce_update_crossover_time(u32 type, u32 time); | ||
| 26 | int t19x_mce_read_cstate_stats(u32 state, u32 *stats); | ||
| 27 | int t19x_mce_write_cstate_stats(u32 state, u32 stats); | ||
| 28 | int t19x_mce_is_sc7_allowed(u32 state, u32 wake, u32 *allowed); | ||
| 29 | int t19x_mce_online_core(int cpu); | ||
| 30 | int t19x_mce_cc3_ctrl(u32 freq, u32 volt, u8 enable); | ||
| 31 | int t19x_mce_echo_data(u32 data, int *matched); | ||
| 32 | int t19x_mce_read_versions(u32 *major, u32 *minor); | ||
| 33 | int t19x_mce_enum_features(u64 *features); | ||
| 34 | |||
| 35 | #endif | ||
