summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h
index 6968c699..45d3df07 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 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, 5 * under the terms and conditions of the GNU General Public License,
@@ -174,6 +174,26 @@ static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_r(void)
174{ 174{
175 return 0x0017e27c; 175 return 0x0017e27c;
176} 176}
177static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs__v(u32 r)
178{
179 return (r >> 0) & 0x1f;
180}
181static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_nvlink_peer_through_l2_f(u32 v)
182{
183 return (v & 0x1) << 24;
184}
185static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_nvlink_peer_through_l2_v(u32 r)
186{
187 return (r >> 24) & 0x1;
188}
189static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_serialize_f(u32 v)
190{
191 return (v & 0x1) << 25;
192}
193static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_serialize_v(u32 r)
194{
195 return (r >> 25) & 0x1;
196}
177static inline u32 ltc_ltcs_misc_ltc_num_active_ltcs_r(void) 197static inline u32 ltc_ltcs_misc_ltc_num_active_ltcs_r(void)
178{ 198{
179 return 0x0017e000; 199 return 0x0017e000;