diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h | 40 |
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 | } |
161 | static inline u32 top_device_info_entry_engine_type_v(void) | ||
162 | { | ||
163 | return 0x00000002; | ||
164 | } | ||
165 | static inline u32 top_device_info_entry_data_v(void) | ||
166 | { | ||
167 | return 0x00000001; | ||
168 | } | ||
169 | static inline u32 top_device_info_data_type_v(u32 r) | ||
170 | { | ||
171 | return (r >> 30) & 0x1; | ||
172 | } | ||
173 | static inline u32 top_device_info_data_type_enum2_v(void) | ||
174 | { | ||
175 | return 0x00000000; | ||
176 | } | ||
177 | static inline u32 top_device_info_data_inst_id_v(u32 r) | ||
178 | { | ||
179 | return (r >> 26) & 0xf; | ||
180 | } | ||
181 | static inline u32 top_device_info_data_pri_base_v(u32 r) | ||
182 | { | ||
183 | return (r >> 12) & 0xfff; | ||
184 | } | ||
185 | static inline u32 top_device_info_data_pri_base_align_v(void) | ||
186 | { | ||
187 | return 0x0000000c; | ||
188 | } | ||
189 | static inline u32 top_device_info_data_fault_id_enum_v(u32 r) | ||
190 | { | ||
191 | return (r >> 3) & 0x1f; | ||
192 | } | ||
193 | static inline u32 top_device_info_data_fault_id_v(u32 r) | ||
194 | { | ||
195 | return (r >> 2) & 0x1; | ||
196 | } | ||
197 | static inline u32 top_device_info_data_fault_id_valid_v(void) | ||
198 | { | ||
199 | return 0x00000001; | ||
200 | } | ||
161 | #endif | 201 | #endif |