mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the therm sub-module of the gpu_ops struct. Perform HAL function assignments in hal_gxxxx.c through the population of a chip-specific copy of gpu_ops. Jira NVGPU-74 Change-Id: Ic9d03304d3dcde0365cbf22af2dbe1e7eb0e04bb Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1527422 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
30 lines
1007 B
C
30 lines
1007 B
C
/*
|
|
* general thermal control structures & definitions
|
|
*
|
|
* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
|
|
#ifndef NVGPU_THERM_GP106_H
|
|
#define NVGPU_THERM_GP106_H
|
|
|
|
struct gk20a;
|
|
|
|
void gp106_get_internal_sensor_limits(s32 *max_24_8, s32 *min_24_8);
|
|
int gp106_get_internal_sensor_curr_temp(struct gk20a *g, u32 *temp_f24_8);
|
|
#ifdef CONFIG_DEBUG_FS
|
|
void gp106_therm_debugfs_init(struct gk20a *g);
|
|
#endif
|
|
int gp106_elcg_init_idle_filters(struct gk20a *g);
|
|
u32 gp106_configure_therm_alert(struct gk20a *g, s32 curr_warn_temp);
|
|
|
|
#endif
|