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/common/fdt_wrappers.h
View file @
9d068f66
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
/* Helper functions to offer easier navigation of Device Tree Blob */
/* Helper functions to offer easier navigation of Device Tree Blob */
#ifndef
__
FDT_WRAPPERS_
_
#ifndef FDT_WRAPPERS_
H
#define
__
FDT_WRAPPERS_
_
#define FDT_WRAPPERS_
H
/* Number of cells, given total length in bytes. Each cell is 4 bytes long */
/* Number of cells, given total length in bytes. Each cell is 4 bytes long */
#define NCELLS(len) ((len) / 4U)
#define NCELLS(len) ((len) / 4U)
...
@@ -21,4 +21,4 @@ int fdtw_read_string(const void *dtb, int node, const char *prop,
...
@@ -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
,
int
fdtw_write_inplace_cells
(
void
*
dtb
,
int
node
,
const
char
*
prop
,
unsigned
int
cells
,
void
*
value
);
unsigned
int
cells
,
void
*
value
);
#endif
/*
__
FDT_WRAPPERS_
_
*/
#endif
/* FDT_WRAPPERS_
H
*/
include/common/image_decompress.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
__
IMAGE_DECOMPRESS_H
__
#ifndef IMAGE_DECOMPRESS_H
#define
__
IMAGE_DECOMPRESS_H
__
#define IMAGE_DECOMPRESS_H
#include <stddef.h>
#include <stddef.h>
#include <stdint.h>
#include <stdint.h>
...
@@ -21,4 +21,4 @@ void image_decompress_init(uintptr_t buf_base, uint32_t buf_size,
...
@@ -21,4 +21,4 @@ void image_decompress_init(uintptr_t buf_base, uint32_t buf_size,
void
image_decompress_prepare
(
struct
image_info
*
info
);
void
image_decompress_prepare
(
struct
image_info
*
info
);
int
image_decompress
(
struct
image_info
*
info
);
int
image_decompress
(
struct
image_info
*
info
);
#endif
/*
__
IMAGE_DECOMPRESS_H
___
*/
#endif
/* IMAGE_DECOMPRESS_H */
include/common/interrupt_props.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_PROPS_H
__
#ifndef INTERRUPT_PROPS_H
#define
__
INTERRUPT_PROPS_H
__
#define INTERRUPT_PROPS_H
#ifndef __ASSEMBLY__
#ifndef __ASSEMBLY__
...
@@ -26,4 +26,4 @@ typedef struct interrupt_prop {
...
@@ -26,4 +26,4 @@ typedef struct interrupt_prop {
}
interrupt_prop_t
;
}
interrupt_prop_t
;
#endif
/* __ASSEMBLY__ */
#endif
/* __ASSEMBLY__ */
#endif
/*
__
INTERRUPT_PROPS_H
__
*/
#endif
/* INTERRUPT_PROPS_H */
include/common/param_header.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
__
PARAM_HEADER_H
__
#ifndef PARAM_HEADER_H
#define
__
PARAM_HEADER_H
__
#define PARAM_HEADER_H
#include <stdbool.h>
#include <stdbool.h>
#include <utils_def.h>
#include <utils_def.h>
...
@@ -54,5 +54,4 @@ typedef struct param_header {
...
@@ -54,5 +54,4 @@ typedef struct param_header {
#endif
/*__ASSEMBLY__*/
#endif
/*__ASSEMBLY__*/
#endif
/* __PARAM_HEADER_H__ */
#endif
/* PARAM_HEADER_H */
include/common/romlib.h
View file @
9d068f66
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef ROMLIB_H_
#ifndef ROMLIB_H
#define ROMLIB_H
#define ROMLIB_MAJOR 0
#define ROMLIB_MAJOR 0
#define ROMLIB_MINOR 1
#define ROMLIB_MINOR 1
...
@@ -12,4 +13,4 @@
...
@@ -12,4 +13,4 @@
int
rom_lib_init
(
int
version
);
int
rom_lib_init
(
int
version
);
#endif
#endif
/* ROMLIB_H */
include/common/tbbr/cot_def.h
View file @
9d068f66
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
COT_DEF_H
__
#ifndef COT_DEF_H
#define
__
COT_DEF_H
__
#define COT_DEF_H
/* TBBR CoT definitions */
/* TBBR CoT definitions */
#define COT_MAX_VERIFIED_PARAMS 4
#define COT_MAX_VERIFIED_PARAMS 4
#endif
/*
__
COT_DEF_H
__
*/
#endif
/* COT_DEF_H */
include/common/tbbr/tbbr_img_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
__
TBBR_IMG_DEF_H
__
#ifndef TBBR_IMG_DEF_H
#define
__
TBBR_IMG_DEF_H
__
#define TBBR_IMG_DEF_H
#include <utils_def.h>
#include <utils_def.h>
...
@@ -86,4 +86,4 @@
...
@@ -86,4 +86,4 @@
/* Define size of the array */
/* Define size of the array */
#define MAX_NUMBER_IDS U(30)
#define MAX_NUMBER_IDS U(30)
#endif
/*
__
TBBR_IMG_DEF_H
__
*/
#endif
/* TBBR_IMG_DEF_H */
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);
...
@@ -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_read
(
uint8_t
rt_addr
,
uint8_t
reg_addr
);
int
rsb_write
(
uint8_t
rt_addr
,
uint8_t
reg_addr
,
uint8_t
value
);
int
rsb_write
(
uint8_t
rt_addr
,
uint8_t
reg_addr
,
uint8_t
value
);
#endif
#endif
/* SUNXI_RSB_H */
include/drivers/arm/arm_gicv3_common.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_GICV3_COMMON_H
__
#ifndef ARM_GICV3_COMMON_H
#define
__
ARM_GICV3_COMMON_H
__
#define ARM_GICV3_COMMON_H
/*******************************************************************************
/*******************************************************************************
* GIC500/GIC600 Re-distributor interface registers & constants
* GIC500/GIC600 Re-distributor interface registers & constants
...
@@ -17,4 +17,4 @@
...
@@ -17,4 +17,4 @@
#define WAKER_SL_BIT (1U << WAKER_SL_SHIFT)
#define WAKER_SL_BIT (1U << WAKER_SL_SHIFT)
#define WAKER_QSC_BIT (1U << WAKER_QSC_SHIFT)
#define WAKER_QSC_BIT (1U << WAKER_QSC_SHIFT)
#endif
/*
__
ARM_GICV3_COMMON_H
__
*/
#endif
/* ARM_GICV3_COMMON_H */
include/drivers/arm/cci.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
__
CCI_H
__
#ifndef CCI_H
#define
__
CCI_H
__
#define CCI_H
#include <utils_def.h>
#include <utils_def.h>
...
@@ -122,4 +122,4 @@ void cci_enable_snoop_dvm_reqs(unsigned int master_id);
...
@@ -122,4 +122,4 @@ void cci_enable_snoop_dvm_reqs(unsigned int master_id);
void
cci_disable_snoop_dvm_reqs
(
unsigned
int
master_id
);
void
cci_disable_snoop_dvm_reqs
(
unsigned
int
master_id
);
#endif
/* __ASSEMBLY__ */
#endif
/* __ASSEMBLY__ */
#endif
/*
__
CCI_H
__
*/
#endif
/* CCI_H */
include/drivers/arm/ccn.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
__
CCN_H
__
#ifndef CCN_H
#define
__
CCN_H
__
#define CCN_H
/*
/*
* This macro defines the maximum number of master interfaces that reside on
* This macro defines the maximum number of master interfaces that reside on
...
@@ -93,4 +93,4 @@ unsigned int ccn_get_l3_run_mode(void);
...
@@ -93,4 +93,4 @@ unsigned int ccn_get_l3_run_mode(void);
int
ccn_get_part0_id
(
uintptr_t
periphbase
);
int
ccn_get_part0_id
(
uintptr_t
periphbase
);
#endif
/* __ASSEMBLY__ */
#endif
/* __ASSEMBLY__ */
#endif
/*
__
CCN_H
__
*/
#endif
/* CCN_H */
include/drivers/arm/gic_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
__
GIC_COMMON_H
__
#ifndef GIC_COMMON_H
#define
__
GIC_COMMON_H
__
#define GIC_COMMON_H
#include <utils_def.h>
#include <utils_def.h>
...
@@ -100,4 +100,4 @@
...
@@ -100,4 +100,4 @@
(GIC_HIGHEST_NS_PRIORITY << 16) | \
(GIC_HIGHEST_NS_PRIORITY << 16) | \
(GIC_HIGHEST_NS_PRIORITY << 24))
(GIC_HIGHEST_NS_PRIORITY << 24))
#endif
/*
__
GIC_COMMON_H
__
*/
#endif
/* GIC_COMMON_H */
include/drivers/arm/gicv2.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
__
GICV2_H
__
#ifndef GICV2_H
#define
__
GICV2_H
__
#define GICV2_H
#include <gic_common.h>
#include <gic_common.h>
...
@@ -184,4 +184,4 @@ unsigned int gicv2_set_pmr(unsigned int mask);
...
@@ -184,4 +184,4 @@ unsigned int gicv2_set_pmr(unsigned int mask);
void
gicv2_interrupt_set_cfg
(
unsigned
int
id
,
unsigned
int
cfg
);
void
gicv2_interrupt_set_cfg
(
unsigned
int
id
,
unsigned
int
cfg
);
#endif
/* __ASSEMBLY__ */
#endif
/* __ASSEMBLY__ */
#endif
/*
__
GICV2_H
__
*/
#endif
/* GICV2_H */
include/drivers/arm/gicv3.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
__
GICV3_H
__
#ifndef GICV3_H
#define
__
GICV3_H
__
#define GICV3_H
/*******************************************************************************
/*******************************************************************************
* GICv3 miscellaneous definitions
* GICv3 miscellaneous definitions
...
@@ -405,4 +405,4 @@ void gicv3_clear_interrupt_pending(unsigned int id, unsigned int proc_num);
...
@@ -405,4 +405,4 @@ void gicv3_clear_interrupt_pending(unsigned int id, unsigned int proc_num);
unsigned
int
gicv3_set_pmr
(
unsigned
int
mask
);
unsigned
int
gicv3_set_pmr
(
unsigned
int
mask
);
#endif
/* __ASSEMBLY__ */
#endif
/* __ASSEMBLY__ */
#endif
/*
__
GICV3_H
__
*/
#endif
/* GICV3_H */
include/drivers/arm/nic_400.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
__
NIC_400_H
__
#ifndef NIC_400_H
#define
__
NIC_400_H
__
#define NIC_400_H
/*
/*
* Address of slave 'n' security setting in the NIC-400 address region
* Address of slave 'n' security setting in the NIC-400 address region
...
@@ -13,4 +13,4 @@
...
@@ -13,4 +13,4 @@
*/
*/
#define NIC400_ADDR_CTRL_SECURITY_REG(n) (0x8 + (n) * 4)
#define NIC400_ADDR_CTRL_SECURITY_REG(n) (0x8 + (n) * 4)
#endif
/*
__
NIC_400_H
__
*/
#endif
/* NIC_400_H */
include/drivers/arm/pl011.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
__
PL011_H
__
#ifndef PL011_H
#define
__
PL011_H
__
#define PL011_H
#include <console.h>
#include <console.h>
...
@@ -103,4 +103,4 @@ int console_pl011_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
...
@@ -103,4 +103,4 @@ int console_pl011_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
#endif
/*__ASSEMBLY__*/
#endif
/*__ASSEMBLY__*/
#endif
/*
__
PL011_H
__
*/
#endif
/* PL011_H */
include/drivers/arm/pl061_gpio.h
View file @
9d068f66
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
PL061_GPIO_H
__
#ifndef PL061_GPIO_H
#define
__
PL061_GPIO_H
__
#define PL061_GPIO_H
#include <gpio.h>
#include <gpio.h>
void
pl061_gpio_register
(
uintptr_t
base_addr
,
int
gpio_dev
);
void
pl061_gpio_register
(
uintptr_t
base_addr
,
int
gpio_dev
);
void
pl061_gpio_init
(
void
);
void
pl061_gpio_init
(
void
);
#endif
/*
__
PL061_GPIO_H
__
*/
#endif
/* PL061_GPIO_H */
include/drivers/arm/smmu_v3.h
View file @
9d068f66
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
SMMU_V3_H
__
#ifndef SMMU_V3_H
#define
__
SMMU_V3_H
__
#define SMMU_V3_H
#include <utils_def.h>
#include <stdint.h>
#include <stdint.h>
#include <utils_def.h>
/* SMMUv3 register offsets from device base */
/* SMMUv3 register offsets from device base */
#define SMMU_S_IDR1 U(0x8004)
#define SMMU_S_IDR1 U(0x8004)
...
@@ -24,4 +24,4 @@
...
@@ -24,4 +24,4 @@
int
smmuv3_init
(
uintptr_t
smmu_base
);
int
smmuv3_init
(
uintptr_t
smmu_base
);
#endif
/*
__
SMMU_V3_H
__
*/
#endif
/* SMMU_V3_H */
include/drivers/arm/sp804_delay_timer.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
__
SP804_DELAY_TIMER_H
__
#ifndef SP804_DELAY_TIMER_H
#define
__
SP804_DELAY_TIMER_H
__
#define SP804_DELAY_TIMER_H
#include <delay_timer.h>
#include <delay_timer.h>
#include <stdint.h>
#include <stdint.h>
...
@@ -25,4 +25,4 @@ void sp804_timer_ops_init(uintptr_t base_addr, const timer_ops_t *ops);
...
@@ -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); \
sp804_timer_ops_init((base_addr), &sp804_timer_ops); \
} while (0)
} while (0)
#endif
/*
__
SP804_DELAY_TIMER_H
__
*/
#endif
/* SP804_DELAY_TIMER_H */
include/drivers/auth/auth_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
__
AUTH_COMMON_H
__
#ifndef AUTH_COMMON_H
#define
__
AUTH_COMMON_H
__
#define AUTH_COMMON_H
/*
/*
* Authentication framework common types
* Authentication framework common types
...
@@ -117,4 +117,4 @@ typedef struct auth_method_desc_s {
...
@@ -117,4 +117,4 @@ typedef struct auth_method_desc_s {
.len = (unsigned int)_len \
.len = (unsigned int)_len \
}
}
#endif
/*
__
AUTH_COMMON_H
__
*/
#endif
/* AUTH_COMMON_H */
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