Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
6 years ago
by
Antonio Niño Díaz
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1673 from antonio-nino-diaz-arm/an/headers
Standardise header guards across codebase
parents
f5ae1b0e
c3cf06f1
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
508
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
include/common/fdt_wrappers.h
+3
-3
include/common/fdt_wrappers.h
include/common/image_decompress.h
+3
-3
include/common/image_decompress.h
include/common/interrupt_props.h
+3
-3
include/common/interrupt_props.h
include/common/param_header.h
+3
-4
include/common/param_header.h
include/common/romlib.h
+3
-2
include/common/romlib.h
include/common/tbbr/cot_def.h
+3
-3
include/common/tbbr/cot_def.h
include/common/tbbr/tbbr_img_def.h
+3
-3
include/common/tbbr/tbbr_img_def.h
include/drivers/allwinner/sunxi_rsb.h
+1
-1
include/drivers/allwinner/sunxi_rsb.h
include/drivers/arm/arm_gicv3_common.h
+3
-3
include/drivers/arm/arm_gicv3_common.h
include/drivers/arm/cci.h
+3
-3
include/drivers/arm/cci.h
include/drivers/arm/ccn.h
+3
-3
include/drivers/arm/ccn.h
include/drivers/arm/gic_common.h
+3
-3
include/drivers/arm/gic_common.h
include/drivers/arm/gicv2.h
+3
-3
include/drivers/arm/gicv2.h
include/drivers/arm/gicv3.h
+3
-3
include/drivers/arm/gicv3.h
include/drivers/arm/nic_400.h
+3
-3
include/drivers/arm/nic_400.h
include/drivers/arm/pl011.h
+3
-3
include/drivers/arm/pl011.h
include/drivers/arm/pl061_gpio.h
+3
-3
include/drivers/arm/pl061_gpio.h
include/drivers/arm/smmu_v3.h
+4
-4
include/drivers/arm/smmu_v3.h
include/drivers/arm/sp804_delay_timer.h
+3
-3
include/drivers/arm/sp804_delay_timer.h
include/drivers/auth/auth_common.h
+3
-3
include/drivers/auth/auth_common.h
with
59 additions
and
59 deletions
+59
-59
include/common/fdt_wrappers.h
View file @
9d068f66
...
...
@@ -6,8 +6,8 @@
/* Helper functions to offer easier navigation of Device Tree Blob */
#ifndef
__
FDT_WRAPPERS_
_
#define
__
FDT_WRAPPERS_
_
#ifndef FDT_WRAPPERS_
H
#define FDT_WRAPPERS_
H
/* Number of cells, given total length in bytes. Each cell is 4 bytes long */
#define NCELLS(len) ((len) / 4U)
...
...
@@ -21,4 +21,4 @@ int fdtw_read_string(const void *dtb, int node, const char *prop,
int
fdtw_write_inplace_cells
(
void
*
dtb
,
int
node
,
const
char
*
prop
,
unsigned
int
cells
,
void
*
value
);
#endif
/*
__
FDT_WRAPPERS_
_
*/
#endif
/* FDT_WRAPPERS_
H
*/
This diff is collapsed.
Click to expand it.
include/common/image_decompress.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
IMAGE_DECOMPRESS_H
__
#define
__
IMAGE_DECOMPRESS_H
__
#ifndef IMAGE_DECOMPRESS_H
#define IMAGE_DECOMPRESS_H
#include <stddef.h>
#include <stdint.h>
...
...
@@ -21,4 +21,4 @@ void image_decompress_init(uintptr_t buf_base, uint32_t buf_size,
void
image_decompress_prepare
(
struct
image_info
*
info
);
int
image_decompress
(
struct
image_info
*
info
);
#endif
/*
__
IMAGE_DECOMPRESS_H
___
*/
#endif
/* IMAGE_DECOMPRESS_H */
This diff is collapsed.
Click to expand it.
include/common/interrupt_props.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
INTERRUPT_PROPS_H
__
#define
__
INTERRUPT_PROPS_H
__
#ifndef INTERRUPT_PROPS_H
#define INTERRUPT_PROPS_H
#ifndef __ASSEMBLY__
...
...
@@ -26,4 +26,4 @@ typedef struct interrupt_prop {
}
interrupt_prop_t
;
#endif
/* __ASSEMBLY__ */
#endif
/*
__
INTERRUPT_PROPS_H
__
*/
#endif
/* INTERRUPT_PROPS_H */
This diff is collapsed.
Click to expand it.
include/common/param_header.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
PARAM_HEADER_H
__
#define
__
PARAM_HEADER_H
__
#ifndef PARAM_HEADER_H
#define PARAM_HEADER_H
#include <stdbool.h>
#include <utils_def.h>
...
...
@@ -54,5 +54,4 @@ typedef struct param_header {
#endif
/*__ASSEMBLY__*/
#endif
/* __PARAM_HEADER_H__ */
#endif
/* PARAM_HEADER_H */
This diff is collapsed.
Click to expand it.
include/common/romlib.h
View file @
9d068f66
...
...
@@ -4,7 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef ROMLIB_H_
#ifndef ROMLIB_H
#define ROMLIB_H
#define ROMLIB_MAJOR 0
#define ROMLIB_MINOR 1
...
...
@@ -12,4 +13,4 @@
int
rom_lib_init
(
int
version
);
#endif
#endif
/* ROMLIB_H */
This diff is collapsed.
Click to expand it.
include/common/tbbr/cot_def.h
View file @
9d068f66
...
...
@@ -4,11 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
COT_DEF_H
__
#define
__
COT_DEF_H
__
#ifndef COT_DEF_H
#define COT_DEF_H
/* TBBR CoT definitions */
#define COT_MAX_VERIFIED_PARAMS 4
#endif
/*
__
COT_DEF_H
__
*/
#endif
/* COT_DEF_H */
This diff is collapsed.
Click to expand it.
include/common/tbbr/tbbr_img_def.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
TBBR_IMG_DEF_H
__
#define
__
TBBR_IMG_DEF_H
__
#ifndef TBBR_IMG_DEF_H
#define TBBR_IMG_DEF_H
#include <utils_def.h>
...
...
@@ -86,4 +86,4 @@
/* Define size of the array */
#define MAX_NUMBER_IDS U(30)
#endif
/*
__
TBBR_IMG_DEF_H
__
*/
#endif
/* TBBR_IMG_DEF_H */
This diff is collapsed.
Click to expand it.
include/drivers/allwinner/sunxi_rsb.h
View file @
9d068f66
...
...
@@ -17,4 +17,4 @@ int rsb_assign_runtime_address(uint16_t hw_addr, uint8_t rt_addr);
int
rsb_read
(
uint8_t
rt_addr
,
uint8_t
reg_addr
);
int
rsb_write
(
uint8_t
rt_addr
,
uint8_t
reg_addr
,
uint8_t
value
);
#endif
#endif
/* SUNXI_RSB_H */
This diff is collapsed.
Click to expand it.
include/drivers/arm/arm_gicv3_common.h
View file @
9d068f66
...
...
@@ -3,8 +3,8 @@
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
ARM_GICV3_COMMON_H
__
#define
__
ARM_GICV3_COMMON_H
__
#ifndef ARM_GICV3_COMMON_H
#define ARM_GICV3_COMMON_H
/*******************************************************************************
* GIC500/GIC600 Re-distributor interface registers & constants
...
...
@@ -17,4 +17,4 @@
#define WAKER_SL_BIT (1U << WAKER_SL_SHIFT)
#define WAKER_QSC_BIT (1U << WAKER_QSC_SHIFT)
#endif
/*
__
ARM_GICV3_COMMON_H
__
*/
#endif
/* ARM_GICV3_COMMON_H */
This diff is collapsed.
Click to expand it.
include/drivers/arm/cci.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
CCI_H
__
#define
__
CCI_H
__
#ifndef CCI_H
#define CCI_H
#include <utils_def.h>
...
...
@@ -122,4 +122,4 @@ void cci_enable_snoop_dvm_reqs(unsigned int master_id);
void
cci_disable_snoop_dvm_reqs
(
unsigned
int
master_id
);
#endif
/* __ASSEMBLY__ */
#endif
/*
__
CCI_H
__
*/
#endif
/* CCI_H */
This diff is collapsed.
Click to expand it.
include/drivers/arm/ccn.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
CCN_H
__
#define
__
CCN_H
__
#ifndef CCN_H
#define CCN_H
/*
* This macro defines the maximum number of master interfaces that reside on
...
...
@@ -93,4 +93,4 @@ unsigned int ccn_get_l3_run_mode(void);
int
ccn_get_part0_id
(
uintptr_t
periphbase
);
#endif
/* __ASSEMBLY__ */
#endif
/*
__
CCN_H
__
*/
#endif
/* CCN_H */
This diff is collapsed.
Click to expand it.
include/drivers/arm/gic_common.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
GIC_COMMON_H
__
#define
__
GIC_COMMON_H
__
#ifndef GIC_COMMON_H
#define GIC_COMMON_H
#include <utils_def.h>
...
...
@@ -100,4 +100,4 @@
(GIC_HIGHEST_NS_PRIORITY << 16) | \
(GIC_HIGHEST_NS_PRIORITY << 24))
#endif
/*
__
GIC_COMMON_H
__
*/
#endif
/* GIC_COMMON_H */
This diff is collapsed.
Click to expand it.
include/drivers/arm/gicv2.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
GICV2_H
__
#define
__
GICV2_H
__
#ifndef GICV2_H
#define GICV2_H
#include <gic_common.h>
...
...
@@ -184,4 +184,4 @@ unsigned int gicv2_set_pmr(unsigned int mask);
void
gicv2_interrupt_set_cfg
(
unsigned
int
id
,
unsigned
int
cfg
);
#endif
/* __ASSEMBLY__ */
#endif
/*
__
GICV2_H
__
*/
#endif
/* GICV2_H */
This diff is collapsed.
Click to expand it.
include/drivers/arm/gicv3.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
GICV3_H
__
#define
__
GICV3_H
__
#ifndef GICV3_H
#define GICV3_H
/*******************************************************************************
* GICv3 miscellaneous definitions
...
...
@@ -405,4 +405,4 @@ void gicv3_clear_interrupt_pending(unsigned int id, unsigned int proc_num);
unsigned
int
gicv3_set_pmr
(
unsigned
int
mask
);
#endif
/* __ASSEMBLY__ */
#endif
/*
__
GICV3_H
__
*/
#endif
/* GICV3_H */
This diff is collapsed.
Click to expand it.
include/drivers/arm/nic_400.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
NIC_400_H
__
#define
__
NIC_400_H
__
#ifndef NIC_400_H
#define NIC_400_H
/*
* Address of slave 'n' security setting in the NIC-400 address region
...
...
@@ -13,4 +13,4 @@
*/
#define NIC400_ADDR_CTRL_SECURITY_REG(n) (0x8 + (n) * 4)
#endif
/*
__
NIC_400_H
__
*/
#endif
/* NIC_400_H */
This diff is collapsed.
Click to expand it.
include/drivers/arm/pl011.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
PL011_H
__
#define
__
PL011_H
__
#ifndef PL011_H
#define PL011_H
#include <console.h>
...
...
@@ -103,4 +103,4 @@ int console_pl011_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
#endif
/*__ASSEMBLY__*/
#endif
/*
__
PL011_H
__
*/
#endif
/* PL011_H */
This diff is collapsed.
Click to expand it.
include/drivers/arm/pl061_gpio.h
View file @
9d068f66
...
...
@@ -4,12 +4,12 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
PL061_GPIO_H
__
#define
__
PL061_GPIO_H
__
#ifndef PL061_GPIO_H
#define PL061_GPIO_H
#include <gpio.h>
void
pl061_gpio_register
(
uintptr_t
base_addr
,
int
gpio_dev
);
void
pl061_gpio_init
(
void
);
#endif
/*
__
PL061_GPIO_H
__
*/
#endif
/* PL061_GPIO_H */
This diff is collapsed.
Click to expand it.
include/drivers/arm/smmu_v3.h
View file @
9d068f66
...
...
@@ -4,11 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
SMMU_V3_H
__
#define
__
SMMU_V3_H
__
#ifndef SMMU_V3_H
#define SMMU_V3_H
#include <utils_def.h>
#include <stdint.h>
#include <utils_def.h>
/* SMMUv3 register offsets from device base */
#define SMMU_S_IDR1 U(0x8004)
...
...
@@ -24,4 +24,4 @@
int
smmuv3_init
(
uintptr_t
smmu_base
);
#endif
/*
__
SMMU_V3_H
__
*/
#endif
/* SMMU_V3_H */
This diff is collapsed.
Click to expand it.
include/drivers/arm/sp804_delay_timer.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
SP804_DELAY_TIMER_H
__
#define
__
SP804_DELAY_TIMER_H
__
#ifndef SP804_DELAY_TIMER_H
#define SP804_DELAY_TIMER_H
#include <delay_timer.h>
#include <stdint.h>
...
...
@@ -25,4 +25,4 @@ void sp804_timer_ops_init(uintptr_t base_addr, const timer_ops_t *ops);
sp804_timer_ops_init((base_addr), &sp804_timer_ops); \
} while (0)
#endif
/*
__
SP804_DELAY_TIMER_H
__
*/
#endif
/* SP804_DELAY_TIMER_H */
This diff is collapsed.
Click to expand it.
include/drivers/auth/auth_common.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
AUTH_COMMON_H
__
#define
__
AUTH_COMMON_H
__
#ifndef AUTH_COMMON_H
#define AUTH_COMMON_H
/*
* Authentication framework common types
...
...
@@ -117,4 +117,4 @@ typedef struct auth_method_desc_s {
.len = (unsigned int)_len \
}
#endif
/*
__
AUTH_COMMON_H
__
*/
#endif
/* AUTH_COMMON_H */
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
6
7
8
9
…
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
Menu
Projects
Groups
Snippets
Help