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
plat/arm/board/sgm775/include/platform_def.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
__
PLATFORM_DEF_H
__
#ifndef PLATFORM_DEF_H
#define
__
PLATFORM_DEF_H
__
#define PLATFORM_DEF_H
#include <sgm_base_platform_def.h>
#include <sgm_base_platform_def.h>
#define PLAT_MAX_CPUS_PER_CLUSTER 8
#define PLAT_MAX_CPUS_PER_CLUSTER 8
#define PLAT_MAX_PE_PER_CPU 1
#define PLAT_MAX_PE_PER_CPU 1
#endif
/*
__
PLATFORM_DEF_H
__
*/
#endif
/* PLATFORM_DEF_H */
plat/arm/css/drivers/mhu/css_mhu.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
__
CSS_MHU_H
__
#ifndef CSS_MHU_H
#define
__
CSS_MHU_H
__
#define CSS_MHU_H
#include <stdint.h>
#include <stdint.h>
...
@@ -16,4 +16,4 @@ void mhu_secure_message_end(unsigned int slot_id);
...
@@ -16,4 +16,4 @@ void mhu_secure_message_end(unsigned int slot_id);
void
mhu_secure_init
(
void
);
void
mhu_secure_init
(
void
);
#endif
/*
__
CSS_MHU_H
__
*/
#endif
/* CSS_MHU_H */
plat/arm/css/drivers/scmi/scmi.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
__CSS_
SCMI_H
__
#ifndef SCMI_H
#define
__CSS_
SCMI_H
__
#define SCMI_H
#include <bakery_lock.h>
#include <bakery_lock.h>
#include <stddef.h>
#include <stddef.h>
...
@@ -162,4 +162,4 @@ int scmi_ap_core_get_reset_addr(void *p, uint64_t *reset_addr, uint32_t *attr);
...
@@ -162,4 +162,4 @@ int scmi_ap_core_get_reset_addr(void *p, uint64_t *reset_addr, uint32_t *attr);
/* API to get the platform specific SCMI channel information. */
/* API to get the platform specific SCMI channel information. */
scmi_channel_plat_info_t
*
plat_css_get_scmi_info
();
scmi_channel_plat_info_t
*
plat_css_get_scmi_info
();
#endif
/*
__CSS_
SCMI_H
__
*/
#endif
/* SCMI_H */
plat/arm/css/drivers/scmi/scmi_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
__CSS_
SCMI_PRIVATE_H
__
#ifndef SCMI_PRIVATE_H
#define
__CSS_
SCMI_PRIVATE_H
__
#define SCMI_PRIVATE_H
/*
/*
* SCMI power domain management protocol message and response lengths. It is
* SCMI power domain management protocol message and response lengths. It is
...
@@ -150,4 +150,4 @@ static inline void validate_scmi_channel(scmi_channel_t *ch)
...
@@ -150,4 +150,4 @@ static inline void validate_scmi_channel(scmi_channel_t *ch)
assert
(
ch
->
info
&&
ch
->
info
->
scmi_mbx_mem
);
assert
(
ch
->
info
&&
ch
->
info
->
scmi_mbx_mem
);
}
}
#endif
/*
__CSS_
SCMI_PRIVATE_H
__
*/
#endif
/* SCMI_PRIVATE_H */
plat/arm/css/drivers/scp/css_scp.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
__
CSS_SCP_H
__
#ifndef CSS_SCP_H
#define
__
CSS_SCP_H
__
#define CSS_SCP_H
#include <cassert.h>
#include <cassert.h>
#include <platform_def.h>
#include <platform_def.h>
...
@@ -47,4 +47,4 @@ CASSERT(SCP_BL2_BASE >= ARM_TB_FW_CONFIG_LIMIT, assert_scp_bl2_overflow);
...
@@ -47,4 +47,4 @@ CASSERT(SCP_BL2_BASE >= ARM_TB_FW_CONFIG_LIMIT, assert_scp_bl2_overflow);
CASSERT
(
SCP_BL2U_BASE
>=
ARM_TB_FW_CONFIG_LIMIT
,
assert_scp_bl2u_overflow
);
CASSERT
(
SCP_BL2U_BASE
>=
ARM_TB_FW_CONFIG_LIMIT
,
assert_scp_bl2u_overflow
);
#endif
#endif
#endif
/*
__
CSS_SCP_H
__
*/
#endif
/* CSS_SCP_H */
plat/arm/css/drivers/scpi/css_scpi.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
__
CSS_SCPI_H
__
#ifndef CSS_SCPI_H
#define
__
CSS_SCPI_H
__
#define CSS_SCPI_H
#include <stddef.h>
#include <stddef.h>
#include <stdint.h>
#include <stdint.h>
...
@@ -106,5 +106,4 @@ int scpi_get_css_power_state(unsigned int mpidr, unsigned int *cpu_state_p,
...
@@ -106,5 +106,4 @@ int scpi_get_css_power_state(unsigned int mpidr, unsigned int *cpu_state_p,
unsigned
int
*
cluster_state_p
);
unsigned
int
*
cluster_state_p
);
uint32_t
scpi_sys_power_state
(
scpi_system_state_t
system_state
);
uint32_t
scpi_sys_power_state
(
scpi_system_state_t
system_state
);
#endif
/* CSS_SCPI_H */
#endif
/* __CSS_SCPI_H__ */
plat/arm/css/drivers/sds/sds.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
__
SDS_H
__
#ifndef SDS_H
#define
__
SDS_H
__
#define SDS_H
/* SDS Structure Identifier defines */
/* SDS Structure Identifier defines */
/* AP CPU INFO defines */
/* AP CPU INFO defines */
...
@@ -86,4 +86,5 @@ int sds_struct_read(uint32_t structure_id, unsigned int fld_off, void *data,
...
@@ -86,4 +86,5 @@ int sds_struct_read(uint32_t structure_id, unsigned int fld_off, void *data,
int
sds_struct_write
(
uint32_t
structure_id
,
unsigned
int
fld_off
,
void
*
data
,
int
sds_struct_write
(
uint32_t
structure_id
,
unsigned
int
fld_off
,
void
*
data
,
size_t
size
,
sds_access_mode_t
mode
);
size_t
size
,
sds_access_mode_t
mode
);
#endif
/*__ASSEMBLY__ */
#endif
/*__ASSEMBLY__ */
#endif
/* __SDS_H__ */
#endif
/* SDS_H */
plat/arm/css/drivers/sds/sds_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
__
SDS_PRIVATE_H
__
#ifndef SDS_PRIVATE_H
#define
__
SDS_PRIVATE_H
__
#define SDS_PRIVATE_H
/* SDS Header defines */
/* SDS Header defines */
#define SDS_HEADER_ID_SHIFT 0
#define SDS_HEADER_ID_SHIFT 0
...
@@ -96,4 +96,5 @@ typedef struct region_descriptor {
...
@@ -96,4 +96,5 @@ typedef struct region_descriptor {
#define GET_SDS_REGION_SIZE(region) ((((region_desc_t *)(region))->reg[1]))
#define GET_SDS_REGION_SIZE(region) ((((region_desc_t *)(region))->reg[1]))
#endif
/* __ASSEMBLY__ */
#endif
/* __ASSEMBLY__ */
#endif
/* __SDS_PRIVATE_H__ */
#endif
/* SDS_PRIVATE_H */
plat/arm/css/sgi/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/css/sgi/include/sgi_ras.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
__
SGI_RAS_
_
#ifndef SGI_RAS_
H
#define
__
SGI_RAS_
_
#define SGI_RAS_
H
/*
/*
* Mapping the RAS interrupt with SDEI event number and the event
* Mapping the RAS interrupt with SDEI event number and the event
...
@@ -19,4 +19,4 @@ struct sgi_ras_ev_map {
...
@@ -19,4 +19,4 @@ struct sgi_ras_ev_map {
int
sgi_ras_intr_handler_setup
(
void
);
int
sgi_ras_intr_handler_setup
(
void
);
#endif
/*
__
SGI_RAS_
_
*/
#endif
/* SGI_RAS_
H
*/
plat/arm/css/sgm/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 @@ css_print_gic_regs
...
@@ -21,4 +21,4 @@ css_print_gic_regs
print_cci_regs
print_cci_regs
.
endm
.
endm
#endif /*
__
PLAT_MACROS_S
__
*/
#endif /* PLAT_MACROS_S */
plat/arm/css/sgm/include/sgm_base_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
__
SGM_BASE_PLATFORM_DEF_H
__
#ifndef SGM_BASE_PLATFORM_DEF_H
#define
__
SGM_BASE_PLATFORM_DEF_H
__
#define SGM_BASE_PLATFORM_DEF_H
#include <arm_def.h>
#include <arm_def.h>
#include <board_css_def.h>
#include <board_css_def.h>
...
@@ -239,4 +239,4 @@
...
@@ -239,4 +239,4 @@
*/
*/
#define PLAT_ARM_MEM_PROT_ADDR (V2M_FLASH0_BASE + \
#define PLAT_ARM_MEM_PROT_ADDR (V2M_FLASH0_BASE + \
V2M_FLASH0_SIZE - V2M_FLASH_BLOCK_SIZE)
V2M_FLASH0_SIZE - V2M_FLASH_BLOCK_SIZE)
#endif
/*
__
SGM_BASE_PLATFORM_DEF_H
__
*/
#endif
/* SGM_BASE_PLATFORM_DEF_H */
plat/arm/css/sgm/include/sgm_plat_config.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
__
SGM_PLAT_CONFIG_H
__
#ifndef SGM_PLAT_CONFIG_H
#define
__
SGM_PLAT_CONFIG_H
__
#define SGM_PLAT_CONFIG_H
#include <ccn.h>
#include <ccn.h>
#include <gicv3.h>
#include <gicv3.h>
...
@@ -39,4 +39,5 @@ typedef struct css_plat_config {
...
@@ -39,4 +39,5 @@ typedef struct css_plat_config {
void
plat_config_init
(
void
);
void
plat_config_init
(
void
);
css_plat_config_t
*
get_plat_config
(
void
);
css_plat_config_t
*
get_plat_config
(
void
);
#endif
/* __SGM_PLAT_CONFIG_H__ */
#endif
/* SGM_PLAT_CONFIG_H */
plat/arm/css/sgm/include/sgm_variant.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
__
SGM_VARIANT_H
__
#ifndef SGM_VARIANT_H
#define
__
SGM_VARIANT_H
__
#define SGM_VARIANT_H
/* SSC_VERSION values for sgm */
/* SSC_VERSION values for sgm */
#define SGM775_SSC_VER_PART_NUM 0x0790
#define SGM775_SSC_VER_PART_NUM 0x0790
...
@@ -14,4 +14,4 @@
...
@@ -14,4 +14,4 @@
#define SGM_DMC_SIZE 0x40000
#define SGM_DMC_SIZE 0x40000
#define SGM775_DMC_COUNT 4
#define SGM775_DMC_COUNT 4
#endif
/*
__
SGM_VARIANT_H
__
*/
#endif
/* SGM_VARIANT_H */
plat/hisilicon/hikey/hikey_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
__
HIKEY_PRIVATE_H
__
#ifndef HIKEY_PRIVATE_H
#define
__
HIKEY_PRIVATE_H
__
#define HIKEY_PRIVATE_H
#include <bl_common.h>
#include <bl_common.h>
...
@@ -72,4 +72,4 @@ int hikey_write_serialno(struct random_serial_num *serialno);
...
@@ -72,4 +72,4 @@ int hikey_write_serialno(struct random_serial_num *serialno);
void
init_acpu_dvfs
(
void
);
void
init_acpu_dvfs
(
void
);
#endif
/*
__
HIKEY_PRIVATE_H
__
*/
#endif
/* HIKEY_PRIVATE_H */
plat/hisilicon/hikey/include/hi6220.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
__
HI6220_H
__
#ifndef HI6220_H
#define
__
HI6220_H
__
#define HI6220_H
#include <hi6220_regs_acpu.h>
#include <hi6220_regs_acpu.h>
#include <hi6220_regs_ao.h>
#include <hi6220_regs_ao.h>
...
@@ -74,4 +74,4 @@
...
@@ -74,4 +74,4 @@
#define GPIO18_BASE 0xF702E000
#define GPIO18_BASE 0xF702E000
#define GPIO19_BASE 0xF702F000
#define GPIO19_BASE 0xF702F000
#endif
/*
__
HI6220_H
__
*/
#endif
/* HI6220_H */
plat/hisilicon/hikey/include/hi6220_regs_acpu.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
__
HI6220_REGS_ACPU_H
__
#ifndef HI6220_REGS_ACPU_H
#define
__
HI6220_REGS_ACPU_H
__
#define HI6220_REGS_ACPU_H
#define ACPU_CTRL_BASE 0xF6504000
#define ACPU_CTRL_BASE 0xF6504000
...
@@ -297,4 +297,4 @@
...
@@ -297,4 +297,4 @@
(0x1 << ACPU_SC_VD_CTRL_TUNE_EN_INT_SHIFT) | \
(0x1 << ACPU_SC_VD_CTRL_TUNE_EN_INT_SHIFT) | \
(0x1 << ACPU_SC_VD_CTRL_TUNE_EN_DIF_SHIFT))
(0x1 << ACPU_SC_VD_CTRL_TUNE_EN_DIF_SHIFT))
#endif
/*
__
HI6220_REGS_ACPU_H
__
*/
#endif
/* HI6220_REGS_ACPU_H */
plat/hisilicon/hikey/include/hi6220_regs_ao.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
__
HI6220_AO_H
__
#ifndef HI6220_
REGS_
AO_H
#define
__
HI6220_AO_H
__
#define HI6220_
REGS_
AO_H
#define AO_CTRL_BASE 0xF7800000
#define AO_CTRL_BASE 0xF7800000
...
@@ -331,4 +331,4 @@
...
@@ -331,4 +331,4 @@
#define PCLK_TIMER1 (1 << 16)
#define PCLK_TIMER1 (1 << 16)
#define PCLK_TIMER0 (1 << 15)
#define PCLK_TIMER0 (1 << 15)
#endif
/*
__
HI6220_AO_H
__
*/
#endif
/* HI6220_
REGS_
AO_H */
plat/hisilicon/hikey/include/hi6220_regs_peri.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
__
HI6220_PERI_H
__
#ifndef HI6220_
REGS_
PERI_H
#define
__
HI6220_PERI_H
__
#define HI6220_
REGS_
PERI_H
#define PERI_BASE 0xF7030000
#define PERI_BASE 0xF7030000
...
@@ -377,4 +377,4 @@
...
@@ -377,4 +377,4 @@
#define PERI_RST8_DDRPACK_APB (1 << 14)
#define PERI_RST8_DDRPACK_APB (1 << 14)
#define PERI_RST8_DDRT (1 << 17)
#define PERI_RST8_DDRT (1 << 17)
#endif
/*
__
HI6220_PERI_H
__
*/
#endif
/* HI6220_
REGS_
PERI_H */
plat/hisilicon/hikey/include/hi6220_regs_pin.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
__
HI6220_PIN_H
__
#ifndef HI6220_
REGS_
PIN_H
#define
__
HI6220_PIN_H
__
#define HI6220_
REGS_
PIN_H
#define IOMG_BASE 0xF7010000
#define IOMG_BASE 0xF7010000
...
@@ -40,4 +40,4 @@
...
@@ -40,4 +40,4 @@
#define IOCG_PULLDOWN (1 << 1)
#define IOCG_PULLDOWN (1 << 1)
#define IOCG_PULLUP (1 << 0)
#define IOCG_PULLUP (1 << 0)
#endif
/*
__
HI6220_PIN_H
__
*/
#endif
/* HI6220_
REGS_
PIN_H */
Prev
1
…
10
11
12
13
14
15
16
17
18
…
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