Unverified Commit 9d068f66 authored by Antonio Niño Díaz's avatar Antonio Niño Díaz Committed by GitHub
Browse files

Merge pull request #1673 from antonio-nino-diaz-arm/an/headers

Standardise header guards across codebase
parents f5ae1b0e c3cf06f1
...@@ -52,8 +52,8 @@ ...@@ -52,8 +52,8 @@
* @{ * @{
*/ */
#ifndef SC_PAD_API_H #ifndef SCI_PAD_API_H
#define SC_PAD_API_H #define SCI_PAD_API_H
/* Includes */ /* Includes */
...@@ -567,6 +567,6 @@ sc_err_t sc_pad_get_gp_28fdsoi_comp(sc_ipc_t ipc, sc_pad_t pad, ...@@ -567,6 +567,6 @@ sc_err_t sc_pad_get_gp_28fdsoi_comp(sc_ipc_t ipc, sc_pad_t pad,
/* @} */ /* @} */
#endif /* SC_PAD_API_H */ #endif /* SCI_PAD_API_H */
/**@}*/ /**@}*/
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
* @{ * @{
*/ */
#ifndef SC_PM_API_H #ifndef SCI_PM_API_H
#define SC_PM_API_H #define SCI_PM_API_H
/* Includes */ /* Includes */
...@@ -679,6 +679,6 @@ sc_err_t sc_pm_cpu_start(sc_ipc_t ipc, sc_rsrc_t resource, sc_bool_t enable, ...@@ -679,6 +679,6 @@ sc_err_t sc_pm_cpu_start(sc_ipc_t ipc, sc_rsrc_t resource, sc_bool_t enable,
/* @} */ /* @} */
#endif /* SC_PM_API_H */ #endif /* SCI_PM_API_H */
/**@}*/ /**@}*/
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
* @{ * @{
*/ */
#ifndef SC_RM_API_H #ifndef SCI_RM_API_H
#define SC_RM_API_H #define SCI_RM_API_H
/* Includes */ /* Includes */
...@@ -752,6 +752,6 @@ void sc_rm_dump(sc_ipc_t ipc); ...@@ -752,6 +752,6 @@ void sc_rm_dump(sc_ipc_t ipc);
/* @} */ /* @} */
#endif /* SC_RM_API_H */ #endif /* SCI_RM_API_H */
/**@}*/ /**@}*/
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
* @{ * @{
*/ */
#ifndef SC_PAD_RPC_H #ifndef SCI_PAD_RPC_H
#define SC_PAD_RPC_H #define SCI_PAD_RPC_H
/* Includes */ /* Includes */
...@@ -61,6 +61,6 @@ void pad_dispatch(sc_rm_pt_t caller_pt, sc_rpc_msg_t *msg); ...@@ -61,6 +61,6 @@ void pad_dispatch(sc_rm_pt_t caller_pt, sc_rpc_msg_t *msg);
*/ */
void pad_xlate(sc_ipc_t ipc, sc_rpc_msg_t *msg); void pad_xlate(sc_ipc_t ipc, sc_rpc_msg_t *msg);
#endif /* SC_PAD_RPC_H */ #endif /* SCI_PAD_RPC_H */
/**@}*/ /**@}*/
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
* @{ * @{
*/ */
#ifndef SC_PM_RPC_H #ifndef SCI_PM_RPC_H
#define SC_PM_RPC_H #define SCI_PM_RPC_H
/* Includes */ /* Includes */
...@@ -66,6 +66,6 @@ void pm_dispatch(sc_rm_pt_t caller_pt, sc_rpc_msg_t *msg); ...@@ -66,6 +66,6 @@ void pm_dispatch(sc_rm_pt_t caller_pt, sc_rpc_msg_t *msg);
*/ */
void pm_xlate(sc_ipc_t ipc, sc_rpc_msg_t *msg); void pm_xlate(sc_ipc_t ipc, sc_rpc_msg_t *msg);
#endif /* SC_PM_RPC_H */ #endif /* SCI_PM_RPC_H */
/**@}*/ /**@}*/
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
* @{ * @{
*/ */
#ifndef SC_RM_RPC_H #ifndef SCI_RM_RPC_H
#define SC_RM_RPC_H #define SCI_RM_RPC_H
/* Includes */ /* Includes */
...@@ -76,6 +76,6 @@ void rm_dispatch(sc_rm_pt_t caller_pt, sc_rpc_msg_t *msg); ...@@ -76,6 +76,6 @@ void rm_dispatch(sc_rm_pt_t caller_pt, sc_rpc_msg_t *msg);
*/ */
void rm_xlate(sc_ipc_t ipc, sc_rpc_msg_t *msg); void rm_xlate(sc_ipc_t ipc, sc_rpc_msg_t *msg);
#endif /* SC_RM_RPC_H */ #endif /* SCI_RM_RPC_H */
/**@}*/ /**@}*/
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __IMX_HAB_ARCH_H__ #ifndef IMX_HAB_ARCH_H
#define __IMX_HAB_ARCH_H__ #define IMX_HAB_ARCH_H
/* Define the offset the High Assurance Boot callback table is at */ /* Define the offset the High Assurance Boot callback table is at */
#define HAB_CALLBACK_OFFSET 0x100 #define HAB_CALLBACK_OFFSET 0x100
#endif /* __IMX_HAB_ARCH_H__ */ #endif /* IMX_HAB_ARCH_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __IMX_REGS_H__ #ifndef IMX_REGS_H
#define __IMX_REGS_H__ #define IMX_REGS_H
/* Define the processor memory map */ /* Define the processor memory map */
...@@ -105,4 +105,4 @@ ...@@ -105,4 +105,4 @@
/* Define the maximum number of WDOG blocks on this SoC */ /* Define the maximum number of WDOG blocks on this SoC */
#define MXC_MAX_WDOG_NUM 0x04 #define MXC_MAX_WDOG_NUM 0x04
#endif /* __IMX_REGS_H__ */ #endif /* IMX_REGS_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PLATFORM_DEF_H__ #ifndef PLATFORM_DEF_H
#define __PLATFORM_DEF_H__ #define PLATFORM_DEF_H
#include <arch.h> #include <arch.h>
#include <common_def.h> #include <common_def.h>
...@@ -214,4 +214,4 @@ ...@@ -214,4 +214,4 @@
*/ */
#define SYS_COUNTER_FREQ_IN_TICKS 8000000 /* 8 MHz */ #define SYS_COUNTER_FREQ_IN_TICKS 8000000 /* 8 MHz */
#endif /* __PLATFORM_DEF_H__ */ #endif /* PLATFORM_DEF_H */
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __WARP7_PRIVATE_H__ #ifndef WARP7_PRIVATE_H
#define __WARP7_PRIVATE_H__ #define WARP7_PRIVATE_H
/******************************************************************************* /*******************************************************************************
* Function and variable prototypes * Function and variable prototypes
******************************************************************************/ ******************************************************************************/
void plat_warp7_io_setup(void); void plat_warp7_io_setup(void);
#endif /*__WARP7_PRIVATE_H__ */ #endif /* WARP7_PRIVATE_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __FSL_NS_ACCESS_H_ #ifndef NS_ACCESS_H
#define __FSL_NS_ACCESS_H_ #define NS_ACCESS_H
#include "fsl_csu.h" #include "fsl_csu.h"
...@@ -171,4 +171,4 @@ static struct csu_ns_dev ns_dev[] = { ...@@ -171,4 +171,4 @@ static struct csu_ns_dev ns_dev[] = {
{CSU_CSLX_DSCR, CSU_ALL_RW}, {CSU_CSLX_DSCR, CSU_ALL_RW},
}; };
#endif #endif /* NS_ACCESS_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PLAT_MACROS_S__ #ifndef PLAT_MACROS_S
#define __PLAT_MACROS_S__ #define PLAT_MACROS_S
/* --------------------------------------------- /* ---------------------------------------------
* The below required platform porting macro * The below required platform porting macro
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
.macro plat_crash_print_regs .macro plat_crash_print_regs
.endm .endm
#endif /* __PLAT_MACROS_S__ */ #endif /* PLAT_MACROS_S */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _SOC_TZASC_H_ #ifndef SOC_TZASC_H
#define _SOC_TZASC_H_ #define SOC_TZASC_H
#include "tzc380.h" #include "tzc380.h"
...@@ -90,4 +90,4 @@ static const struct tzc380_reg tzc380_reg_list[] = { ...@@ -90,4 +90,4 @@ static const struct tzc380_reg tzc380_reg_list[] = {
{} {}
}; };
#endif /* _SOC_TZASC_H_ */ #endif /* SOC_TZASC_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __FSL_CSU_H__ #ifndef FSL_CSU_H
#define __FSL_CSU_H__ #define FSL_CSU_H
enum csu_cslx_access { enum csu_cslx_access {
CSU_NS_SUP_R = 0x08, CSU_NS_SUP_R = 0x08,
...@@ -30,4 +30,4 @@ struct csu_ns_dev { ...@@ -30,4 +30,4 @@ struct csu_ns_dev {
void enable_layerscape_ns_access(void); void enable_layerscape_ns_access(void);
#endif #endif /* FSL_CSU_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __LS_16550_H__ #ifndef LS_16550_H
#define __LS_16550_H__ #define LS_16550_H
#include <console.h> #include <console.h>
...@@ -83,4 +83,4 @@ int console_ls_16550_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud, ...@@ -83,4 +83,4 @@ int console_ls_16550_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
#endif /*__ASSEMBLY__*/ #endif /*__ASSEMBLY__*/
#endif /* __LS_16550_H__ */ #endif /* LS_16550_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PLAT_LS_H__ #ifndef PLAT_LS_H
#define __PLAT_LS_H__ #define PLAT_LS_H
#include <cpu_data.h> #include <cpu_data.h>
#include <stdint.h> #include <stdint.h>
...@@ -58,4 +58,4 @@ unsigned int plat_ls_calc_core_pos(u_register_t mpidr); ...@@ -58,4 +58,4 @@ unsigned int plat_ls_calc_core_pos(u_register_t mpidr);
/* others */ /* others */
unsigned int plat_ls_get_cluster_core_count(u_register_t mpidr); unsigned int plat_ls_get_cluster_core_count(u_register_t mpidr);
#endif /* __PLAT_LS_H__ */ #endif /* PLAT_LS_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __LAYERSCAPE_SOC_H__ #ifndef SOC_H
#define __LAYERSCAPE_SOC_H__ #define SOC_H
#include <stdint.h> #include <stdint.h>
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
void get_gic_offset(uint32_t *gicc_base, uint32_t *gicd_base); void get_gic_offset(uint32_t *gicc_base, uint32_t *gicd_base);
#endif /* __LAYERSCAPE_SOC_H__ */ #endif /* SOC_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __TZC380_H__ #ifndef TZC380_H
#define __TZC380_H__ #define TZC380_H
struct tzc380_reg { struct tzc380_reg {
unsigned int secure; unsigned int secure;
...@@ -16,4 +16,4 @@ struct tzc380_reg { ...@@ -16,4 +16,4 @@ struct tzc380_reg {
unsigned int sub_mask; unsigned int sub_mask;
}; };
#endif /* __TZC380_H__ */ #endif /* TZC380_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PLATFORM_TSP_H__ #ifndef PLATFORM_TSP_H
#define __PLATFORM_TSP_H__ #define PLATFORM_TSP_H
/******************************************************************************* /*******************************************************************************
* Mandatory TSP functions (only if platform contains a TSP) * Mandatory TSP functions (only if platform contains a TSP)
...@@ -14,4 +14,4 @@ void tsp_early_platform_setup(void); ...@@ -14,4 +14,4 @@ void tsp_early_platform_setup(void);
void tsp_plat_arch_setup(void); void tsp_plat_arch_setup(void);
void tsp_platform_setup(void); void tsp_platform_setup(void);
#endif /* __PLATFORM_TSP_H__ */ #endif /* PLATFORM_TSP_H */
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
* https://spdx.org/licenses * https://spdx.org/licenses
*/ */
#ifndef __MVEBU_DEF_H__ #ifndef MVEBU_DEF_H
#define __MVEBU_DEF_H__ #define MVEBU_DEF_H
#include <a3700_plat_def.h> #include <a3700_plat_def.h>
#endif /* __MVEBU_DEF_H__ */ #endif /* MVEBU_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