summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/hw_top_gp10b.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_top_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/hw_top_gp10b.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_top_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_top_gp10b.h
index 5376717f..c6645ca0 100644
--- a/drivers/gpu/nvgpu/gp10b/hw_top_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/hw_top_gp10b.h
@@ -186,4 +186,40 @@ static inline u32 top_device_info_entry_engine_type_v(void)
186{ 186{
187 return 0x00000002; 187 return 0x00000002;
188} 188}
189static inline u32 top_device_info_entry_data_v(void)
190{
191 return 0x00000001;
192}
193static inline u32 top_device_info_data_type_v(u32 r)
194{
195 return (r >> 30) & 0x1;
196}
197static inline u32 top_device_info_data_type_enum2_v(void)
198{
199 return 0x00000000;
200}
201static inline u32 top_device_info_data_inst_id_v(u32 r)
202{
203 return (r >> 26) & 0xf;
204}
205static inline u32 top_device_info_data_pri_base_v(u32 r)
206{
207 return (r >> 12) & 0xfff;
208}
209static inline u32 top_device_info_data_pri_base_align_v(void)
210{
211 return 0x0000000c;
212}
213static inline u32 top_device_info_data_fault_id_enum_v(u32 r)
214{
215 return (r >> 3) & 0x1f;
216}
217static inline u32 top_device_info_data_fault_id_v(u32 r)
218{
219 return (r >> 2) & 0x1;
220}
221static inline u32 top_device_info_data_fault_id_valid_v(void)
222{
223 return 0x00000001;
224}
189#endif 225#endif