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
bl1/bl1_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
__
BL1_PRIVATE_H
__
#ifndef BL1_PRIVATE_H
#define
__
BL1_PRIVATE_H
__
#define BL1_PRIVATE_H
#include <stdint.h>
#include <stdint.h>
#include <utils_def.h>
#include <utils_def.h>
...
@@ -35,4 +35,4 @@ register_t bl1_fwu_smc_handler(unsigned int smc_fid,
...
@@ -35,4 +35,4 @@ register_t bl1_fwu_smc_handler(unsigned int smc_fid,
void
*
cookie
,
void
*
cookie
,
void
*
handle
,
void
*
handle
,
unsigned
int
flags
);
unsigned
int
flags
);
#endif
/*
__
BL1_PRIVATE_H
__
*/
#endif
/* BL1_PRIVATE_H */
bl2/bl2_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
__
BL2_PRIVATE_H
__
#ifndef BL2_PRIVATE_H
#define
__
BL2_PRIVATE_H
__
#define BL2_PRIVATE_H
#if BL2_IN_XIP_MEM
#if BL2_IN_XIP_MEM
/*******************************************************************************
/*******************************************************************************
...
@@ -33,4 +33,4 @@ void bl2_arch_setup(void);
...
@@ -33,4 +33,4 @@ void bl2_arch_setup(void);
struct
entry_point_info
*
bl2_load_images
(
void
);
struct
entry_point_info
*
bl2_load_images
(
void
);
void
bl2_run_next_image
(
const
struct
entry_point_info
*
bl_ep_info
);
void
bl2_run_next_image
(
const
struct
entry_point_info
*
bl_ep_info
);
#endif
/*
__
BL2_PRIVATE_H
__
*/
#endif
/* BL2_PRIVATE_H */
bl32/sp_min/sp_min_private.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
__
SP_MIN_
H__
#ifndef SP_MIN_
PRIVATE_H
#define
__
SP_MIN_
H__
#define SP_MIN_
PRIVATE_H
void
sp_min_warm_entrypoint
(
void
);
void
sp_min_warm_entrypoint
(
void
);
void
sp_min_main
(
void
);
void
sp_min_main
(
void
);
void
sp_min_warm_boot
(
void
);
void
sp_min_warm_boot
(
void
);
void
sp_min_fiq
(
void
);
void
sp_min_fiq
(
void
);
#endif
/*
__
SP_MIN_
H__
*/
#endif
/* SP_MIN_
PRIVATE_H
*/
bl32/tsp/tsp_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
__
TSP_PRIVATE_H
__
#ifndef TSP_PRIVATE_H
#define
__
TSP_PRIVATE_H
__
#define TSP_PRIVATE_H
/* Definitions to help the assembler access the SMC/ERET args structure */
/* Definitions to help the assembler access the SMC/ERET args structure */
#define TSP_ARGS_SIZE 0x40
#define TSP_ARGS_SIZE 0x40
...
@@ -149,5 +149,4 @@ tsp_args_t *tsp_system_off_main(uint64_t arg0,
...
@@ -149,5 +149,4 @@ tsp_args_t *tsp_system_off_main(uint64_t arg0,
uint64_t
tsp_main
(
void
);
uint64_t
tsp_main
(
void
);
#endif
/* __ASSEMBLY__ */
#endif
/* __ASSEMBLY__ */
#endif
/* __TSP_PRIVATE_H__ */
#endif
/* TSP_PRIVATE_H */
drivers/arm/ccn/ccn_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
__
CCN_PRIVATE_H
__
#ifndef CCN_PRIVATE_H
#define
__
CCN_PRIVATE_H
__
#define CCN_PRIVATE_H
/*
/*
* A CCN implementation can have a maximum of 64 Request nodes with node IDs
* A CCN implementation can have a maximum of 64 Request nodes with node IDs
...
@@ -230,4 +230,4 @@ static inline unsigned int count_set_bits(unsigned long long bitmap)
...
@@ -230,4 +230,4 @@ static inline unsigned int count_set_bits(unsigned long long bitmap)
#define CCN_GET_HN_NODEID_MAP(periphbase, mn_hn_id_reg_offset) \
#define CCN_GET_HN_NODEID_MAP(periphbase, mn_hn_id_reg_offset) \
ccn_reg_read(periphbase, MN_REGION_ID, mn_hn_id_reg_offset)
ccn_reg_read(periphbase, MN_REGION_ID, mn_hn_id_reg_offset)
#endif
/*
__
CCN_PRIVATE_H
__
*/
#endif
/* CCN_PRIVATE_H */
drivers/arm/gic/common/gic_common_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 GIC_COMMON_PRIVATE_H
_
#ifndef GIC_COMMON_PRIVATE_H
#define GIC_COMMON_PRIVATE_H
_
#define GIC_COMMON_PRIVATE_H
#include <gic_common.h>
#include <gic_common.h>
#include <mmio.h>
#include <mmio.h>
...
@@ -85,4 +85,4 @@ void gicd_set_icactiver(uintptr_t base, unsigned int id);
...
@@ -85,4 +85,4 @@ void gicd_set_icactiver(uintptr_t base, unsigned int id);
void
gicd_set_ipriorityr
(
uintptr_t
base
,
unsigned
int
id
,
unsigned
int
pri
);
void
gicd_set_ipriorityr
(
uintptr_t
base
,
unsigned
int
id
,
unsigned
int
pri
);
void
gicd_set_icfgr
(
uintptr_t
base
,
unsigned
int
id
,
unsigned
int
cfg
);
void
gicd_set_icfgr
(
uintptr_t
base
,
unsigned
int
id
,
unsigned
int
cfg
);
#endif
/* GIC_COMMON_PRIVATE_H
_
*/
#endif
/* GIC_COMMON_PRIVATE_H */
drivers/arm/gic/v2/gicv2_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
__
GICV2_PRIVATE_H
__
#ifndef GICV2_PRIVATE_H
#define
__
GICV2_PRIVATE_H
__
#define GICV2_PRIVATE_H
#include <gicv2.h>
#include <gicv2.h>
#include <mmio.h>
#include <mmio.h>
...
@@ -146,4 +146,4 @@ static inline void gicc_write_dir(uintptr_t base, unsigned int val)
...
@@ -146,4 +146,4 @@ static inline void gicc_write_dir(uintptr_t base, unsigned int val)
mmio_write_32
(
base
+
GICC_DIR
,
val
);
mmio_write_32
(
base
+
GICC_DIR
,
val
);
}
}
#endif
/*
__
GICV2_PRIVATE_H
__
*/
#endif
/* GICV2_PRIVATE_H */
drivers/arm/gic/v3/gicv3_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
__
GICV3_PRIVATE_H
__
#ifndef GICV3_PRIVATE_H
#define
__
GICV3_PRIVATE_H
__
#define GICV3_PRIVATE_H
#include <assert.h>
#include <assert.h>
#include <gic_common.h>
#include <gic_common.h>
...
@@ -387,4 +387,4 @@ static inline void gits_wait_for_quiescent_bit(uintptr_t gits_base)
...
@@ -387,4 +387,4 @@ static inline void gits_wait_for_quiescent_bit(uintptr_t gits_base)
}
}
#endif
/*
__
GICV3_PRIVATE_H
__
*/
#endif
/* GICV3_PRIVATE_H */
drivers/imx/timer/imx_gpt.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
__
IMX_GPT_H
__
#ifndef IMX_GPT_H
#define
__
IMX_GPT_H
__
#define IMX_GPT_H
#include <stdint.h>
#include <stdint.h>
void
imx_gpt_ops_init
(
uintptr_t
reg_base
);
void
imx_gpt_ops_init
(
uintptr_t
reg_base
);
#endif
/*
__
IMX_GPT_H
__
*/
#endif
/* IMX_GPT_H */
drivers/imx/uart/imx_uart.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
__
IMX_
CONSOLE_H__
#ifndef IMX_
UART_H
#define
__
IMX_
CONSOLE_H__
#define IMX_
UART_H
#define IMX_UART_RXD_OFFSET 0x00
#define IMX_UART_RXD_OFFSET 0x00
#define IMX_UART_RXD_CHARRDY BIT(15)
#define IMX_UART_RXD_CHARRDY BIT(15)
...
@@ -150,4 +150,4 @@
...
@@ -150,4 +150,4 @@
#define IMX_UART_TS_RXFULL BIT(3)
#define IMX_UART_TS_RXFULL BIT(3)
#define IMX_UART_TS_SOFTRST BIT(0)
#define IMX_UART_TS_SOFTRST BIT(0)
#endif
/*
__
IMX_UART_H
__
*/
#endif
/* IMX_UART_H */
drivers/imx/usdhc/imx_usdhc.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
__
IMX_USDHC_H
__
#ifndef IMX_USDHC_H
#define
__
IMX_USDHC_H
__
#define
IMX_USDHC_H
#include <mmc.h>
#include <mmc.h>
...
@@ -134,4 +134,4 @@ void imx_usdhc_init(imx_usdhc_params_t *params,
...
@@ -134,4 +134,4 @@ void imx_usdhc_init(imx_usdhc_params_t *params,
#define mmio_clrbits32(addr, clear) mmio_write_32(addr, mmio_read_32(addr) & ~(clear))
#define mmio_clrbits32(addr, clear) mmio_write_32(addr, mmio_read_32(addr) & ~(clear))
#define mmio_setbits32(addr, set) mmio_write_32(addr, mmio_read_32(addr) | (set))
#define mmio_setbits32(addr, set) mmio_write_32(addr, mmio_read_32(addr) | (set))
#endif
/*
__
IMX_USDHC_H
__
*/
#endif
/* IMX_USDHC_H */
drivers/marvell/comphy.h
View file @
9d068f66
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
/* Driver for COMPHY unit that is part or Marvell A8K SoCs */
/* Driver for COMPHY unit that is part or Marvell A8K SoCs */
#ifndef
_
COMPHY_H
_
#ifndef COMPHY_H
#define
_
COMPHY_H
_
#define COMPHY_H
/* COMPHY registers */
/* COMPHY registers */
#define COMMON_PHY_CFG1_REG 0x0
#define COMMON_PHY_CFG1_REG 0x0
...
@@ -469,5 +469,4 @@
...
@@ -469,5 +469,4 @@
#define HPIPE_GLOBAL_PM_RXDLOZ_WAIT_MASK \
#define HPIPE_GLOBAL_PM_RXDLOZ_WAIT_MASK \
(0xFF << HPIPE_GLOBAL_PM_RXDLOZ_WAIT_OFFSET)
(0xFF << HPIPE_GLOBAL_PM_RXDLOZ_WAIT_OFFSET)
#endif
/* _COMPHY_H_ */
#endif
/* COMPHY_H */
drivers/marvell/comphy/comphy-cp110.h
View file @
9d068f66
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
/* Marvell CP110 SoC COMPHY unit driver */
/* Marvell CP110 SoC COMPHY unit driver */
#ifndef
_PHY_
COMPHY_CP110_H
#ifndef COMPHY_CP110_H
#define
_PHY_
COMPHY_CP110_H
#define COMPHY_CP110_H
#define SD_ADDR(base, lane) (base + 0x1000 * lane)
#define SD_ADDR(base, lane) (base + 0x1000 * lane)
#define HPIPE_ADDR(base, lane) (SD_ADDR(base, lane) + 0x800)
#define HPIPE_ADDR(base, lane) (SD_ADDR(base, lane) + 0x800)
...
@@ -862,5 +862,4 @@
...
@@ -862,5 +862,4 @@
/* General defines */
/* General defines */
#define PLL_LOCK_TIMEOUT 15000
#define PLL_LOCK_TIMEOUT 15000
#endif
/* _PHY_COMPHY_CP110_H */
#endif
/* COMPHY_CP110_H */
drivers/marvell/comphy/phy-comphy-3700.h
View file @
9d068f66
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
* https://spdx.org/licenses
*/
*/
#ifndef
_
PHY_COMPHY_3700_H
#ifndef PHY_COMPHY_3700_H
#define
_
PHY_COMPHY_3700_H
#define PHY_COMPHY_3700_H
#define PLL_SET_DELAY_US 600
#define PLL_SET_DELAY_US 600
#define COMPHY_PLL_TIMEOUT 1000
#define COMPHY_PLL_TIMEOUT 1000
...
@@ -255,4 +255,4 @@ enum {
...
@@ -255,4 +255,4 @@ enum {
int
mvebu_3700_comphy_is_pll_locked
(
uint8_t
comphy_index
,
uint32_t
comphy_mode
);
int
mvebu_3700_comphy_is_pll_locked
(
uint8_t
comphy_index
,
uint32_t
comphy_mode
);
int
mvebu_3700_comphy_power_off
(
uint8_t
comphy_index
,
uint32_t
comphy_mode
);
int
mvebu_3700_comphy_power_off
(
uint8_t
comphy_index
,
uint32_t
comphy_mode
);
int
mvebu_3700_comphy_power_on
(
uint8_t
comphy_index
,
uint32_t
comphy_mode
);
int
mvebu_3700_comphy_power_on
(
uint8_t
comphy_index
,
uint32_t
comphy_mode
);
#endif
/*
_
PHY_COMPHY_3700_H */
#endif
/* PHY_COMPHY_3700_H */
drivers/marvell/comphy/phy-comphy-common.h
View file @
9d068f66
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
/* Marvell CP110 ana A3700 common */
/* Marvell CP110 ana A3700 common */
#ifndef
_
PHY_COMPHY_COMMON_H
#ifndef PHY_COMPHY_COMMON_H
#define
_
PHY_COMPHY_COMMON_H
#define PHY_COMPHY_COMMON_H
/* #define DEBUG_COMPHY */
/* #define DEBUG_COMPHY */
#ifdef DEBUG_COMPHY
#ifdef DEBUG_COMPHY
...
@@ -153,4 +153,4 @@ static inline void __unused reg_set16(uintptr_t addr, uint16_t data,
...
@@ -153,4 +153,4 @@ static inline void __unused reg_set16(uintptr_t addr, uint16_t data,
debug
(
"new val 0x%x
\n
"
,
mmio_read_16
(
addr
));
debug
(
"new val 0x%x
\n
"
,
mmio_read_16
(
addr
));
}
}
#endif
/*
_
PHY_COMPHY_COMMON_H */
#endif
/* PHY_COMPHY_COMMON_H */
drivers/marvell/comphy/phy-default-porting-layer.h
View file @
9d068f66
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
* https://spdx.org/licenses
*/
*/
#ifndef
__
PHY_DEFAULT_PORTING_LAYER_H
#ifndef PHY_DEFAULT_PORTING_LAYER_H
#define
__
PHY_DEFAULT_PORTING_LAYER_H
#define PHY_DEFAULT_PORTING_LAYER_H
#define MAX_LANE_NR 6
#define MAX_LANE_NR 6
...
@@ -48,4 +48,4 @@ static const struct sata_params
...
@@ -48,4 +48,4 @@ static const struct sata_params
.
valid
=
0x1
.
valid
=
0x1
},
},
};
};
#endif
/*
__
PHY_DEFAULT_PORTING_LAYER_H */
#endif
/* PHY_DEFAULT_PORTING_LAYER_H */
drivers/marvell/mc_trustzone/mc_trustzone.h
View file @
9d068f66
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
* https://spdx.org/licenses
*/
*/
#ifndef
_
MC_TRUSTZONE_H
#ifndef MC_TRUSTZONE_H
#define
_
MC_TRUSTZONE_H
#define MC_TRUSTZONE_H
#include <addr_map.h>
#include <addr_map.h>
...
@@ -24,4 +24,4 @@
...
@@ -24,4 +24,4 @@
void
tz_enable_win
(
int
ap_index
,
const
struct
addr_map_win
*
win
,
int
win_id
);
void
tz_enable_win
(
int
ap_index
,
const
struct
addr_map_win
*
win
,
int
win_id
);
#endif
/*
_
MC_TRUSTZONE_H */
#endif
/* MC_TRUSTZONE_H */
drivers/marvell/uart/a3700_console.h
View file @
9d068f66
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
* https://spdx.org/licenses
* https://spdx.org/licenses
*/
*/
#ifndef
__
A3700_CONSOLE_H
__
#ifndef A3700_CONSOLE_H
#define
__
A3700_CONSOLE_H
__
#define A3700_CONSOLE_H
/* MVEBU UART Registers */
/* MVEBU UART Registers */
#define UART_RX_REG 0x00
#define UART_RX_REG 0x00
...
@@ -52,4 +52,4 @@
...
@@ -52,4 +52,4 @@
#define UART_CTRL_TXFIFO_RESET (1 << 15)
#define UART_CTRL_TXFIFO_RESET (1 << 15)
#define UARTLSR_TXFIFOEMPTY (1 << 6)
#define UARTLSR_TXFIFOEMPTY (1 << 6)
#endif
/*
__
A3700_CONSOLE_H
__
*/
#endif
/* A3700_CONSOLE_H */
drivers/renesas/rcar/avs/avs_driver.h
View file @
9d068f66
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef AVS_DRIVER_H
__
#ifndef AVS_DRIVER_H
#define AVS_DRIVER_H
__
#define AVS_DRIVER_H
/* AVS Setting. 1:enable / 0:disable */
/* AVS Setting. 1:enable / 0:disable */
#ifndef AVS_SETTING_ENABLE
#ifndef AVS_SETTING_ENABLE
...
@@ -17,4 +17,4 @@ void rcar_avs_init(void);
...
@@ -17,4 +17,4 @@ void rcar_avs_init(void);
void
rcar_avs_setting
(
void
);
void
rcar_avs_setting
(
void
);
void
rcar_avs_end
(
void
);
void
rcar_avs_end
(
void
);
#endif
/* AVS_DRIVER_H
__
*/
#endif
/* AVS_DRIVER_H */
drivers/renesas/rcar/board/board.h
View file @
9d068f66
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef BOARD_H
_
#ifndef BOARD_H
#define BOARD_H
_
#define BOARD_H
#define BOARD_SALVATOR_X (0x00)
#define BOARD_SALVATOR_X (0x00)
#define BOARD_KRIEK (0x01)
#define BOARD_KRIEK (0x01)
...
@@ -32,4 +32,4 @@ extern const char *g_board_tbl[];
...
@@ -32,4 +32,4 @@ extern const char *g_board_tbl[];
int32_t
rcar_get_board_type
(
uint32_t
*
type
,
uint32_t
*
rev
);
int32_t
rcar_get_board_type
(
uint32_t
*
type
,
uint32_t
*
rev
);
#endif
#endif
/* BOARD_H */
Prev
1
2
3
4
5
…
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