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/bl2u/bl2u.h
View file @
9d068f66
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef BL2_H
__
#ifndef BL2
U
_H
#define BL2_H
__
#define BL2
U
_H
void
bl2u_main
(
void
);
void
bl2u_main
(
void
);
#endif
/* BL2_H
__
*/
#endif
/* BL2
U
_H */
include/bl31/bl31.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
__
BL31_H
__
#ifndef BL31_H
#define
__
BL31_H
__
#define BL31_H
#include <stdint.h>
#include <stdint.h>
...
@@ -21,4 +21,4 @@ void bl31_warm_entrypoint(void);
...
@@ -21,4 +21,4 @@ void bl31_warm_entrypoint(void);
void
bl31_main
(
void
);
void
bl31_main
(
void
);
void
bl31_lib_init
(
void
);
void
bl31_lib_init
(
void
);
#endif
/*
__
BL31_H
__
*/
#endif
/* BL31_H */
include/bl31/ea_handle.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
__
EA_HANDLE_H
__
#ifndef EA_HANDLE_H
#define
__
EA_HANDLE_H
__
#define EA_HANDLE_H
/* Constants indicating the reason for an External Abort */
/* Constants indicating the reason for an External Abort */
...
@@ -21,4 +21,4 @@
...
@@ -21,4 +21,4 @@
/* RAS event signalled as peripheral interrupt */
/* RAS event signalled as peripheral interrupt */
#define ERROR_INTERRUPT 3
#define ERROR_INTERRUPT 3
#endif
/*
__
EA_HANDLE_H
__
*/
#endif
/* EA_HANDLE_H */
include/bl31/interrupt_mgmt.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
__
INTERRUPT_MGMT_H
__
#ifndef INTERRUPT_MGMT_H
#define
__
INTERRUPT_MGMT_H
__
#define INTERRUPT_MGMT_H
#include <arch.h>
#include <arch.h>
#include <utils_def.h>
#include <utils_def.h>
...
@@ -144,4 +144,4 @@ int disable_intr_rm_local(uint32_t type, uint32_t security_state);
...
@@ -144,4 +144,4 @@ int disable_intr_rm_local(uint32_t type, uint32_t security_state);
int
enable_intr_rm_local
(
uint32_t
type
,
uint32_t
security_state
);
int
enable_intr_rm_local
(
uint32_t
type
,
uint32_t
security_state
);
#endif
/*__ASSEMBLY__*/
#endif
/*__ASSEMBLY__*/
#endif
/*
__
INTERRUPT_MGMT_H
__
*/
#endif
/* INTERRUPT_MGMT_H */
include/bl32/payloads/tlk.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
__
TLK_H
__
#ifndef TLK_H
#define
__
TLK_H
__
#define TLK_H
#include <utils_def.h>
#include <utils_def.h>
...
@@ -63,4 +63,4 @@
...
@@ -63,4 +63,4 @@
#define TOS_UID 0xbf00ff01
/* Implementation UID */
#define TOS_UID 0xbf00ff01
/* Implementation UID */
#define TOS_CALL_VERSION 0xbf00ff03
/* Trusted OS Call Version */
#define TOS_CALL_VERSION 0xbf00ff03
/* Trusted OS Call Version */
#endif
/*
__
TLK_H
__
*/
#endif
/* TLK_H */
include/bl32/sp_min/platform_sp_min.h
View file @
9d068f66
...
@@ -4,8 +4,10 @@
...
@@ -4,8 +4,10 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef __PLATFORM_SP_MIN_H__
#ifndef PLATFORM_SP_MIN_H
#define __PLATFORM_SP_MIN_H__
#define PLATFORM_SP_MIN_H
#include <stdint.h>
/*******************************************************************************
/*******************************************************************************
* Mandatory SP_MIN functions
* Mandatory SP_MIN functions
...
@@ -20,4 +22,4 @@ entry_point_info_t *sp_min_plat_get_bl33_ep_info(void);
...
@@ -20,4 +22,4 @@ entry_point_info_t *sp_min_plat_get_bl33_ep_info(void);
/* Platforms that enable SP_MIN_WITH_SECURE_FIQ shall implement this api */
/* Platforms that enable SP_MIN_WITH_SECURE_FIQ shall implement this api */
void
sp_min_plat_fiq_handler
(
uint32_t
id
);
void
sp_min_plat_fiq_handler
(
uint32_t
id
);
#endif
/*
__
PLATFORM_SP_MIN_H
__
*/
#endif
/* PLATFORM_SP_MIN_H */
include/bl32/tsp/platform_tsp.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
__
PLATFORM_TSP_H
__
#ifndef 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,7 +14,4 @@ void tsp_early_platform_setup(void);
...
@@ -14,7 +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 */
#define __PLATFORM_H__
#endif
include/bl32/tsp/tsp.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
__
TSP_H
__
#ifndef TSP_H
#define
__
TSP_H
__
#define TSP_H
/*
/*
* SMC function IDs that TSP uses to signal various forms of completions
* SMC function IDs that TSP uses to signal various forms of completions
...
@@ -107,4 +107,4 @@ typedef struct tsp_vectors {
...
@@ -107,4 +107,4 @@ typedef struct tsp_vectors {
#endif
/* __ASSEMBLY__ */
#endif
/* __ASSEMBLY__ */
#endif
/*
__
TSP_H
__
*/
#endif
/* TSP_H */
include/common/aarch32/asm_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
__
ASM_MACROS_S
__
#ifndef ASM_MACROS_S
#define
__
ASM_MACROS_S
__
#define ASM_MACROS_S
#include <arch.h>
#include <arch.h>
#include <asm_macros_common.S>
#include <asm_macros_common.S>
...
@@ -189,4 +189,4 @@
...
@@ -189,4 +189,4 @@
.
endif
.
endif
.
endm
.
endm
#endif /*
__
ASM_MACROS_S
__
*/
#endif /* ASM_MACROS_S */
include/common/aarch32/assert_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
__
ASSERT_MACROS_S
__
#ifndef ASSERT_MACROS_S
#define
__
ASSERT_MACROS_S
__
#define ASSERT_MACROS_S
/
*
/
*
*
Assembler
macro
to
enable
asm_assert
.
We
assume
that
the
stack
is
*
Assembler
macro
to
enable
asm_assert
.
We
assume
that
the
stack
is
...
@@ -23,4 +23,4 @@
...
@@ -23,4 +23,4 @@
b
asm_assert
;\
b
asm_assert
;\
300
:
300
:
#endif /*
__
ASSERT_MACROS_S
__
*/
#endif /* ASSERT_MACROS_S */
include/common/aarch32/console_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
__
CONSOLE_MACROS_S
__
#ifndef CONSOLE_MACROS_S
#define
__
CONSOLE_MACROS_S
__
#define CONSOLE_MACROS_S
#include <console.h>
#include <console.h>
...
@@ -81,4 +81,4 @@
...
@@ -81,4 +81,4 @@
b
console_register
b
console_register
.
endm
.
endm
#endif /* USE_FINISH_CONSOLE_REG_2 */
#endif /* USE_FINISH_CONSOLE_REG_2 */
#endif /*
__
CONSOLE_MACROS_S
__
*/
#endif /* CONSOLE_MACROS_S */
include/common/aarch32/el3_common_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
__
EL3_COMMON_MACROS_S
__
#ifndef EL3_COMMON_MACROS_S
#define
__
EL3_COMMON_MACROS_S
__
#define EL3_COMMON_MACROS_S
#include <arch.h>
#include <arch.h>
#include <asm_macros.S>
#include <asm_macros.S>
...
@@ -313,4 +313,4 @@
...
@@ -313,4 +313,4 @@
#endif
#endif
.
endm
.
endm
#endif /*
__
EL3_COMMON_MACROS_S
__
*/
#endif /* EL3_COMMON_MACROS_S */
include/common/aarch64/asm_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
__
ASM_MACROS_S
__
#ifndef ASM_MACROS_S
#define
__
ASM_MACROS_S
__
#define ASM_MACROS_S
#include <arch.h>
#include <arch.h>
#include <asm_macros_common.S>
#include <asm_macros_common.S>
...
@@ -192,4 +192,4 @@
...
@@ -192,4 +192,4 @@
.
endm
.
endm
#endif
#endif
#endif /*
__
ASM_MACROS_S
__
*/
#endif /* ASM_MACROS_S */
include/common/aarch64/assert_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
__
ASSERT_MACROS_S
__
#ifndef ASSERT_MACROS_S
#define
__
ASSERT_MACROS_S
__
#define ASSERT_MACROS_S
/
*
/
*
*
Assembler
macro
to
enable
asm_assert
.
Use
this
macro
wherever
*
Assembler
macro
to
enable
asm_assert
.
Use
this
macro
wherever
...
@@ -26,4 +26,4 @@
...
@@ -26,4 +26,4 @@
b
asm_assert
;\
b
asm_assert
;\
300
:
300
:
#endif /*
__
ASSERT_MACROS_S
__
*/
#endif /* ASSERT_MACROS_S */
include/common/aarch64/console_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
__
CONSOLE_MACROS_S
__
#ifndef CONSOLE_MACROS_S
#define
__
CONSOLE_MACROS_S
__
#define CONSOLE_MACROS_S
#include <console.h>
#include <console.h>
...
@@ -84,4 +84,5 @@
...
@@ -84,4 +84,5 @@
b
console_register
b
console_register
.
endm
.
endm
#endif /* USE_FINISH_CONSOLE_REG_2 */
#endif /* USE_FINISH_CONSOLE_REG_2 */
#endif /* __CONSOLE_MACROS_S__ */
#endif /* CONSOLE_MACROS_S */
include/common/aarch64/el3_common_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
__
EL3_COMMON_MACROS_S
__
#ifndef EL3_COMMON_MACROS_S
#define
__
EL3_COMMON_MACROS_S
__
#define EL3_COMMON_MACROS_S
#include <arch.h>
#include <arch.h>
#include <asm_macros.S>
#include <asm_macros.S>
...
@@ -341,4 +341,4 @@
...
@@ -341,4 +341,4 @@
#endif
#endif
.
endm
.
endm
#endif /*
__
EL3_COMMON_MACROS_S
__
*/
#endif /* EL3_COMMON_MACROS_S */
include/common/asm_macros_common.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
__
ASM_MACROS_COMMON_S
__
#ifndef ASM_MACROS_COMMON_S
#define
__
ASM_MACROS_COMMON_S
__
#define ASM_MACROS_COMMON_S
/
*
/
*
*
This
macro
is
used
to
create
a
function
label
and
place
the
*
This
macro
is
used
to
create
a
function
label
and
place
the
...
@@ -104,4 +104,4 @@
...
@@ -104,4 +104,4 @@
.
endm
.
endm
#endif /*
__
ASM_MACROS_COMMON_S
__
*/
#endif /* ASM_MACROS_COMMON_S */
include/common/bl_common.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
__
BL_COMMON_H
__
#ifndef BL_COMMON_H
#define
__
BL_COMMON_H
__
#define BL_COMMON_H
#include <ep_info.h>
#include <ep_info.h>
#include <param_header.h>
#include <param_header.h>
...
@@ -201,4 +201,4 @@ void setup_page_tables(const struct mmap_region *bl_regions,
...
@@ -201,4 +201,4 @@ void setup_page_tables(const struct mmap_region *bl_regions,
#endif
/*__ASSEMBLY__*/
#endif
/*__ASSEMBLY__*/
#endif
/*
__
BL_COMMON_H
__
*/
#endif
/* BL_COMMON_H */
include/common/desc_image_load.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
__
DESC_IMAGE_LOAD_H
__
#ifndef DESC_IMAGE_LOAD_H
#define
__
DESC_IMAGE_LOAD_H
__
#define DESC_IMAGE_LOAD_H
#include <bl_common.h>
#include <bl_common.h>
...
@@ -37,4 +37,4 @@ bl_load_info_t *get_bl_load_info_from_mem_params_desc(void);
...
@@ -37,4 +37,4 @@ bl_load_info_t *get_bl_load_info_from_mem_params_desc(void);
bl_params_t
*
get_next_bl_params_from_mem_params_desc
(
void
);
bl_params_t
*
get_next_bl_params_from_mem_params_desc
(
void
);
void
populate_next_bl_params_config
(
bl_params_t
*
bl2_to_next_bl_params
);
void
populate_next_bl_params_config
(
bl_params_t
*
bl2_to_next_bl_params
);
#endif
/*
__
DESC_IMAGE_LOAD_H
__
*/
#endif
/* DESC_IMAGE_LOAD_H */
include/common/ep_info.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
__
EP_INFO_H
__
#ifndef EP_INFO_H
#define
__
EP_INFO_H
__
#define EP_INFO_H
#include <param_header.h>
#include <param_header.h>
#include <utils_def.h>
#include <utils_def.h>
...
@@ -132,5 +132,4 @@ CASSERT(sizeof(uintptr_t) ==
...
@@ -132,5 +132,4 @@ CASSERT(sizeof(uintptr_t) ==
#endif
/*__ASSEMBLY__*/
#endif
/*__ASSEMBLY__*/
#endif
/* __EP_INFO_H__ */
#endif
/* EP_INFO_H */
Prev
1
2
3
4
5
6
7
8
…
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