summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/fuse/fuse_gp106.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-08-10 17:09:36 -0400
committerBo Yan <byan@nvidia.com>2018-08-20 14:00:59 -0400
commit227c6f7b7a499dd58e0db6859736cfe586ef0897 (patch)
treed354f8422647021693aefefa5124d865c29ecd32 /drivers/gpu/nvgpu/common/fuse/fuse_gp106.h
parent9e69e0cf978b53706f55ffb873e3966b4bb3a7a8 (diff)
gpu: nvgpu: Move fuse HAL to common
Move implementation of fuse HAL to common/fuse. Also implements new fuse query functions for FBIO, FBP, TPC floorsweeping and security fuses. JIRA NVGPU-957 Change-Id: I55e256a4f1b59d50a721d4942907f70dc57467c4 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1797177
Diffstat (limited to 'drivers/gpu/nvgpu/common/fuse/fuse_gp106.h')
-rw-r--r--drivers/gpu/nvgpu/common/fuse/fuse_gp106.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/fuse/fuse_gp106.h b/drivers/gpu/nvgpu/common/fuse/fuse_gp106.h
new file mode 100644
index 00000000..f014ee8c
--- /dev/null
+++ b/drivers/gpu/nvgpu/common/fuse/fuse_gp106.h
@@ -0,0 +1,39 @@
1/*
2 * GP106 FUSE
3 *
4 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 */
24
25#ifndef _NVGPU_GP106_FUSE
26#define _NVGPU_GP106_FUSE
27
28struct gk20a;
29
30int gp106_fuse_check_priv_security(struct gk20a *g);
31u32 gp106_fuse_read_vin_cal_fuse_rev(struct gk20a *g);
32u32 gp106_fuse_read_vin_cal_slope_intercept_fuse(struct gk20a *g,
33 u32 vin_id, u32 *slope,
34 u32 *intercept);
35u32 gp106_fuse_read_vin_cal_gain_offset_fuse(struct gk20a *g,
36 u32 vin_id, s8 *gain,
37 s8 *offset);
38
39#endif