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