diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-11-10 14:38:41 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-16 17:45:50 -0500 |
commit | 4387f75f67c5dd502f71b5a0c3421c050954f5b4 (patch) | |
tree | fe28f36e014c5d5f84d16a70d3be5b2fd59b0e63 /drivers/gpu/nvgpu/gk20a/regops_gk20a.c | |
parent | 463c6f4c74e6deaffbfb6cfc535c521ce4302297 (diff) |
gpu: nvgpu: Change reg_op_is_* into normal funcs
reg_op_is_* static inline force a dependency to UAPI in
regops_gk20a.h. Change the implementation to be functions
in .c file.
JIRA NVGPU-388
Change-Id: If5cae1ad011a26ee5ff23e1e39aac3d88fd5bb98
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1598979
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/regops_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/regops_gk20a.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c index e7aeaa54..f0cf5205 100644 --- a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c | |||
@@ -734,3 +734,19 @@ bool is_bar0_global_offset_whitelisted_gk20a(struct gk20a *g, u32 offset) | |||
734 | regop_bsearch_range_cmp); | 734 | regop_bsearch_range_cmp); |
735 | return valid; | 735 | return valid; |
736 | } | 736 | } |
737 | |||
738 | bool reg_op_is_gr_ctx(u8 type) | ||
739 | { | ||
740 | return type == REGOP(TYPE_GR_CTX) || | ||
741 | type == REGOP(TYPE_GR_CTX_TPC) || | ||
742 | type == REGOP(TYPE_GR_CTX_SM) || | ||
743 | type == REGOP(TYPE_GR_CTX_CROP) || | ||
744 | type == REGOP(TYPE_GR_CTX_ZROP) || | ||
745 | type == REGOP(TYPE_GR_CTX_QUAD); | ||
746 | } | ||
747 | |||
748 | bool reg_op_is_read(u8 op) | ||
749 | { | ||
750 | return op == REGOP(READ_32) || | ||
751 | op == REGOP(READ_64); | ||
752 | } | ||