summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/hw_top_gp106.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hw_top_gp106.h')
-rw-r--r--drivers/gpu/nvgpu/gp106/hw_top_gp106.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hw_top_gp106.h b/drivers/gpu/nvgpu/gp106/hw_top_gp106.h
index ed8e0888..bef6b804 100644
--- a/drivers/gpu/nvgpu/gp106/hw_top_gp106.h
+++ b/drivers/gpu/nvgpu/gp106/hw_top_gp106.h
@@ -158,6 +158,42 @@ static inline u32 top_device_info_entry_enum_v(void)
158{ 158{
159 return 0x00000002; 159 return 0x00000002;
160} 160}
161static inline u32 top_device_info_entry_data_v(void)
162{
163 return 0x00000001;
164}
165static inline u32 top_device_info_data_type_v(u32 r)
166{
167 return (r >> 30) & 0x1;
168}
169static inline u32 top_device_info_data_type_enum2_v(void)
170{
171 return 0x00000000;
172}
173static inline u32 top_device_info_data_inst_id_v(u32 r)
174{
175 return (r >> 26) & 0xf;
176}
177static inline u32 top_device_info_data_pri_base_v(u32 r)
178{
179 return (r >> 12) & 0xfff;
180}
181static inline u32 top_device_info_data_pri_base_align_v(void)
182{
183 return 0x0000000c;
184}
185static inline u32 top_device_info_data_fault_id_enum_v(u32 r)
186{
187 return (r >> 3) & 0x1f;
188}
189static inline u32 top_device_info_data_fault_id_v(u32 r)
190{
191 return (r >> 2) & 0x1;
192}
193static inline u32 top_device_info_data_fault_id_valid_v(void)
194{
195 return 0x00000001;
196}
161static inline u32 top_scratch1_r(void) 197static inline u32 top_scratch1_r(void)
162{ 198{
163 return 0x0002240c; 199 return 0x0002240c;