Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
9d068f66
Unverified
Commit
9d068f66
authored
Nov 08, 2018
by
Antonio Niño Díaz
Committed by
GitHub
Nov 08, 2018
Browse files
Merge pull request #1673 from antonio-nino-diaz-arm/an/headers
Standardise header guards across codebase
parents
f5ae1b0e
c3cf06f1
Changes
508
Hide whitespace changes
Inline
Side-by-side
include/lib/libc/endian.h
View file @
9d068f66
...
@@ -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 */
include/lib/mmio.h
View file @
9d068f66
...
@@ -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 */
include/lib/optee_utils.h
View file @
9d068f66
...
@@ -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 */
include/lib/pmf/pmf_asm_macros.S
View file @
9d068f66
...
@@ -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 */
include/lib/runtime_instr.h
View file @
9d068f66
...
@@ -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 */
include/lib/semihosting.h
View file @
9d068f66
...
@@ -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 */
include/lib/smccc.h
View file @
9d068f66
...
@@ -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 */
include/lib/smccc_v1.h
View file @
9d068f66
...
@@ -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
...
...
include/lib/smccc_v2.h
View file @
9d068f66
...
@@ -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
...
...
include/lib/utils.h
View file @
9d068f66
...
@@ -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 */
include/lib/xlat_tables/xlat_tables_defs.h
View file @
9d068f66
...
@@ -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 */
include/lib/zlib/tf_gunzip.h
View file @
9d068f66
...
@@ -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 */
include/plat/arm/board/common/board_css_def.h
View file @
9d068f66
...
@@ -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 */
include/plat/arm/common/aarch64/arm_macros.S
View file @
9d068f66
...
@@ -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 */
include/plat/arm/common/aarch64/cci_macros.S
View file @
9d068f66
...
@@ -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 */
include/plat/arm/common/arm_config.h
View file @
9d068f66
...
@@ -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 */
include/plat/arm/common/arm_spm_def.h
View file @
9d068f66
...
@@ -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 */
include/plat/arm/css/common/aarch64/css_macros.S
View file @
9d068f66
...
@@ -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__ */
include/plat/arm/css/common/css_def.h
View file @
9d068f66
...
@@ -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 */
include/plat/arm/css/common/css_pm.h
View file @
9d068f66
...
@@ -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 */
Prev
1
…
7
8
9
10
11
12
13
14
15
…
26
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment