mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
nvgpu: gm20b: MISRA Rule 21.2 header gurad fixes
MISRA rule 21.2 doesn't allow the use of macro names which start with an underscore. These leading underscores are to be removed from the macro names. This patch will fix such violations caused by include guards by renaming them to follow the convention, 'NVGPU_PARENT-DIR_HEADER_H' JIRA NVGPU-1028 Change-Id: Ic60b2de8bb705f189134483fff1e2dff8ea96a12 Signed-off-by: smadhavan <smadhavan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1808186 GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
935f05b741
commit
5cfd481cf5
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GM20B ACR
|
||||
*
|
||||
* Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -22,8 +22,8 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __ACR_GM20B_H_
|
||||
#define __ACR_GM20B_H_
|
||||
#ifndef NVGPU_GM20B_ACR_GM20B_H
|
||||
#define NVGPU_GM20B_ACR_GM20B_H
|
||||
|
||||
#define GM20B_PMU_UCODE_IMAGE "gpmu_ucode_image.bin"
|
||||
#define GM20B_PMU_UCODE_DESC "gpmu_ucode_desc.bin"
|
||||
@@ -59,4 +59,4 @@ int acr_ucode_patch_sig(struct gk20a *g,
|
||||
unsigned int *p_dbg_sig,
|
||||
unsigned int *p_patch_loc,
|
||||
unsigned int *p_patch_ind);
|
||||
#endif /*__ACR_GM20B_H_*/
|
||||
#endif /*NVGPU_GM20B_ACR_GM20B_H*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GM20B Graphics
|
||||
*
|
||||
* Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -21,8 +21,8 @@
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#ifndef _NVHOST_CLK_GM20B_H_
|
||||
#define _NVHOST_CLK_GM20B_H_
|
||||
#ifndef NVGPU_GM20B_CLK_GM20B_H
|
||||
#define NVGPU_GM20B_CLK_GM20B_H
|
||||
|
||||
#include <nvgpu/lock.h>
|
||||
|
||||
@@ -90,4 +90,4 @@ static inline u32 nvgpu_div_to_pl(u32 div)
|
||||
return div;
|
||||
}
|
||||
|
||||
#endif /* _NVHOST_CLK_GM20B_H_ */
|
||||
#endif /* NVGPU_GM20B_CLK_GM20B_H */
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef _NVHOST_GM20B_FIFO
|
||||
#define _NVHOST_GM20B_FIFO
|
||||
#ifndef NVGPU_GM20B_FIFO_GM20B_H
|
||||
#define NVGPU_GM20B_FIFO_GM20B_H
|
||||
struct gk20a;
|
||||
struct mmu_fault_info;
|
||||
|
||||
@@ -38,4 +38,4 @@ void gm20b_fifo_init_pbdma_intr_descs(struct fifo_gk20a *f);
|
||||
void gm20b_fifo_tsg_verify_status_ctx_reload(struct channel_gk20a *ch);
|
||||
void gm20b_fifo_get_mmu_fault_gpc_desc(struct mmu_fault_info *mmfault);
|
||||
|
||||
#endif
|
||||
#endif /* NVGPU_GM20B_FIFO_GM20B_H */
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GM20B Graphics Context
|
||||
*
|
||||
* Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -21,8 +21,8 @@
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#ifndef __GR_CTX_GM20B_H__
|
||||
#define __GR_CTX_GM20B_H__
|
||||
#ifndef NVGPU_GM20B_GR_CTX_GM20B_H
|
||||
#define NVGPU_GM20B_GR_CTX_GM20B_H
|
||||
|
||||
#include "gk20a/gr_ctx_gk20a.h"
|
||||
|
||||
@@ -33,4 +33,4 @@
|
||||
int gr_gm20b_get_netlist_name(struct gk20a *g, int index, char *name);
|
||||
bool gr_gm20b_is_firmware_defined(void);
|
||||
|
||||
#endif /*__GR_CTX_GM20B_H__*/
|
||||
#endif /*NVGPU_GM20B_GR_CTX_GM20B_H*/
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef _NVHOST_GM20B_GR_MMU_H
|
||||
#define _NVHOST_GM20B_GR_MMU_H
|
||||
#ifndef NVGPU_GM20B_GR_GM20B_H
|
||||
#define NVGPU_GM20B_GR_GM20B_H
|
||||
|
||||
struct gk20a;
|
||||
struct nvgpu_warpstate;
|
||||
@@ -128,4 +128,4 @@ void gm20b_gr_clear_sm_hww(struct gk20a *g, u32 gpc, u32 tpc, u32 sm,
|
||||
u32 global_esr);
|
||||
u32 gr_gm20b_get_pmm_per_chiplet_offset(void);
|
||||
void gm20b_gr_set_debug_mode(struct gk20a *g, bool enable);
|
||||
#endif
|
||||
#endif /* NVGPU_GM20B_GR_GM20B_H */
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GM20B Graphics
|
||||
*
|
||||
* Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -22,10 +22,10 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef _NVHOST_HAL_GM20B_H
|
||||
#define _NVHOST_HAL_GM20B_H
|
||||
#ifndef NVGPU_GM20B_HAL_GM20B_H
|
||||
#define NVGPU_GM20B_HAL_GM20B_H
|
||||
struct gk20a;
|
||||
|
||||
int gm20b_init_hal(struct gk20a *g);
|
||||
int gm20b_get_litter_value(struct gk20a *g, int value);
|
||||
#endif
|
||||
#endif /* NVGPU_GM20B_HAL_GM20B_H */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef _NVHOST_GM20B_MM
|
||||
#define _NVHOST_GM20B_MM
|
||||
#ifndef NVGPU_GM20B_MM_GM20B_H
|
||||
#define NVGPU_GM20B_MM_GM20B_H
|
||||
struct gk20a;
|
||||
|
||||
#define PDE_ADDR_START(x, y) ((x) & ~((0x1UL << (y)) - 1))
|
||||
@@ -37,4 +37,4 @@ u64 gm20b_gpu_phys_addr(struct gk20a *g,
|
||||
struct nvgpu_gmmu_attrs *attrs, u64 phys);
|
||||
u32 gm20b_get_kind_invalid(void);
|
||||
u32 gm20b_get_kind_pitch(void);
|
||||
#endif
|
||||
#endif /* NVGPU_GM20B_MM_GM20B_H */
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GM20B PMU
|
||||
*
|
||||
* Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -22,8 +22,8 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __PMU_GM20B_H_
|
||||
#define __PMU_GM20B_H_
|
||||
#ifndef NVGPU_GM20B_PMU_GM20B_H
|
||||
#define NVGPU_GM20B_PMU_GM20B_H
|
||||
|
||||
struct gk20a;
|
||||
|
||||
@@ -35,4 +35,4 @@ int gm20b_pmu_init_acr(struct gk20a *g);
|
||||
void gm20b_write_dmatrfbase(struct gk20a *g, u32 addr);
|
||||
bool gm20b_pmu_is_debug_mode_en(struct gk20a *g);
|
||||
|
||||
#endif /*__PMU_GM20B_H_*/
|
||||
#endif /*NVGPU_GM20B_PMU_GM20B_H*/
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#ifndef __REGOPS_GM20B_H_
|
||||
#define __REGOPS_GM20B_H_
|
||||
#ifndef NVGPU_GM20B_REGOPS_GM20B_H
|
||||
#define NVGPU_GM20B_REGOPS_GM20B_H
|
||||
|
||||
struct dbg_session_gk20a;
|
||||
|
||||
@@ -41,4 +41,4 @@ const struct regop_offset_range *gm20b_get_qctl_whitelist_ranges(void);
|
||||
u64 gm20b_get_qctl_whitelist_ranges_count(void);
|
||||
int gm20b_apply_smpc_war(struct dbg_session_gk20a *dbg_s);
|
||||
|
||||
#endif /* __REGOPS_GM20B_H_ */
|
||||
#endif /* NVGPU_GM20B_REGOPS_GM20B_H */
|
||||
|
||||
Reference in New Issue
Block a user