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
plat/xilinx/zynqmp/pm_service/pm_common.h
View file @
9d068f66
...
...
@@ -9,8 +9,8 @@
* for PU Power Management. This file should be common for all PU's.
*/
#ifndef
_
PM_COMMON_H
_
#define
_
PM_COMMON_H
_
#ifndef PM_COMMON_H
#define PM_COMMON_H
#include <debug.h>
#include <stdint.h>
...
...
@@ -52,4 +52,4 @@ struct pm_proc {
const
struct
pm_proc
*
pm_get_proc
(
unsigned
int
cpuid
);
const
struct
pm_proc
*
pm_get_proc_by_node
(
enum
pm_node_id
nid
);
#endif
/*
_
PM_COMMON_H
_
*/
#endif
/* PM_COMMON_H */
plat/xilinx/zynqmp/pm_service/pm_defs.h
View file @
9d068f66
...
...
@@ -6,8 +6,8 @@
/* ZynqMP power management enums and defines */
#ifndef
_
PM_DEFS_H
_
#define
_
PM_DEFS_H
_
#ifndef PM_DEFS_H
#define PM_DEFS_H
/*********************************************************************
* Macro definitions
...
...
@@ -265,4 +265,4 @@ enum pm_shutdown_subtype {
PMF_SHUTDOWN_SUBTYPE_SYSTEM
,
};
#endif
/*
_
PM_DEFS_H
_
*/
#endif
/* PM_DEFS_H */
plat/xilinx/zynqmp/pm_service/pm_ipi.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
_
PM_IPI_H
_
#define
_
PM_IPI_H
_
#ifndef PM_IPI_H
#define PM_IPI_H
#include "pm_common.h"
...
...
@@ -22,4 +22,4 @@ void pm_ipi_buff_read_callb(unsigned int *value, size_t count);
void
pm_ipi_irq_enable
(
const
struct
pm_proc
*
proc
);
void
pm_ipi_irq_clear
(
const
struct
pm_proc
*
proc
);
#endif
/*
_
PM_IPI_H
_
*/
#endif
/* PM_IPI_H */
plat/xilinx/zynqmp/pm_service/pm_svc_main.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
_
PM_SVC_MAIN_H
_
#define
_
PM_SVC_MAIN_H
_
#ifndef PM_SVC_MAIN_H
#define PM_SVC_MAIN_H
#include "pm_common.h"
...
...
@@ -14,4 +14,4 @@ uint64_t pm_smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3,
uint64_t
x4
,
void
*
cookie
,
void
*
handle
,
uint64_t
flags
);
#endif
/*
_
PM_SVC_MAIN_H
_
*/
#endif
/* PM_SVC_MAIN_H */
plat/xilinx/zynqmp/zynqmp_def.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
ZYNQMP_DEF_H
__
#define
__
ZYNQMP_DEF_H
__
#ifndef ZYNQMP_DEF_H
#define ZYNQMP_DEF_H
#include <common_def.h>
...
...
@@ -340,4 +340,4 @@
#define AFIFM6_WRCTRL U(13)
#define FABRIC_WIDTH U(3)
#endif
/*
__
ZYNQMP_DEF_H
__
*/
#endif
/* ZYNQMP_DEF_H */
plat/xilinx/zynqmp/zynqmp_ipi.h
View file @
9d068f66
...
...
@@ -6,8 +6,8 @@
/* ZynqMP IPI management enums and defines */
#ifndef
_
ZYNQMP_IPI_H
_
#define
_
ZYNQMP_IPI_H
_
#ifndef ZYNQMP_IPI_H
#define ZYNQMP_IPI_H
#include <stdint.h>
...
...
@@ -67,4 +67,4 @@ void ipi_mb_disable_irq(uint32_t local, uint32_t remote);
/* Enable IPI mailbox notification interrupt */
void
ipi_mb_enable_irq
(
uint32_t
local
,
uint32_t
remote
);
#endif
/*
_
ZYNQMP_IPI_H
_
*/
#endif
/* ZYNQMP_IPI_H */
plat/xilinx/zynqmp/zynqmp_private.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
ZYNQMP_PRIVATE_H
__
#define
__
ZYNQMP_PRIVATE_H
__
#ifndef ZYNQMP_PRIVATE_H
#define ZYNQMP_PRIVATE_H
#include <bl_common.h>
#include <interrupt_mgmt.h>
...
...
@@ -38,4 +38,4 @@ int request_intr_type_el3(uint32_t, interrupt_type_handler_t);
enum
fsbl_handoff
fsbl_atf_handover
(
entry_point_info_t
*
bl32_image_ep_info
,
entry_point_info_t
*
bl33_image_ep_info
);
#endif
/*
__
ZYNQMP_PRIVATE_H
__
*/
#endif
/* ZYNQMP_PRIVATE_H */
services/spd/opteed/opteed_private.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
OPTEED_PRIVATE_H
__
#define
__
OPTEED_PRIVATE_H
__
#ifndef OPTEED_PRIVATE_H
#define OPTEED_PRIVATE_H
#include <arch.h>
#include <context.h>
...
...
@@ -157,4 +157,4 @@ extern uint32_t opteed_rw;
extern
struct
optee_vectors
*
optee_vector_table
;
#endif
/*__ASSEMBLY__*/
#endif
/*
__
OPTEED_PRIVATE_H
__
*/
#endif
/* OPTEED_PRIVATE_H */
services/spd/opteed/teesmc_opteed_macros.h
View file @
9d068f66
...
...
@@ -3,8 +3,8 @@
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
TEESMC_OPTEED_MACROS_H
__
#define
__
TEESMC_OPTEED_MACROS_H
__
#ifndef TEESMC_OPTEED_MACROS_H
#define TEESMC_OPTEED_MACROS_H
#include <runtime_svc.h>
...
...
@@ -14,4 +14,4 @@
(62 << FUNCID_OEN_SHIFT) | \
((func_num) & FUNCID_NUM_MASK))
#endif
/*
__
TEESMC_OPTEED_MACROS_H
__
*/
#endif
/*
TEESMC_OPTEED_MACROS_H
*/
services/spd/tlkd/tlkd_private.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
TLKD_PRIVATE_H
__
#define
__
TLKD_PRIVATE_H
__
#ifndef TLKD_PRIVATE_H
#define TLKD_PRIVATE_H
#include <arch.h>
#include <context.h>
...
...
@@ -119,4 +119,4 @@ void tlkd_init_tlk_ep_state(struct entry_point_info *tlk_entry_point,
#endif
/*__ASSEMBLY__*/
#endif
/*
__
TLKD_PRIVATE_H
__
*/
#endif
/* TLKD_PRIVATE_H */
services/spd/trusty/sm_err.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__LIB_SM_
SM_ERR_H
#define
__LIB_SM_
SM_ERR_H
#ifndef SM_ERR_H
#define SM_ERR_H
/* Errors from the secure monitor */
#define SM_ERR_UNDEFINED_SMC 0xFFFFFFFF
/* Unknown SMC (defined by ARM DEN 0028A(0.9.0) */
...
...
@@ -19,4 +19,4 @@
#define SM_ERR_NOT_ALLOWED -9
/* SMC call not allowed */
#define SM_ERR_END_OF_INPUT -10
#endif
#endif
/* SM_ERR_H */
services/spd/trusty/smcall.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__LIB_SM_
SMCALL_H
#define
__LIB_SM_
SMCALL_H
#ifndef SMCALL_H
#define SMCALL_H
#define SMC_NUM_ENTITIES 64
#define SMC_NUM_ARGS 4
...
...
@@ -72,4 +72,4 @@
#define SMC_YC_VDEV_KICK_VQ SMC_YIELDCALL_NR(SMC_ENTITY_TRUSTED_OS, 24)
#define SMC_YC_SET_ROT_PARAMS SMC_YIELDCALL_NR(SMC_ENTITY_TRUSTED_OS, 65535)
#endif
/*
__LIB_SM_
SMCALL_H */
#endif
/* SMCALL_H */
services/spd/tspd/tspd_private.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
TSPD_PRIVATE_H
__
#define
__
TSPD_PRIVATE_H
__
#ifndef TSPD_PRIVATE_H
#define TSPD_PRIVATE_H
#include <arch.h>
#include <context.h>
...
...
@@ -227,4 +227,4 @@ extern tsp_context_t tspd_sp_context[TSPD_CORE_COUNT];
extern
tsp_vectors_t
*
tsp_vectors
;
#endif
/*__ASSEMBLY__*/
#endif
/*
__
TSPD_PRIVATE_H
__
*/
#endif
/* TSPD_PRIVATE_H */
services/std_svc/spm/spm_private.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
SPM_PRIVATE_H
__
#define
__
SPM_PRIVATE_H
__
#ifndef SPM_PRIVATE_H
#define SPM_PRIVATE_H
#include <context.h>
...
...
@@ -67,4 +67,4 @@ int spm_memory_attributes_set_smc_handler(sp_context_t *sp_ctx,
#endif
/* __ASSEMBLY__ */
#endif
/*
__
SPM_PRIVATE_H
__
*/
#endif
/* SPM_PRIVATE_H */
services/std_svc/spm/spm_shim_private.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
SPM_SHIM_PRIVATE_
_
#define
__
SPM_SHIM_PRIVATE_
_
#ifndef SPM_SHIM_PRIVATE_
H
#define SPM_SHIM_PRIVATE_
H
#include <stdint.h>
#include <utils_def.h>
...
...
@@ -22,4 +22,4 @@ IMPORT_SYM(uintptr_t, __SPM_SHIM_EXCEPTIONS_END__, SPM_SHIM_EXCEPTIONS_END);
#define SPM_SHIM_EXCEPTIONS_SIZE \
(SPM_SHIM_EXCEPTIONS_END - SPM_SHIM_EXCEPTIONS_START)
#endif
/*
__
SPM_SHIM_PRIVATE_
_
*/
#endif
/* SPM_SHIM_PRIVATE_
H
*/
tools/cert_create/include/cert.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef CERT_H
_
#define CERT_H
_
#ifndef CERT_H
#define CERT_H
#include <openssl/ossl_typ.h>
#include <openssl/x509.h>
...
...
@@ -65,4 +65,4 @@ int cert_new(
extern
cert_t
*
certs
;
extern
const
unsigned
int
num_certs
;
#endif
/* CERT_H
_
*/
#endif
/* CERT_H */
tools/cert_create/include/cmd_opt.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef CMD_OPT_H
_
#define CMD_OPT_H
_
#ifndef CMD_OPT_H
#define CMD_OPT_H
#include <getopt.h>
...
...
@@ -30,4 +30,4 @@ const struct option *cmd_opt_get_array(void);
const
char
*
cmd_opt_get_name
(
int
idx
);
const
char
*
cmd_opt_get_help_msg
(
int
idx
);
#endif
/* CMD_OPT_H
_
*/
#endif
/* CMD_OPT_H */
tools/cert_create/include/debug.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
DEBUG_H
__
#define
__
DEBUG_H
__
#ifndef DEBUG_H
#define DEBUG_H
#include <stdio.h>
...
...
@@ -56,4 +56,4 @@
# define VERBOSE(...)
#endif
#endif
/*
__
DEBUG_H
__
*/
#endif
/* DEBUG_H */
tools/cert_create/include/ext.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef EXT_H
_
#define EXT_H
_
#ifndef EXT_H
#define EXT_H
#include <openssl/x509v3.h>
#include "key.h"
...
...
@@ -82,4 +82,4 @@ X509_EXTENSION *ext_new_key(int nid, int crit, EVP_PKEY *k);
extern
ext_t
*
extensions
;
extern
const
unsigned
int
num_extensions
;
#endif
/* EXT_H
_
*/
#endif
/* EXT_H */
tools/cert_create/include/key.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef KEY_H
_
#define KEY_H
_
#ifndef KEY_H
#define KEY_H
#include <openssl/ossl_typ.h>
...
...
@@ -71,4 +71,4 @@ int key_store(key_t *key);
extern
key_t
*
keys
;
extern
const
unsigned
int
num_keys
;
#endif
/* KEY_H
_
*/
#endif
/* KEY_H */
Prev
1
…
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