summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h b/drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h
index ef81ce9d..65ffebb0 100644
--- a/drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h
@@ -158,4 +158,44 @@ 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_engine_type_v(void)
162{
163 return 0x00000002;
164}
165static inline u32 top_device_info_entry_data_v(void)
166{
167 return 0x00000001;
168}
169static inline u32 top_device_info_data_type_v(u32 r)
170{
171 return (r >> 30) & 0x1;
172}
173static inline u32 top_device_info_data_type_enum2_v(void)
174{
175 return 0x00000000;
176}
177static inline u32 top_device_info_data_inst_id_v(u32 r)
178{
179 return (r >> 26) & 0xf;
180}
181static inline u32 top_device_info_data_pri_base_v(u32 r)
182{
183 return (r >> 12) & 0xfff;
184}
185static inline u32 top_device_info_data_pri_base_align_v(void)
186{
187 return 0x0000000c;
188}
189static inline u32 top_device_info_data_fault_id_enum_v(u32 r)
190{
191 return (r >> 3) & 0x1f;
192}
193static inline u32 top_device_info_data_fault_id_v(u32 r)
194{
195 return (r >> 2) & 0x1;
196}
197static inline u32 top_device_info_data_fault_id_valid_v(void)
198{
199 return 0x00000001;
200}
161#endif 201#endif