diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h index ece7602d..4e7ada14 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h | |||
@@ -234,6 +234,10 @@ static inline u32 gr_status_r(void) | |||
234 | { | 234 | { |
235 | return 0x00400700; | 235 | return 0x00400700; |
236 | } | 236 | } |
237 | static inline u32 gr_status_fe_method_upper_v(u32 r) | ||
238 | { | ||
239 | return (r >> 1) & 0x1; | ||
240 | } | ||
237 | static inline u32 gr_status_fe_method_lower_v(u32 r) | 241 | static inline u32 gr_status_fe_method_lower_v(u32 r) |
238 | { | 242 | { |
239 | return (r >> 2) & 0x1; | 243 | return (r >> 2) & 0x1; |
@@ -242,6 +246,10 @@ static inline u32 gr_status_fe_method_lower_idle_v(void) | |||
242 | { | 246 | { |
243 | return 0x00000000; | 247 | return 0x00000000; |
244 | } | 248 | } |
249 | static inline u32 gr_status_fe_method_fe_gi_v(u32 r) | ||
250 | { | ||
251 | return (r >> 21) & 0x1; | ||
252 | } | ||
245 | static inline u32 gr_status_mask_r(void) | 253 | static inline u32 gr_status_mask_r(void) |
246 | { | 254 | { |
247 | return 0x00400610; | 255 | return 0x00400610; |