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/plat/arm/soc/common/soc_css.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
SOC_CSS_H
__
#define
__
SOC_CSS_H
__
#ifndef SOC_CSS_H
#define SOC_CSS_H
/*
* Utility functions for ARM CSS SoCs
...
...
@@ -19,5 +19,4 @@ static inline void soc_css_security_setup(void)
soc_css_init_pcie
();
}
#endif
/* __SOC_CSS_H__ */
#endif
/* SOC_CSS_H */
include/plat/arm/soc/common/soc_css_def.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
SOC_CSS_DEF_H
__
#define
__
SOC_CSS_DEF_H
__
#ifndef SOC_CSS_DEF_H
#define SOC_CSS_DEF_H
#include <common_def.h>
#include <utils_def.h>
...
...
@@ -84,4 +84,4 @@
#define PLAT_ARM_SCP_TZC_DRAM1_SIZE ULL(0x00200000)
#endif
#endif
/*
__
SOC_CSS_DEF_H
__
*/
#endif
/* SOC_CSS_DEF_H */
include/plat/common/common_def.h
View file @
9d068f66
...
...
@@ -3,8 +3,8 @@
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
COMMON_DEF_H
__
#define
__
COMMON_DEF_H
__
#ifndef COMMON_DEF_H
#define COMMON_DEF_H
#include <bl_common.h>
#include <platform_def.h>
...
...
@@ -83,4 +83,5 @@
#define BL2_CODE_END round_up(BL2_ROM_END, PAGE_SIZE)
#endif
/* BL2_IN_XIP_MEM */
#endif
/* SEPARATE_CODE_AND_RODATA */
#endif
/* __COMMON_DEF_H__ */
#endif
/* COMMON_DEF_H */
include/plat/marvell/a3700/common/armada_common.h
View file @
9d068f66
...
...
@@ -5,12 +5,12 @@
* https://spdx.org/licenses
*/
#ifndef
__
ARMADA_COMMON_H
__
#define
__
ARMADA_COMMON_H
__
#ifndef ARMADA_COMMON_H
#define ARMADA_COMMON_H
#include <io_addr_dec.h>
#include <stdint.h>
int
marvell_get_io_dec_win_conf
(
struct
dec_win_config
**
win
,
uint32_t
*
size
);
#endif
/*
__
ARMADA_COMMON_H
__
*/
#endif
/* ARMADA_COMMON_H */
include/plat/marvell/a3700/common/board_marvell_def.h
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
*/
#ifndef
__
BOARD_MARVELL_DEF_H
__
#define
__
BOARD_MARVELL_DEF_H
__
#ifndef BOARD_MARVELL_DEF_H
#define BOARD_MARVELL_DEF_H
/*
* Required platform porting definitions common to all ARM
...
...
@@ -73,5 +73,4 @@
#define PLAT_MARVELL_TRUSTED_SRAM_SIZE 0x80000
/* 512 KB */
#endif
/* __BOARD_MARVELL_DEF_H__ */
#endif
/* BOARD_MARVELL_DEF_H */
include/plat/marvell/a3700/common/marvell_def.h
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
*/
#ifndef
__
MARVELL_DEF_H
__
#define
__
MARVELL_DEF_H
__
#ifndef MARVELL_DEF_H
#define MARVELL_DEF_H
#include <arch.h>
#include <common_def.h>
...
...
@@ -174,4 +174,4 @@
MARVELL_BL_RAM_SIZE)
#endif
/*
__
MARVELL_DEF_H
__
*/
#endif
/* MARVELL_DEF_H */
include/plat/marvell/a3700/common/plat_marvell.h
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
*/
#ifndef
__
PLAT_MARVELL_H
__
#define
__
PLAT_MARVELL_H
__
#ifndef PLAT_MARVELL_H
#define PLAT_MARVELL_H
#include <bl_common.h>
#include <cassert.h>
...
...
@@ -93,4 +93,4 @@ void plat_marvell_interconnect_enter_coherency(void);
const
mmap_region_t
*
plat_marvell_get_mmap
(
void
);
#endif
/*
__
PLAT_MARVELL_H
__
*/
#endif
/* PLAT_MARVELL_H */
include/plat/marvell/a8k/common/armada_common.h
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
*/
#ifndef
__
ARMADA_COMMON_H
__
#define
__
ARMADA_COMMON_H
__
#ifndef ARMADA_COMMON_H
#define ARMADA_COMMON_H
#include <amb_adec.h>
#include <io_win.h>
...
...
@@ -125,4 +125,4 @@ int marvell_get_iob_memory_map(struct addr_map_win **win,
int
marvell_get_ccu_memory_map
(
int
ap_idx
,
struct
addr_map_win
**
win
,
uint32_t
*
size
);
#endif
/*
__A8K
_COMMON_H
__
*/
#endif
/*
ARMADA
_COMMON_H */
include/plat/marvell/a8k/common/board_marvell_def.h
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
*/
#ifndef
__
BOARD_MARVELL_DEF_H
__
#define
__
BOARD_MARVELL_DEF_H
__
#ifndef BOARD_MARVELL_DEF_H
#define BOARD_MARVELL_DEF_H
/*
* Required platform porting definitions common to all ARM
...
...
@@ -74,4 +74,4 @@
#define PLAT_MARVELL_TRUSTED_SRAM_SIZE 0x80000
/* 512 KB */
#endif
/*
__
BOARD_MARVELL_DEF_H
__
*/
#endif
/* BOARD_MARVELL_DEF_H */
include/plat/marvell/a8k/common/marvell_def.h
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
*/
#ifndef
__
MARVELL_DEF_H
__
#define
__
MARVELL_DEF_H
__
#ifndef MARVELL_DEF_H
#define MARVELL_DEF_H
#include <arch.h>
#include <common_def.h>
...
...
@@ -178,4 +178,4 @@
MARVELL_BL_RAM_SIZE)
#endif
/*
__
MARVELL_DEF_H
__
*/
#endif
/* MARVELL_DEF_H */
include/plat/marvell/a8k/common/plat_marvell.h
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
*/
#ifndef
__
PLAT_MARVELL_H
__
#define
__
PLAT_MARVELL_H
__
#ifndef PLAT_MARVELL_H
#define PLAT_MARVELL_H
#include <cassert.h>
#include <cpu_data.h>
...
...
@@ -127,4 +127,4 @@ void marvell_exit_bootrom(uintptr_t base);
int
plat_marvell_early_cpu_powerdown
(
void
);
int
bl2_plat_handle_scp_bl2
(
image_info_t
*
scp_bl2_image_info
);
#endif
/*
__
PLAT_MARVELL_H
__
*/
#endif
/* PLAT_MARVELL_H */
include/plat/marvell/a8k/common/plat_pm_trace.h
View file @
9d068f66
...
...
@@ -5,9 +5,8 @@
* https://spdx.org/licenses
*/
#ifndef __PLAT_PM_TRACE_H
#define __PLAT_PM_TRACE_H
#ifndef PLAT_PM_TRACE_H
#define PLAT_PM_TRACE_H
/*
* PM Trace is for Debug purpose only!!!
...
...
@@ -97,4 +96,4 @@ extern core_trace_func funcTbl[PLATFORM_CORE_COUNT];
*/
void
pm_trace_add
(
unsigned
int
trace
,
unsigned
int
core
);
#endif
/*
__
PLAT_PM_TRACE_H */
#endif
/* PLAT_PM_TRACE_H */
include/plat/marvell/common/aarch64/cci_macros.S
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
*
https
:
//
spdx
.
org
/
licenses
*/
#ifndef
__
CCI_MACROS_S
__
#define
__
CCI_MACROS_S
__
#ifndef CCI_MACROS_S
#define CCI_MACROS_S
#include <cci.h>
#include <platform_def.h>
...
...
@@ -36,4 +36,4 @@ cci_iface_regs:
bl
str_in_crash_buf_print
.
endm
#endif /*
__
CCI_MACROS_S
__
*/
#endif /* CCI_MACROS_S */
include/plat/marvell/common/aarch64/marvell_macros.S
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
*
https
:
//
spdx
.
org
/
licenses
*/
#ifndef
__
MARVELL_MACROS_S
__
#define
__
MARVELL_MACROS_S
__
#ifndef MARVELL_MACROS_S
#define MARVELL_MACROS_S
#include <cci.h>
#include <gic_common.h>
...
...
@@ -131,4 +131,4 @@ cci_iface_regs:
.
endm
#endif /*
__
MARVELL_MACROS_S
__
*/
#endif /* MARVELL_MACROS_S */
include/plat/marvell/common/marvell_plat_priv.h
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
*/
#ifndef
__
MARVELL_PLAT_PRIV_H
__
#define
__
MARVELL_PLAT_PRIV_H
__
#ifndef MARVELL_PLAT_PRIV_H
#define MARVELL_PLAT_PRIV_H
#include <utils.h>
...
...
@@ -31,4 +31,4 @@ void plat_marvell_gic_irq_restore(void);
void
plat_marvell_gic_irq_pcpu_save
(
void
);
void
plat_marvell_gic_irq_pcpu_restore
(
void
);
#endif
/*
__
MARVELL_PLAT_PRIV_H
__
*/
#endif
/* MARVELL_PLAT_PRIV_H */
include/plat/marvell/common/marvell_pm.h
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
*/
#ifndef
_
MARVELL_PM_H
_
#define
_
MARVELL_PM_H
_
#ifndef MARVELL_PM_H
#define MARVELL_PM_H
#define MVEBU_MAILBOX_MAGIC_NUM PLAT_MARVELL_MAILBOX_MAGIC_NUM
#define MVEBU_MAILBOX_SUSPEND_STATE 0xb007de7c
...
...
@@ -23,4 +23,4 @@
/* BLE execution start counter value */
#define MBOX_IDX_START_CNT 4
#endif
/*
_
MARVELL_PM_H
_
*/
#endif
/* MARVELL_PM_H */
include/plat/marvell/common/mvebu.h
View file @
9d068f66
...
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
*/
#ifndef
_
MVEBU_H
_
#define
_
MVEBU_H
_
#ifndef MVEBU_H
#define MVEBU_H
/* Use this functions only when printf is allowed */
#define debug_enter() VERBOSE("----> Enter %s\n", __func__)
...
...
@@ -36,4 +36,4 @@
#define _1GB_ (_1MB_ * 1024ULL)
#define _2GB_ (2 * _1GB_)
#endif
/* MVEBU_H */
#endif
/* MVEBU_H */
include/services/arm_arch_svc.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
ARM_ARCH_SVC_H
__
#define
__
ARM_ARCH_SVC_H
__
#ifndef ARM_ARCH_SVC_H
#define ARM_ARCH_SVC_H
#define SMCCC_VERSION U(0x80000000)
#define SMCCC_ARCH_FEATURES U(0x80000001)
...
...
@@ -14,4 +14,4 @@
#define SMCCC_ARCH_NOT_REQUIRED -2
#endif
/*
__
ARM_ARCH_SVC_H
__
*/
#endif
/* ARM_ARCH_SVC_H */
include/services/mm_svc.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
MM_SVC_H
__
#define
__
MM_SVC_H
__
#ifndef MM_SVC_H
#define MM_SVC_H
#include <utils_def.h>
...
...
@@ -28,4 +28,4 @@
#define MM_COMMUNICATE_AARCH64 U(0xC4000041)
#define MM_COMMUNICATE_AARCH32 U(0x84000041)
#endif
/*
__
MM_SVC_H
__
*/
#endif
/* MM_SVC_H */
include/services/secure_partition.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
SECURE_PARTITION_H
__
#define
__
SECURE_PARTITION_H
__
#ifndef SECURE_PARTITION_H
#define SECURE_PARTITION_H
#include <stdint.h>
#include <utils_def.h>
...
...
@@ -46,4 +46,4 @@ typedef struct secure_partition_boot_info {
secure_partition_mp_info_t
*
mp_info
;
}
secure_partition_boot_info_t
;
#endif
/*
__
SECURE_PARTITION_H
__
*/
#endif
/* SECURE_PARTITION_H */
Prev
1
…
8
9
10
11
12
13
14
15
16
…
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