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/socionext/uniphier/uniphier.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
__
UNIPHIER_H
__
#ifndef UNIPHIER_H
#define
__
UNIPHIER_H
__
#define UNIPHIER_H
#include <stdint.h>
#include <stdint.h>
#include <string.h>
#include <string.h>
...
@@ -88,4 +88,4 @@ unsigned int uniphier_calc_core_pos(u_register_t mpidr);
...
@@ -88,4 +88,4 @@ unsigned int uniphier_calc_core_pos(u_register_t mpidr);
#define UNIPHIER_IMAGE_BUF_SIZE ((UNIPHIER_NS_DRAM_LIMIT) - \
#define UNIPHIER_IMAGE_BUF_SIZE ((UNIPHIER_NS_DRAM_LIMIT) - \
(UNIPHIER_IMAGE_BUF_BASE))
(UNIPHIER_IMAGE_BUF_BASE))
#endif
/*
__
UNIPHIER_H
__
*/
#endif
/* UNIPHIER_H */
plat/st/stm32mp1/include/boot_api.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
__
BOOT_API_H
#ifndef BOOT_API_H
#define
__
BOOT_API_H
#define BOOT_API_H
#include <stdint.h>
#include <stdint.h>
#include <stdio.h>
#include <stdio.h>
...
@@ -235,4 +235,4 @@ typedef struct {
...
@@ -235,4 +235,4 @@ typedef struct {
uint8_t
binary_type
;
uint8_t
binary_type
;
}
__packed
boot_api_image_header_t
;
}
__packed
boot_api_image_header_t
;
#endif
/*
__
BOOT_API_H */
#endif
/* BOOT_API_H */
plat/st/stm32mp1/include/stm32mp1_context.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
__
STM32MP1_CONTEXT_H
__
#ifndef STM32MP1_CONTEXT_H
#define
__
STM32MP1_CONTEXT_H
__
#define STM32MP1_CONTEXT_H
#include <stdint.h>
#include <stdint.h>
int
stm32_save_boot_interface
(
uint32_t
interface
,
uint32_t
instance
);
int
stm32_save_boot_interface
(
uint32_t
interface
,
uint32_t
instance
);
#endif
/*
__
STM32MP1_CONTEXT_H
__
*/
#endif
/* STM32MP1_CONTEXT_H */
plat/st/stm32mp1/include/stm32mp1_dt.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
__
STM32MP1_DT_H
__
#ifndef STM32MP1_DT_H
#define
__
STM32MP1_DT_H
__
#define STM32MP1_DT_H
#include <stdbool.h>
#include <stdbool.h>
...
@@ -38,4 +38,4 @@ int dt_get_stdout_node_offset(void);
...
@@ -38,4 +38,4 @@ int dt_get_stdout_node_offset(void);
uint32_t
dt_get_ddr_size
(
void
);
uint32_t
dt_get_ddr_size
(
void
);
const
char
*
dt_get_board_model
(
void
);
const
char
*
dt_get_board_model
(
void
);
#endif
/*
__
STM32MP1_DT_H
__
*/
#endif
/* STM32MP1_DT_H */
plat/st/stm32mp1/include/stm32mp1_private.h
View file @
9d068f66
...
@@ -4,8 +4,10 @@
...
@@ -4,8 +4,10 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef __STM32MP1_PRIVATE_H__
#ifndef STM32MP1_PRIVATE_H
#define __STM32MP1_PRIVATE_H__
#define STM32MP1_PRIVATE_H
#include <stdint.h>
void
stm32mp1_io_setup
(
void
);
void
stm32mp1_io_setup
(
void
);
void
configure_mmu
(
void
);
void
configure_mmu
(
void
);
...
@@ -19,4 +21,4 @@ uintptr_t stm32mp1_get_boot_ctx_address(void);
...
@@ -19,4 +21,4 @@ uintptr_t stm32mp1_get_boot_ctx_address(void);
void
stm32mp1_gic_pcpu_init
(
void
);
void
stm32mp1_gic_pcpu_init
(
void
);
void
stm32mp1_gic_init
(
void
);
void
stm32mp1_gic_init
(
void
);
#endif
/*
__
STM32MP1_PRIVATE_H
__
*/
#endif
/* STM32MP1_PRIVATE_H */
plat/st/stm32mp1/stm32mp1.ld.S
View file @
9d068f66
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
*/
#ifndef __STM32MP1_LD_S__
#ifndef STM32MP1_LD_S
#define __STM32MP1_LD_S__
#define STM32MP1_LD_S
#include <platform_def.h>
#include <platform_def.h>
#include <xlat_tables_defs.h>
#include <xlat_tables_defs.h>
...
@@ -73,4 +74,4 @@ SECTIONS
...
@@ -73,4 +74,4 @@ SECTIONS
__TF_END__
=
.
;
__TF_END__
=
.
;
}
}
#endif /*
__
STM32MP1_LD_S
__
*/
#endif /*
STM32MP1_LD_S
*/
plat/ti/k3/common/drivers/sec_proxy/sec_proxy.h
View file @
9d068f66
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
K3_
SEC_PROXY_H
#ifndef SEC_PROXY_H
#define
K3_
SEC_PROXY_H
#define SEC_PROXY_H
#include <stdint.h>
#include <stdint.h>
...
@@ -55,4 +55,4 @@ int k3_sec_proxy_send(enum k3_sec_proxy_chan_id id, const struct k3_sec_proxy_ms
...
@@ -55,4 +55,4 @@ int k3_sec_proxy_send(enum k3_sec_proxy_chan_id id, const struct k3_sec_proxy_ms
*/
*/
int
k3_sec_proxy_recv
(
enum
k3_sec_proxy_chan_id
id
,
struct
k3_sec_proxy_msg
*
msg
);
int
k3_sec_proxy_recv
(
enum
k3_sec_proxy_chan_id
id
,
struct
k3_sec_proxy_msg
*
msg
);
#endif
/*
K3_
SEC_PROXY_H */
#endif
/* SEC_PROXY_H */
plat/ti/k3/common/drivers/ti_sci/ti_sci.h
View file @
9d068f66
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
TI_SCI_H
#ifndef TI_SCI_H
#define
__
TI_SCI_H
#define TI_SCI_H
#include <stdint.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdbool.h>
...
@@ -205,4 +205,4 @@ int ti_sci_proc_get_boot_status(uint8_t proc_id, uint64_t *bv,
...
@@ -205,4 +205,4 @@ int ti_sci_proc_get_boot_status(uint8_t proc_id, uint64_t *bv,
*/
*/
int
ti_sci_init
(
void
);
int
ti_sci_init
(
void
);
#endif
/*
__
TI_SCI_H */
#endif
/* TI_SCI_H */
plat/ti/k3/common/drivers/ti_sci/ti_sci_protocol.h
View file @
9d068f66
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
TI_SCI_PROTOCOL_H
#ifndef TI_SCI_PROTOCOL_H
#define
__
TI_SCI_PROTOCOL_H
#define TI_SCI_PROTOCOL_H
#include <stdint.h>
#include <stdint.h>
...
@@ -647,4 +647,4 @@ struct ti_sci_msg_resp_get_proc_boot_status {
...
@@ -647,4 +647,4 @@ struct ti_sci_msg_resp_get_proc_boot_status {
uint32_t
status_flags
;
uint32_t
status_flags
;
}
__packed
;
}
__packed
;
#endif
/*
__
TI_SCI_PROTOCOL_H */
#endif
/* TI_SCI_PROTOCOL_H */
plat/ti/k3/include/k3_console.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
__
K3_CONSOLE_H
__
#ifndef K3_CONSOLE_H
#define
__
K3_CONSOLE_H
__
#define K3_CONSOLE_H
void
bl31_console_setup
(
void
);
void
bl31_console_setup
(
void
);
#endif
/*
__
K3_CONSOLE_H
__
*/
#endif
/* K3_CONSOLE_H */
plat/ti/k3/include/k3_gicv3.h
View file @
9d068f66
...
@@ -4,8 +4,10 @@
...
@@ -4,8 +4,10 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef __K3_GICV3_H__
#ifndef K3_GICV3_H
#define __K3_GICV3_H__
#define K3_GICV3_H
#include <stdint.h>
void
k3_gic_driver_init
(
uintptr_t
gicd_base
,
uintptr_t
gicr_base
);
void
k3_gic_driver_init
(
uintptr_t
gicd_base
,
uintptr_t
gicr_base
);
void
k3_gic_init
(
void
);
void
k3_gic_init
(
void
);
...
@@ -13,4 +15,4 @@ void k3_gic_cpuif_enable(void);
...
@@ -13,4 +15,4 @@ void k3_gic_cpuif_enable(void);
void
k3_gic_cpuif_disable
(
void
);
void
k3_gic_cpuif_disable
(
void
);
void
k3_gic_pcpu_init
(
void
);
void
k3_gic_pcpu_init
(
void
);
#endif
/*
__
K3_GICV3_H
__
*/
#endif
/* K3_GICV3_H */
plat/ti/k3/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
/
*
---------------------------------------------
/
*
---------------------------------------------
*
The
below
required
platform
porting
macro
*
The
below
required
platform
porting
macro
...
@@ -18,4 +18,4 @@
...
@@ -18,4 +18,4 @@
/
*
STUB
*/
/
*
STUB
*/
.
endm
.
endm
#endif /*
__
PLAT_MACROS_S
__
*/
#endif /* PLAT_MACROS_S */
plat/ti/k3/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 <arch.h>
#include <arch.h>
#include <board_def.h>
#include <board_def.h>
...
@@ -206,4 +206,4 @@
...
@@ -206,4 +206,4 @@
#define TI_SCI_HOST_ID 10
#define TI_SCI_HOST_ID 10
#define TI_SCI_MAX_MESSAGE_SIZE 52
#define TI_SCI_MAX_MESSAGE_SIZE 52
#endif
/*
__
PLATFORM_DEF_H
__
*/
#endif
/* PLATFORM_DEF_H */
plat/xilinx/zynqmp/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 <cci_macros.S>
#include <cci_macros.S>
...
@@ -25,4 +25,4 @@
...
@@ -25,4 +25,4 @@
print_cci_regs
print_cci_regs
.
endm
.
endm
#endif /*
__
PLAT_MACROS_S
__
*/
#endif /* PLAT_MACROS_S */
plat/xilinx/zynqmp/ipi_mailbox_service/ipi_mailbox_svc.h
View file @
9d068f66
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
/* ZynqMP IPI mailbox doorbell service enums and defines */
/* ZynqMP IPI mailbox doorbell service enums and defines */
#ifndef
_
IPI_MAILBOX_SVC_H
_
#ifndef IPI_MAILBOX_SVC_H
#define
_
IPI_MAILBOX_SVC_H
_
#define IPI_MAILBOX_SVC_H
#include <stdint.h>
#include <stdint.h>
...
@@ -36,4 +36,4 @@ uint64_t ipi_smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2,
...
@@ -36,4 +36,4 @@ uint64_t ipi_smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2,
uint64_t
x3
,
uint64_t
x4
,
void
*
cookie
,
void
*
handle
,
uint64_t
x3
,
uint64_t
x4
,
void
*
cookie
,
void
*
handle
,
uint64_t
flags
);
uint64_t
flags
);
#endif
/*
_
IPI_MAILBOX_SVC_H
_
*/
#endif
/* IPI_MAILBOX_SVC_H */
plat/xilinx/zynqmp/pm_service/pm_api_clock.h
View file @
9d068f66
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
* ZynqMP system level PM-API functions for clock control.
* ZynqMP system level PM-API functions for clock control.
*/
*/
#ifndef
_
PM_API_CLOCK_H
_
#ifndef PM_API_CLOCK_H
#define
_
PM_API_CLOCK_H
_
#define PM_API_CLOCK_H
#include <utils_def.h>
#include <utils_def.h>
#include "pm_common.h"
#include "pm_common.h"
...
@@ -313,4 +313,4 @@ enum pm_ret_status pm_api_clk_set_pll_frac_data(unsigned int pll,
...
@@ -313,4 +313,4 @@ enum pm_ret_status pm_api_clk_set_pll_frac_data(unsigned int pll,
enum
pm_ret_status
pm_api_clk_get_pll_frac_data
(
unsigned
int
pll
,
enum
pm_ret_status
pm_api_clk_get_pll_frac_data
(
unsigned
int
pll
,
unsigned
int
*
data
);
unsigned
int
*
data
);
#endif
/*
_
PM_API_CLOCK_H
_
*/
#endif
/* PM_API_CLOCK_H */
plat/xilinx/zynqmp/pm_service/pm_api_ioctl.h
View file @
9d068f66
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
* ZynqMP system level PM-API functions for pin control.
* ZynqMP system level PM-API functions for pin control.
*/
*/
#ifndef
_
PM_API_IOCTL_H
_
#ifndef PM_API_IOCTL_H
#define
_
PM_API_IOCTL_H
_
#define PM_API_IOCTL_H
#include "pm_common.h"
#include "pm_common.h"
...
@@ -80,4 +80,4 @@ enum pm_ret_status pm_api_ioctl(enum pm_node_id nid,
...
@@ -80,4 +80,4 @@ enum pm_ret_status pm_api_ioctl(enum pm_node_id nid,
unsigned
int
arg1
,
unsigned
int
arg1
,
unsigned
int
arg2
,
unsigned
int
arg2
,
unsigned
int
*
value
);
unsigned
int
*
value
);
#endif
/*
_
PM_API_IOCTL_H
_
*/
#endif
/* PM_API_IOCTL_H */
plat/xilinx/zynqmp/pm_service/pm_api_pinctrl.h
View file @
9d068f66
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
* ZynqMP system level PM-API functions for pin control.
* ZynqMP system level PM-API functions for pin control.
*/
*/
#ifndef
_
PM_API_PINCTRL_H
_
#ifndef PM_API_PINCTRL_H
#define
_
PM_API_PINCTRL_H
_
#define PM_API_PINCTRL_H
#include "pm_common.h"
#include "pm_common.h"
...
@@ -731,4 +731,4 @@ enum pm_ret_status pm_api_pinctrl_get_num_pins(unsigned int *npins);
...
@@ -731,4 +731,4 @@ enum pm_ret_status pm_api_pinctrl_get_num_pins(unsigned int *npins);
enum
pm_ret_status
pm_api_pinctrl_get_num_functions
(
unsigned
int
*
nfuncs
);
enum
pm_ret_status
pm_api_pinctrl_get_num_functions
(
unsigned
int
*
nfuncs
);
enum
pm_ret_status
pm_api_pinctrl_get_num_func_groups
(
unsigned
int
fid
,
enum
pm_ret_status
pm_api_pinctrl_get_num_func_groups
(
unsigned
int
fid
,
unsigned
int
*
ngroups
);
unsigned
int
*
ngroups
);
#endif
/*
_
PM_API_PINCTRL_H
_
*/
#endif
/* PM_API_PINCTRL_H */
plat/xilinx/zynqmp/pm_service/pm_api_sys.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
_
PM_API_SYS_H
_
#ifndef PM_API_SYS_H
#define
_
PM_API_SYS_H
_
#define PM_API_SYS_H
#include <stdint.h>
#include <stdint.h>
#include "pm_defs.h"
#include "pm_defs.h"
...
@@ -176,4 +176,4 @@ enum pm_ret_status pm_aes_engine(uint32_t address_high,
...
@@ -176,4 +176,4 @@ enum pm_ret_status pm_aes_engine(uint32_t address_high,
uint32_t
address_low
,
uint32_t
address_low
,
uint32_t
*
value
);
uint32_t
*
value
);
#endif
/*
_
PM_API_SYS_H
_
*/
#endif
/* PM_API_SYS_H */
plat/xilinx/zynqmp/pm_service/pm_client.h
View file @
9d068f66
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
* the execution environment.
* the execution environment.
*/
*/
#ifndef
_
PM_CLIENT_H
_
#ifndef PM_CLIENT_H
#define
_
PM_CLIENT_H
_
#define PM_CLIENT_H
#include "pm_common.h"
#include "pm_common.h"
#include "pm_defs.h"
#include "pm_defs.h"
...
@@ -25,4 +25,4 @@ enum pm_ret_status pm_set_suspend_mode(uint32_t mode);
...
@@ -25,4 +25,4 @@ enum pm_ret_status pm_set_suspend_mode(uint32_t mode);
/* Global variables to be set in pm_client.c */
/* Global variables to be set in pm_client.c */
extern
const
struct
pm_proc
*
primary_proc
;
extern
const
struct
pm_proc
*
primary_proc
;
#endif
/*
_
PM_CLIENT_H
_
*/
#endif
/* PM_CLIENT_H */
Prev
1
…
20
21
22
23
24
25
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