mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
The following CL contains the following VBIOS thermal table parsing and PMU interface support. 1) Thermal device table 2) Thermal channel table JIRA DNVGPU-130 Change-Id: Ie3abab4bf099a022b1b59db96811c2ed44079519 Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: http://git-master/r/1240630 (cherry picked from commit 814962a4be0a8cd0cddc7bc5211c62308ab1fea2) Reviewed-on: http://git-master/r/1246210 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
43 lines
1.0 KiB
C
43 lines
1.0 KiB
C
/*
|
|
* general thermal device structures & definitions
|
|
*
|
|
* Copyright (c) 2016, 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 _THRMCHANNEL_H_
|
|
#define _THRMCHANNEL_H_
|
|
|
|
#include "boardobj/boardobj.h"
|
|
#include "boardobj/boardobjgrp.h"
|
|
#include "ctrl/ctrltherm.h"
|
|
|
|
struct therm_channel {
|
|
struct boardobj super;
|
|
s16 scaling;
|
|
s16 offset;
|
|
s32 temp_min;
|
|
s32 temp_max;
|
|
};
|
|
|
|
struct therm_channels {
|
|
struct boardobjgrp_e32 super;
|
|
};
|
|
|
|
struct therm_channel_device {
|
|
struct therm_channel super;
|
|
u8 therm_dev_idx;
|
|
u8 therm_dev_prov_idx;
|
|
};
|
|
|
|
u32 therm_channel_sw_setup(struct gk20a *g);
|
|
|
|
#endif
|