diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_fb_gv100.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_fb_gv100.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_fb_gv100.h index 66727b94..ac248b57 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_fb_gv100.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_fb_gv100.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -244,6 +244,26 @@ static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_power_f(void) | |||
244 | { | 244 | { |
245 | return 0x3000000U; | 245 | return 0x3000000U; |
246 | } | 246 | } |
247 | static inline u32 fb_hsmmu_pri_mmu_debug_ctrl_r(void) | ||
248 | { | ||
249 | return 0x001facc4U; | ||
250 | } | ||
251 | static inline u32 fb_hsmmu_pri_mmu_debug_ctrl_debug_v(u32 r) | ||
252 | { | ||
253 | return (r >> 16U) & 0x1U; | ||
254 | } | ||
255 | static inline u32 fb_hsmmu_pri_mmu_debug_ctrl_debug_m(void) | ||
256 | { | ||
257 | return 0x1U << 16U; | ||
258 | } | ||
259 | static inline u32 fb_hsmmu_pri_mmu_debug_ctrl_debug_enabled_f(void) | ||
260 | { | ||
261 | return 0x10000U; | ||
262 | } | ||
263 | static inline u32 fb_hsmmu_pri_mmu_debug_ctrl_debug_disabled_f(void) | ||
264 | { | ||
265 | return 0x0U; | ||
266 | } | ||
247 | static inline u32 fb_hshub_num_active_ltcs_r(void) | 267 | static inline u32 fb_hshub_num_active_ltcs_r(void) |
248 | { | 268 | { |
249 | return 0x001fbc20U; | 269 | return 0x001fbc20U; |
@@ -676,10 +696,18 @@ static inline u32 fb_mmu_debug_ctrl_debug_enabled_v(void) | |||
676 | { | 696 | { |
677 | return 0x00000001U; | 697 | return 0x00000001U; |
678 | } | 698 | } |
699 | static inline u32 fb_mmu_debug_ctrl_debug_enabled_f(void) | ||
700 | { | ||
701 | return 0x10000U; | ||
702 | } | ||
679 | static inline u32 fb_mmu_debug_ctrl_debug_disabled_v(void) | 703 | static inline u32 fb_mmu_debug_ctrl_debug_disabled_v(void) |
680 | { | 704 | { |
681 | return 0x00000000U; | 705 | return 0x00000000U; |
682 | } | 706 | } |
707 | static inline u32 fb_mmu_debug_ctrl_debug_disabled_f(void) | ||
708 | { | ||
709 | return 0x0U; | ||
710 | } | ||
683 | static inline u32 fb_niso_cfg1_r(void) | 711 | static inline u32 fb_niso_cfg1_r(void) |
684 | { | 712 | { |
685 | return 0x00100c14U; | 713 | return 0x00100c14U; |