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
Show whitespace changes
Inline
Side-by-side
include/services/spm_svc.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
__
SPM_SVC_H
__
#ifndef SPM_SVC_H
#define
__
SPM_SVC_H
__
#define SPM_SVC_H
#include <utils_def.h>
#include <utils_def.h>
...
@@ -79,4 +79,4 @@ uint64_t spm_sp_call(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3);
...
@@ -79,4 +79,4 @@ uint64_t spm_sp_call(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3);
#endif
/* __ASSEMBLY__ */
#endif
/* __ASSEMBLY__ */
#endif
/*
__
SPM_SVC_H
__
*/
#endif
/* SPM_SVC_H */
include/services/std_svc.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
__
STD_SVC_H
__
#ifndef STD_SVC_H
#define
__
STD_SVC_H
__
#define STD_SVC_H
/* SMC function IDs for Standard Service queries */
/* SMC function IDs for Standard Service queries */
...
@@ -27,4 +27,4 @@
...
@@ -27,4 +27,4 @@
*/
*/
uintptr_t
get_arm_std_svc_args
(
unsigned
int
svc_mask
);
uintptr_t
get_arm_std_svc_args
(
unsigned
int
svc_mask
);
#endif
/*
__
STD_SVC_H
__
*/
#endif
/* STD_SVC_H */
include/tools_share/firmware_image_package.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
__
FIRMWARE_IMAGE_PACKAGE_H
__
#ifndef FIRMWARE_IMAGE_PACKAGE_H
#define
__
FIRMWARE_IMAGE_PACKAGE_H
__
#define FIRMWARE_IMAGE_PACKAGE_H
#include <stdint.h>
#include <stdint.h>
#include <uuid.h>
#include <uuid.h>
...
@@ -88,4 +88,4 @@ typedef struct fip_toc_entry {
...
@@ -88,4 +88,4 @@ typedef struct fip_toc_entry {
uint64_t
flags
;
uint64_t
flags
;
}
fip_toc_entry_t
;
}
fip_toc_entry_t
;
#endif
/*
__
FIRMWARE_IMAGE_PACKAGE_H
__
*/
#endif
/* FIRMWARE_IMAGE_PACKAGE_H */
include/tools_share/tbbr_oid.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
__
TBBR_OID_H
__
#ifndef TBBR_OID_H
#define
__
TBBR_OID_H
__
#define TBBR_OID_H
/*
/*
* The following is a list of OID values defined and reserved by ARM, which
* The following is a list of OID values defined and reserved by ARM, which
...
@@ -145,4 +145,4 @@
...
@@ -145,4 +145,4 @@
/* NonTrustedFirmwareConfigHash - NT_FW_CONFIG */
/* NonTrustedFirmwareConfigHash - NT_FW_CONFIG */
#define NON_TRUSTED_FW_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.1202"
#define NON_TRUSTED_FW_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.1202"
#endif
/*
__
TBBR_OID_H
__
*/
#endif
/* TBBR_OID_H */
include/tools_share/uuid.h
View file @
9d068f66
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
* All rights reserved.
* All rights reserved.
*/
*/
#ifndef
_SYS_
UUID_H
_
#ifndef UUID_H
#define
_SYS_
UUID_H
_
#define UUID_H
/* Length of a node address (an IEEE 802 address). */
/* Length of a node address (an IEEE 802 address). */
#define _UUID_NODE_LEN 6
#define _UUID_NODE_LEN 6
...
@@ -59,4 +59,4 @@ struct uuid {
...
@@ -59,4 +59,4 @@ struct uuid {
/* XXX namespace pollution? */
/* XXX namespace pollution? */
typedef
struct
uuid
uuid_t
;
typedef
struct
uuid
uuid_t
;
#endif
/*
_SYS_
UUID_H
_
*/
#endif
/* UUID_H */
plat/allwinner/common/include/mentor_i2c_plat.h
View file @
9d068f66
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
*/
*/
/* This driver provides I2C support for Allwinner sunXi SoCs */
/* This driver provides I2C support for Allwinner sunXi SoCs */
#ifndef
SUNXI_I2C
_H
#ifndef
MENTOR_I2C_PLAT
_H
#define
SUNXI_I2C
_H
#define
MENTOR_I2C_PLAT
_H
#define CONFIG_SYS_TCLK 24000000
#define CONFIG_SYS_TCLK 24000000
#define CONFIG_SYS_I2C_SPEED 100000
#define CONFIG_SYS_I2C_SPEED 100000
...
@@ -25,4 +25,4 @@ struct mentor_i2c_regs {
...
@@ -25,4 +25,4 @@ struct mentor_i2c_regs {
uint32_t
soft_reset
;
uint32_t
soft_reset
;
};
};
#endif
#endif
/* MENTOR_I2C_PLAT_H */
plat/allwinner/common/include/plat_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
__
PLAT_MACROS_S
__
#ifndef PLAT_MACROS_S
#define
__
PLAT_MACROS_S
__
#define PLAT_MACROS_S
#include <arm_macros.S>
#include <arm_macros.S>
#include <sunxi_mmap.h>
#include <sunxi_mmap.h>
...
@@ -24,4 +24,4 @@
...
@@ -24,4 +24,4 @@
arm_print_gic_regs
arm_print_gic_regs
.
endm
.
endm
#endif /*
__
PLAT_MACROS_S
__
*/
#endif /* PLAT_MACROS_S */
plat/allwinner/common/include/sunxi_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
__
SUNXI_DEF_H
__
#ifndef SUNXI_DEF_H
#define
__
SUNXI_DEF_H
__
#define SUNXI_DEF_H
/* Clock configuration */
/* Clock configuration */
#define SUNXI_OSC24M_CLK_IN_HZ 24000000
#define SUNXI_OSC24M_CLK_IN_HZ 24000000
...
@@ -18,4 +18,4 @@
...
@@ -18,4 +18,4 @@
#define SUNXI_SOC_H5 0x1718
#define SUNXI_SOC_H5 0x1718
#define SUNXI_SOC_H6 0x1728
#define SUNXI_SOC_H6 0x1728
#endif
/*
__
SUNXI_DEF_H
__
*/
#endif
/* SUNXI_DEF_H */
plat/allwinner/sun50i_a64/include/sunxi_cpucfg.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
__
SUNXI_CPUCFG_H
__
#ifndef SUNXI_CPUCFG_H
#define
__
SUNXI_CPUCFG_H
__
#define SUNXI_CPUCFG_H
#include <sunxi_mmap.h>
#include <sunxi_mmap.h>
...
@@ -33,4 +33,4 @@
...
@@ -33,4 +33,4 @@
#define SUNXI_R_CPUCFG_SS_ENTRY_REG (SUNXI_R_CPUCFG_BASE + 0x01a8)
#define SUNXI_R_CPUCFG_SS_ENTRY_REG (SUNXI_R_CPUCFG_BASE + 0x01a8)
#define SUNXI_R_CPUCFG_HP_FLAG_REG (SUNXI_R_CPUCFG_BASE + 0x01ac)
#define SUNXI_R_CPUCFG_HP_FLAG_REG (SUNXI_R_CPUCFG_BASE + 0x01ac)
#endif
/*
__
SUNXI_CPUCFG_H
__
*/
#endif
/* SUNXI_CPUCFG_H */
plat/allwinner/sun50i_a64/include/sunxi_mmap.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
__
SUNXI_MMAP_H
__
#ifndef SUNXI_MMAP_H
#define
__
SUNXI_MMAP_H
__
#define SUNXI_MMAP_H
/* Memory regions */
/* Memory regions */
#define SUNXI_ROM_BASE 0x00000000
#define SUNXI_ROM_BASE 0x00000000
...
@@ -71,4 +71,4 @@
...
@@ -71,4 +71,4 @@
#define SUNXI_R_RSB_BASE 0x01f03400
#define SUNXI_R_RSB_BASE 0x01f03400
#define SUNXI_R_PWM_BASE 0x01f03800
#define SUNXI_R_PWM_BASE 0x01f03800
#endif
/*
__
SUNXI_MMAP_H
__
*/
#endif
/* SUNXI_MMAP_H */
plat/allwinner/sun50i_h6/include/sunxi_cpucfg.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
__
SUNXI_CPUCFG_H
__
#ifndef SUNXI_CPUCFG_H
#define
__
SUNXI_CPUCFG_H
__
#define SUNXI_CPUCFG_H
#include <sunxi_mmap.h>
#include <sunxi_mmap.h>
...
@@ -24,4 +24,4 @@
...
@@ -24,4 +24,4 @@
#define SUNXI_CPU_POWER_CLAMP_REG(c, n) (SUNXI_R_CPUCFG_BASE + 0x0050 + \
#define SUNXI_CPU_POWER_CLAMP_REG(c, n) (SUNXI_R_CPUCFG_BASE + 0x0050 + \
(c) * 0x10 + (n) * 4)
(c) * 0x10 + (n) * 4)
#endif
/*
__
SUNXI_CPUCFG_H
__
*/
#endif
/* SUNXI_CPUCFG_H */
plat/allwinner/sun50i_h6/include/sunxi_mmap.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
__
SUNXI_MMAP_H
__
#ifndef SUNXI_MMAP_H
#define
__
SUNXI_MMAP_H
__
#define SUNXI_MMAP_H
/* Memory regions */
/* Memory regions */
#define SUNXI_ROM_BASE 0x00000000
#define SUNXI_ROM_BASE 0x00000000
...
@@ -58,4 +58,4 @@
...
@@ -58,4 +58,4 @@
#define SUNXI_R_UART_BASE 0x07080000
#define SUNXI_R_UART_BASE 0x07080000
#define SUNXI_R_PIO_BASE 0x07022000
#define SUNXI_R_PIO_BASE 0x07022000
#endif
/*
__
SUNXI_MMAP_H
__
*/
#endif
/* SUNXI_MMAP_H */
plat/arm/board/fvp/fvp_private.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
__
FVP_PRIVATE_H
__
#ifndef FVP_PRIVATE_H
#define
__
FVP_PRIVATE_H
__
#define FVP_PRIVATE_H
#include <plat_arm.h>
#include <plat_arm.h>
...
@@ -21,4 +21,4 @@ void fvp_interconnect_disable(void);
...
@@ -21,4 +21,4 @@ void fvp_interconnect_disable(void);
void
tsp_early_platform_setup
(
void
);
void
tsp_early_platform_setup
(
void
);
#endif
/*
__
FVP_PRIVATE_H
__
*/
#endif
/* FVP_PRIVATE_H */
plat/arm/board/fvp/include/plat.ld.S
View file @
9d068f66
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
*
*
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
*/
#ifndef
__
PLAT_LD_S
__
#ifndef PLAT_LD_S
#define
__
PLAT_LD_S
__
#define PLAT_LD_S
#include <arm_tzc_dram.ld.S>
#include <arm_tzc_dram.ld.S>
#include <arm_reclaim_init.ld.S>
#include <arm_reclaim_init.ld.S>
#endif /*
__
PLAT_LD_S
__
*/
#endif /* PLAT_LD_S */
plat/arm/board/fvp/include/plat_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
__
PLAT_MACROS_S
__
#ifndef PLAT_MACROS_S
#define
__
PLAT_MACROS_S
__
#define PLAT_MACROS_S
#include <arm_macros.S>
#include <arm_macros.S>
#include <v2m_def.h>
#include <v2m_def.h>
...
@@ -40,4 +40,4 @@ print_gic_regs:
...
@@ -40,4 +40,4 @@ print_gic_regs:
arm_print_gic_regs
arm_print_gic_regs
.
endm
.
endm
#endif /*
__
PLAT_MACROS_S
__
*/
#endif /* PLAT_MACROS_S */
plat/arm/board/juno/include/plat_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
__
PLAT_MACROS_S
__
#ifndef PLAT_MACROS_S
#define
__
PLAT_MACROS_S
__
#define PLAT_MACROS_S
#include <cci_macros.S>
#include <cci_macros.S>
#include <css_macros.S>
#include <css_macros.S>
...
@@ -21,4 +21,4 @@
...
@@ -21,4 +21,4 @@
print_cci_regs
print_cci_regs
.
endm
.
endm
#endif /*
__
PLAT_MACROS_S
__
*/
#endif /* PLAT_MACROS_S */
plat/arm/board/juno/juno_decl.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
__
JUNO_DECL_H
__
#ifndef JUNO_DECL_H
#define
__
JUNO_DECL_H
__
#define JUNO_DECL_H
int
juno_getentropy
(
void
*
buf
,
size_t
len
);
int
juno_getentropy
(
void
*
buf
,
size_t
len
);
#endif
/*
__
JUNO_DECL_H
__
*/
#endif
/* JUNO_DECL_H */
plat/arm/board/juno/juno_tzmp1_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
__
JUNO_TZMP1_DEF_H
__
#ifndef JUNO_TZMP1_DEF_H
#define
__
JUNO_TZMP1_DEF_H
__
#define JUNO_TZMP1_DEF_H
#include <plat_arm.h>
#include <plat_arm.h>
...
@@ -82,4 +82,4 @@
...
@@ -82,4 +82,4 @@
/* config to PROTCTRL register */
/* config to PROTCTRL register */
#define V550_PROTCTRL_CONFIG 0xa8700000
#define V550_PROTCTRL_CONFIG 0xa8700000
#endif
/*
__
JUNO_TZMP1_DEF_H
__
*/
#endif
/* JUNO_TZMP1_DEF_H */
plat/arm/board/n1sdp/include/plat_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
__
PLAT_MACROS_S
__
#ifndef PLAT_MACROS_S
#define
__
PLAT_MACROS_S
__
#define PLAT_MACROS_S
#include <css_macros.S>
#include <css_macros.S>
...
@@ -20,4 +20,5 @@
...
@@ -20,4 +20,5 @@
*/
*/
.
macro
plat_crash_print_regs
.
macro
plat_crash_print_regs
.
endm
.
endm
#endif /* __PLAT_MACROS_S__ */
#endif /* PLAT_MACROS_S */
plat/arm/board/n1sdp/include/platform_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
__
PLATFORM_DEF_H
__
#ifndef PLATFORM_DEF_H
#define
__
PLATFORM_DEF_H
__
#define PLATFORM_DEF_H
#include <arm_def.h>
#include <arm_def.h>
#include <board_css_def.h>
#include <board_css_def.h>
...
@@ -68,4 +68,5 @@
...
@@ -68,4 +68,5 @@
/* Platform ID address */
/* Platform ID address */
#define SSC_VERSION (SSC_REG_BASE + SSC_VERSION_OFFSET)
#define SSC_VERSION (SSC_REG_BASE + SSC_VERSION_OFFSET)
#endif
/* __PLATFORM_DEF_H__ */
#endif
/* PLATFORM_DEF_H */
Prev
1
…
9
10
11
12
13
14
15
16
17
…
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