diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h index b0cf6579..c70f388c 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h | |||
@@ -178,4 +178,36 @@ static inline u32 top_device_info_entry_engine_type_v(void) | |||
178 | { | 178 | { |
179 | return 0x00000003; | 179 | return 0x00000003; |
180 | } | 180 | } |
181 | static inline u32 top_device_info_entry_data_v(void) | ||
182 | { | ||
183 | return 0x00000001; | ||
184 | } | ||
185 | static inline u32 top_device_info_data_type_v(u32 r) | ||
186 | { | ||
187 | return (r >> 30) & 0x1; | ||
188 | } | ||
189 | static inline u32 top_device_info_data_type_enum2_v(void) | ||
190 | { | ||
191 | return 0x00000000; | ||
192 | } | ||
193 | static inline u32 top_device_info_data_pri_base_v(u32 r) | ||
194 | { | ||
195 | return (r >> 12) & 0x7ff; | ||
196 | } | ||
197 | static inline u32 top_device_info_data_pri_base_align_v(void) | ||
198 | { | ||
199 | return 0x0000000c; | ||
200 | } | ||
201 | static inline u32 top_device_info_data_fault_id_enum_v(u32 r) | ||
202 | { | ||
203 | return (r >> 3) & 0x1f; | ||
204 | } | ||
205 | static inline u32 top_device_info_data_fault_id_v(u32 r) | ||
206 | { | ||
207 | return (r >> 2) & 0x1; | ||
208 | } | ||
209 | static inline u32 top_device_info_data_fault_id_valid_v(void) | ||
210 | { | ||
211 | return 0x00000001; | ||
212 | } | ||
181 | #endif | 213 | #endif |