Commit 67db3231 authored by Varun Wadekar's avatar Varun Wadekar
Browse files

Tegra: include: fix violations of MISRA Rule 21.1



This patch fixes the violations of Rule 21.1 from all the
Tegra common header files.

Rule 21.1 "#define and #undef shall not be used on a reserved
           identifier or reserved macro name"
Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
Change-Id: I2e117645c110e04c13fa86ebbbb38df4951d2185
parent 43636796
/* /*
* Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __BPMP_IPC_H__ #ifndef BPMP_IPC_H
#define __BPMP_IPC_H__ #define BPMP_IPC_H
#include <lib/utils_def.h> #include <lib/utils_def.h>
#include <stdbool.h> #include <stdbool.h>
...@@ -44,4 +45,4 @@ int tegra_bpmp_ipc_enable_clock(uint32_t clk_id); ...@@ -44,4 +45,4 @@ int tegra_bpmp_ipc_enable_clock(uint32_t clk_id);
*/ */
int tegra_bpmp_ipc_disable_clock(uint32_t clk_id); int tegra_bpmp_ipc_disable_clock(uint32_t clk_id);
#endif /* __BPMP_IPC_H__ */ #endif /* BPMP_IPC_H */
/* /*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __GPCDMA_H__ #ifndef GPCDMA_H
#define __GPCDMA_H__ #define GPCDMA_H
#include <stdint.h> #include <stdint.h>
...@@ -13,4 +14,4 @@ void tegra_gpcdma_memcpy(uint64_t dst_addr, uint64_t src_addr, ...@@ -13,4 +14,4 @@ void tegra_gpcdma_memcpy(uint64_t dst_addr, uint64_t src_addr,
uint32_t num_bytes); uint32_t num_bytes);
void tegra_gpcdma_zeromem(uint64_t dst_addr, uint32_t num_bytes); void tegra_gpcdma_zeromem(uint64_t dst_addr, uint32_t num_bytes);
#endif /* __GPCDMA_H__ */ #endif /* GPCDMA_H */
/* /*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __TEGRA_GIC_H__ #ifndef TEGRA_GIC_H
#define __TEGRA_GIC_H__ #define TEGRA_GIC_H
#include <common/interrupt_props.h> #include <common/interrupt_props.h>
...@@ -26,4 +27,4 @@ void tegra_gic_pcpu_init(void); ...@@ -26,4 +27,4 @@ void tegra_gic_pcpu_init(void);
void tegra_gic_setup(const interrupt_prop_t *interrupt_props, void tegra_gic_setup(const interrupt_prop_t *interrupt_props,
unsigned int interrupt_props_num); unsigned int interrupt_props_num);
#endif /* __TEGRA_GIC_H__ */ #endif /* TEGRA_GIC_H */
/* /*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PROFILER_H__ #ifndef PROFILER_H
#define __PROFILER_H__ #define PROFILER_H
/******************************************************************************* /*******************************************************************************
* Number of bytes of memory used by the profiler on Tegra * Number of bytes of memory used by the profiler on Tegra
...@@ -16,4 +17,4 @@ void boot_profiler_init(uint64_t shmem_base, uint32_t tmr_base); ...@@ -16,4 +17,4 @@ void boot_profiler_init(uint64_t shmem_base, uint32_t tmr_base);
void boot_profiler_add_record(const char *str); void boot_profiler_add_record(const char *str);
void boot_profiler_deinit(void); void boot_profiler_deinit(void);
#endif /* __PROFILER_H__ */ #endif /* PROFILER_H */
/* /*
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __TEGRA194_PRIVATE_H__ #ifndef TEGRA194_PRIVATE_H
#define __TEGRA194_PRIVATE_H__ #define TEGRA194_PRIVATE_H
void tegra194_cpu_reset_handler(void); void tegra194_cpu_reset_handler(void);
uint64_t tegra194_get_cpu_reset_handler_base(void); uint64_t tegra194_get_cpu_reset_handler_base(void);
...@@ -13,4 +13,4 @@ uint64_t tegra194_get_cpu_reset_handler_size(void); ...@@ -13,4 +13,4 @@ uint64_t tegra194_get_cpu_reset_handler_size(void);
uint64_t tegra194_get_smmu_ctx_offset(void); uint64_t tegra194_get_smmu_ctx_offset(void);
void tegra194_set_system_suspend_entry(void); void tegra194_set_system_suspend_entry(void);
#endif /* __TEGRA194_PRIVATE_H__ */ #endif /* TEGRA194_PRIVATE_H */
/* /*
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __TEGRA_DEF_H__ #ifndef TEGRA_DEF_H
#define __TEGRA_DEF_H__ #define TEGRA_DEF_H
#include <lib/utils_def.h> #include <lib/utils_def.h>
...@@ -237,4 +237,4 @@ ...@@ -237,4 +237,4 @@
#define TEGRA_SID_XUSB_VF2 U(0x5f) #define TEGRA_SID_XUSB_VF2 U(0x5f)
#define TEGRA_SID_XUSB_VF3 U(0x60) #define TEGRA_SID_XUSB_VF3 U(0x60)
#endif /* __TEGRA_DEF_H__ */ #endif /* TEGRA_DEF_H */
/* /*
* Copyright (c) 2019, NVIDIA Corporation. All rights reserved. * Copyright (c) 2019-2020, NVIDIA Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __TEGRA_MC_DEF_H__ #ifndef TEGRA_MC_DEF_H
#define __TEGRA_MC_DEF_H__ #define TEGRA_MC_DEF_H
/******************************************************************************* /*******************************************************************************
* Memory Controller Order_id registers * Memory Controller Order_id registers
...@@ -647,4 +647,4 @@ ...@@ -647,4 +647,4 @@
#define TSA_CONFIG_CSW_MEMTYPE_OVERRIDE_MASK (ULL(0x3) << 11) #define TSA_CONFIG_CSW_MEMTYPE_OVERRIDE_MASK (ULL(0x3) << 11)
#define TSA_CONFIG_CSW_MEMTYPE_OVERRIDE_PASTHRU (ULL(0) << 11) #define TSA_CONFIG_CSW_MEMTYPE_OVERRIDE_PASTHRU (ULL(0) << 11)
#endif /* __TEGRA_MC_DEF_H__ */ #endif /* TEGRA_MC_DEF_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment