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
...@@ -188,4 +188,4 @@ le64enc(void *pp, uint64_t u) ...@@ -188,4 +188,4 @@ le64enc(void *pp, uint64_t u)
le32enc(p + 4, (uint32_t)(u >> 32)); le32enc(p + 4, (uint32_t)(u >> 32));
} }
#endif /* SYS_ENDIAN_H */ #endif /* ENDIAN_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __MMIO_H__ #ifndef MMIO_H
#define __MMIO_H__ #define MMIO_H
#include <stdint.h> #include <stdint.h>
...@@ -73,4 +73,4 @@ static inline void mmio_clrsetbits_32(uintptr_t addr, ...@@ -73,4 +73,4 @@ static inline void mmio_clrsetbits_32(uintptr_t addr,
mmio_write_32(addr, (mmio_read_32(addr) & ~clear) | set); mmio_write_32(addr, (mmio_read_32(addr) & ~clear) | set);
} }
#endif /* __MMIO_H__ */ #endif /* MMIO_H */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __OPTEE_UTILS_H__ #ifndef OPTEE_UTILS_H
#define __OPTEE_UTILS_H__ #define OPTEE_UTILS_H
#include <bl_common.h> #include <bl_common.h>
...@@ -12,4 +12,4 @@ int parse_optee_header(entry_point_info_t *header_ep, ...@@ -12,4 +12,4 @@ int parse_optee_header(entry_point_info_t *header_ep,
image_info_t *pager_image_info, image_info_t *pager_image_info,
image_info_t *paged_image_info); image_info_t *paged_image_info);
#endif /* __OPTEE_UTILS_H__ */ #endif /* OPTEE_UTILS_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PMF_ASM_MACROS_S__ #ifndef PMF_ASM_MACROS_S
#define __PMF_ASM_MACROS_S__ #define PMF_ASM_MACROS_S
#define PMF_TS_SIZE 8 #define PMF_TS_SIZE 8
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
add x0, x0, x1 add x0, x0, x1
.endm .endm
#endif /* __PMF_ASM_MACROS_S__ */ #endif /* PMF_ASM_MACROS_S */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __RUNTIME_INSTR_H__ #ifndef RUNTIME_INSTR_H
#define __RUNTIME_INSTR_H__ #define RUNTIME_INSTR_H
#include <utils_def.h> #include <utils_def.h>
...@@ -22,4 +22,4 @@ PMF_DECLARE_CAPTURE_TIMESTAMP(rt_instr_svc) ...@@ -22,4 +22,4 @@ PMF_DECLARE_CAPTURE_TIMESTAMP(rt_instr_svc)
PMF_DECLARE_GET_TIMESTAMP(rt_instr_svc) PMF_DECLARE_GET_TIMESTAMP(rt_instr_svc)
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif /* __RUNTIME_INSTR_H__ */ #endif /* RUNTIME_INSTR_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __SEMIHOSTING_H__ #ifndef SEMIHOSTING_H
#define __SEMIHOSTING_H__ #define SEMIHOSTING_H
#include <stdint.h> #include <stdint.h>
#include <stdio.h> /* For ssize_t */ #include <stdio.h> /* For ssize_t */
...@@ -55,4 +55,4 @@ void semihosting_write_char(char character); ...@@ -55,4 +55,4 @@ void semihosting_write_char(char character);
void semihosting_write_string(char *string); void semihosting_write_string(char *string);
char semihosting_read_char(void); char semihosting_read_char(void);
#endif /* __SEMIHOSTING_H__ */ #endif /* SEMIHOSTING_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __SMCCC_H__ #ifndef SMCCC_H
#define __SMCCC_H__ #define SMCCC_H
#include <utils_def.h> #include <utils_def.h>
...@@ -101,4 +101,4 @@ static inline uint32_t smc_uuid_word(uint8_t b0, uint8_t b1, uint8_t b2, uint8_t ...@@ -101,4 +101,4 @@ static inline uint32_t smc_uuid_word(uint8_t b0, uint8_t b1, uint8_t b2, uint8_t
(_uuid).node[4], (_uuid).node[5])) (_uuid).node[4], (_uuid).node[5]))
#endif /*__ASSEMBLY__*/ #endif /*__ASSEMBLY__*/
#endif /* __SMCCC_H__ */ #endif /* SMCCC_H */
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef SMCCC_V1_H #ifndef SMCCC_V1_H
#define SMCCC_V1_H #define SMCCC_V1_H
#ifndef __SMCCC_H__ #ifndef SMCCC_H
#error "This file must only be included from smccc.h" #error "This file must only be included from smccc.h"
#endif #endif
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef SMCCC_V2_H #ifndef SMCCC_V2_H
#define SMCCC_V2_H #define SMCCC_V2_H
#ifndef __SMCCC_H__ #ifndef SMCCC_H
#error "This file must only be included from smccc.h" #error "This file must only be included from smccc.h"
#endif #endif
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __UTILS_H__ #ifndef UTILS_H
#define __UTILS_H__ #define UTILS_H
/* /*
* C code should be put in this part of the header to avoid breaking ASM files * C code should be put in this part of the header to avoid breaking ASM files
...@@ -92,4 +92,4 @@ static inline u_register_t load_addr_## _name(void) \ ...@@ -92,4 +92,4 @@ static inline u_register_t load_addr_## _name(void) \
#endif /* !(defined(__LINKER__) || defined(__ASSEMBLY__)) */ #endif /* !(defined(__LINKER__) || defined(__ASSEMBLY__)) */
#endif /* __UTILS_H__ */ #endif /* UTILS_H */
...@@ -170,4 +170,4 @@ ...@@ -170,4 +170,4 @@
#define XN_SHIFT 54 #define XN_SHIFT 54
#define UXN_SHIFT XN_SHIFT #define UXN_SHIFT XN_SHIFT
#endif /* __XLAT_TABLES_DEFS_H__ */ #endif /* XLAT_TABLES_DEFS_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __TF_GUNZIP_H__ #ifndef TF_GUNZIP_H
#define __TF_GUNZIP_H__ #define TF_GUNZIP_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
int gunzip(uintptr_t *in_buf, size_t in_len, uintptr_t *out_buf, int gunzip(uintptr_t *in_buf, size_t in_len, uintptr_t *out_buf,
size_t out_len, uintptr_t work_buf, size_t work_len); size_t out_len, uintptr_t work_buf, size_t work_len);
#endif /* __TF_GUNZIP_H___ */ #endif /* TF_GUNZIP_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __BOARD_CSS_DEF_H__ #ifndef BOARD_CSS_DEF_H
#define __BOARD_CSS_DEF_H__ #define BOARD_CSS_DEF_H
#include <common_def.h> #include <common_def.h>
#include <soc_css_def.h> #include <soc_css_def.h>
...@@ -73,5 +73,4 @@ ...@@ -73,5 +73,4 @@
#define PLAT_ARM_TSP_UART_BASE V2M_IOFPGA_UART0_BASE #define PLAT_ARM_TSP_UART_BASE V2M_IOFPGA_UART0_BASE
#define PLAT_ARM_TSP_UART_CLK_IN_HZ V2M_IOFPGA_UART0_CLK_IN_HZ #define PLAT_ARM_TSP_UART_CLK_IN_HZ V2M_IOFPGA_UART0_CLK_IN_HZ
#endif /* __BOARD_CSS_DEF_H__ */ #endif /* BOARD_CSS_DEF_H */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __ARM_MACROS_S__ #ifndef ARM_MACROS_S
#define __ARM_MACROS_S__ #define ARM_MACROS_S
#include <gic_common.h> #include <gic_common.h>
#include <gicv2.h> #include <gicv2.h>
...@@ -91,4 +91,4 @@ gicd_ispendr_loop: ...@@ -91,4 +91,4 @@ gicd_ispendr_loop:
exit_print_gic_regs: exit_print_gic_regs:
.endm .endm
#endif /* __ARM_MACROS_S__ */ #endif /* ARM_MACROS_S */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __CCI_MACROS_S__ #ifndef CCI_MACROS_S
#define __CCI_MACROS_S__ #define CCI_MACROS_S
#include <cci.h> #include <cci.h>
#include <platform_def.h> #include <platform_def.h>
...@@ -34,4 +34,4 @@ cci_iface_regs: ...@@ -34,4 +34,4 @@ cci_iface_regs:
bl str_in_crash_buf_print bl str_in_crash_buf_print
.endm .endm
#endif /* __CCI_MACROS_S__ */ #endif /* CCI_MACROS_S */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __ARM_CONFIG_H__ #ifndef ARM_CONFIG_H
#define __ARM_CONFIG_H__ #define ARM_CONFIG_H
#include <stdint.h> #include <stdint.h>
#include <utils_def.h> #include <utils_def.h>
...@@ -39,4 +39,4 @@ static inline const arm_config_t *get_arm_config(void) ...@@ -39,4 +39,4 @@ static inline const arm_config_t *get_arm_config(void)
} }
#endif /* __ARM_CONFIG_H__ */ #endif /* ARM_CONFIG_H */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __ARM_SPM_DEF_H__ #ifndef ARM_SPM_DEF_H
#define __ARM_SPM_DEF_H__ #define ARM_SPM_DEF_H
#include <arm_def.h> #include <arm_def.h>
#include <utils_def.h> #include <utils_def.h>
...@@ -100,4 +100,4 @@ ...@@ -100,4 +100,4 @@
#define PLAT_SPM_COOKIE_0 ULL(0) #define PLAT_SPM_COOKIE_0 ULL(0)
#define PLAT_SPM_COOKIE_1 ULL(0) #define PLAT_SPM_COOKIE_1 ULL(0)
#endif /* __ARM_SPM_DEF_H__ */ #endif /* ARM_SPM_DEF_H */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __CSS_MACROS_S__ #ifndef CSS_MACROS_S
#define __CSS_MACROS_S__ #define CSS_MACROS_S
#include <arm_macros.S> #include <arm_macros.S>
#include <platform_def.h> #include <platform_def.h>
...@@ -22,5 +22,4 @@ ...@@ -22,5 +22,4 @@
arm_print_gic_regs arm_print_gic_regs
.endm .endm
#endif /* CSS_MACROS_S */
#endif /* __CSS_MACROS_S__ */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __CSS_DEF_H__ #ifndef CSS_DEF_H
#define __CSS_DEF_H__ #define CSS_DEF_H
#include <arm_def.h> #include <arm_def.h>
#include <gic_common.h> #include <gic_common.h>
...@@ -200,4 +200,4 @@ ...@@ -200,4 +200,4 @@
#define CSS_CPU_PWR_STATE_OFF 0 #define CSS_CPU_PWR_STATE_OFF 0
#define CSS_CPU_PWR_STATE(state, n) (((state) >> (n)) & 1) #define CSS_CPU_PWR_STATE(state, n) (((state) >> (n)) & 1)
#endif /* __CSS_DEF_H__ */ #endif /* CSS_DEF_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __CSS_PM_H__ #ifndef CSS_PM_H
#define __CSS_PM_H__ #define CSS_PM_H
#include <cdefs.h> #include <cdefs.h>
#include <psci.h> #include <psci.h>
...@@ -45,4 +45,4 @@ int css_node_hw_state(u_register_t mpidr, unsigned int power_level); ...@@ -45,4 +45,4 @@ int css_node_hw_state(u_register_t mpidr, unsigned int power_level);
*/ */
extern const uint32_t plat_css_core_pos_to_scmi_dmn_id_map[]; extern const uint32_t plat_css_core_pos_to_scmi_dmn_id_map[];
#endif /* __CSS_PM_H__ */ #endif /* CSS_PM_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