Unverified Commit 9a207532 authored by Antonio Niño Díaz's avatar Antonio Niño Díaz Committed by GitHub
Browse files

Merge pull request #1726 from antonio-nino-diaz-arm/an/includes

Sanitise includes across codebase
parents 3f99f7e4 8e7b27a4
......@@ -7,12 +7,14 @@
#ifndef SMCCC_HELPERS_H
#define SMCCC_HELPERS_H
#include <smccc.h>
#include <lib/smccc.h>
#ifndef __ASSEMBLY__
#include <context.h>
#include <stdbool.h>
#include <context.h>
/* Convenience macros to return from SMC handler */
#define SMC_RET0(_h) { \
return (uint64_t) (_h); \
......
......@@ -7,7 +7,7 @@
#ifndef BL1_H
#define BL1_H
#include <bl_common.h>
#include <common/bl_common.h>
/*
* Defines for BL1 SMC function ids.
......@@ -62,7 +62,8 @@
((_fid >= FWU_SMC_FID_START) && (_fid <= FWU_SMC_FID_END))
#ifndef __ASSEMBLY__
#include <cassert.h>
#include <lib/cassert.h>
struct entry_point_info;
......
......@@ -7,7 +7,7 @@
#ifndef TBBR_IMG_DESC_H
#define TBBR_IMG_DESC_H
#include <bl_common.h>
#include <common/bl_common.h>
extern image_desc_t bl1_tbbr_image_descs[];
......
......@@ -11,7 +11,8 @@
#include <cdefs.h>
#include <stdint.h>
#include <utils_def.h>
#include <lib/utils_def.h>
/* Valid priorities set bit 0 of the priority handler. */
#define EHF_PRI_VALID_ BIT(0)
......
......@@ -8,7 +8,7 @@
#define INTERRUPT_MGMT_H
#include <arch.h>
#include <utils_def.h>
#include <lib/utils_def.h>
/*******************************************************************************
* Constants for the types of interrupts recognised by the IM framework
......
......@@ -7,7 +7,7 @@
#ifndef TLK_H
#define TLK_H
#include <utils_def.h>
#include <lib/utils_def.h>
/*
* Generate function IDs for the Trusted OS/Apps
......
......@@ -7,9 +7,9 @@
#ifndef BL_COMMON_H
#define BL_COMMON_H
#include <ep_info.h>
#include <param_header.h>
#include <utils_def.h>
#include <common/ep_info.h>
#include <common/param_header.h>
#include <lib/utils_def.h>
#define UP U(1)
#define DOWN U(0)
......@@ -58,11 +58,11 @@
#define SERROR_AARCH32 U(0xf)
#ifndef __ASSEMBLY__
#include <cassert.h>
#include <stddef.h>
#include <stdint.h>
#include <utils_def.h> /* To retain compatibility */
#include <lib/cassert.h>
/*
* Declarations of linker defined symbols to help determine memory layout of
......
......@@ -7,7 +7,7 @@
#ifndef DEBUG_H
#define DEBUG_H
#include <utils_def.h>
#include <lib/utils_def.h>
/*
* The log output macros print output to the console. These macros produce
......@@ -28,12 +28,14 @@
#define LOG_LEVEL_VERBOSE U(50)
#ifndef __ASSEMBLY__
#include <cdefs.h>
#include <console.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <drivers/console.h>
/*
* Define Log Markers corresponding to each log level which will
* be embedded in the format string and is expected by tf_log() to determine
......
......@@ -6,7 +6,7 @@
#ifndef DESC_IMAGE_LOAD_H
#define DESC_IMAGE_LOAD_H
#include <bl_common.h>
#include <common/bl_common.h>
/* Following structure is used to store BL ep/image info. */
typedef struct bl_mem_params_node {
......
......@@ -7,8 +7,8 @@
#ifndef EP_INFO_H
#define EP_INFO_H
#include <param_header.h>
#include <utils_def.h>
#include <common/param_header.h>
#include <lib/utils_def.h>
#define SECURE U(0x0)
#define NON_SECURE U(0x1)
......@@ -64,9 +64,10 @@
#ifndef __ASSEMBLY__
#include <cassert.h>
#include <stdint.h>
#include <lib/cassert.h>
typedef struct aapcs64_params {
u_register_t arg0;
u_register_t arg1;
......
......@@ -8,7 +8,8 @@
#define PARAM_HEADER_H
#include <stdbool.h>
#include <utils_def.h>
#include <lib/utils_def.h>
/* Param header types */
#define PARAM_EP U(0x01)
......
......@@ -7,10 +7,10 @@
#ifndef RUNTIME_SVC_H
#define RUNTIME_SVC_H
#include <bl_common.h> /* to include exception types */
#include <cassert.h>
#include <common/bl_common.h> /* to include exception types */
#include <lib/cassert.h>
#include <lib/utils_def.h>
#include <smccc_helpers.h> /* to include SMCCC definitions */
#include <utils_def.h>
/*******************************************************************************
* Structure definition, typedefs & constants for the runtime service framework
......
......@@ -7,7 +7,7 @@
#ifndef TBBR_IMG_DEF_H
#define TBBR_IMG_DEF_H
#include <utils_def.h>
#include <lib/utils_def.h>
/* Firmware Image Package */
#define FIP_IMAGE_ID U(0)
......
......@@ -7,7 +7,7 @@
#ifndef CCI_H
#define CCI_H
#include <utils_def.h>
#include <lib/utils_def.h>
/* Slave interface offsets from PERIPHBASE */
#define SLAVE_IFACE6_OFFSET UL(0x7000)
......
......@@ -7,7 +7,7 @@
#ifndef GIC_COMMON_H
#define GIC_COMMON_H
#include <utils_def.h>
#include <lib/utils_def.h>
/*******************************************************************************
* GIC Distributor interface general definitions
......
......@@ -7,7 +7,7 @@
#ifndef GICV2_H
#define GICV2_H
#include <gic_common.h>
#include <drivers/arm/gic_common.h>
/*******************************************************************************
* GICv2 miscellaneous definitions
......@@ -119,9 +119,10 @@
#ifndef __ASSEMBLY__
#include <cdefs.h>
#include <interrupt_props.h>
#include <stdint.h>
#include <common/interrupt_props.h>
/*******************************************************************************
* This structure describes some of the implementation defined attributes of
* the GICv2 IP. It is used by the platform port to specify these attributes
......
......@@ -209,12 +209,13 @@
#ifndef __ASSEMBLY__
#include <arch_helpers.h>
#include <gic_common.h>
#include <interrupt_props.h>
#include <stdbool.h>
#include <stdint.h>
#include <utils_def.h>
#include <arch_helpers.h>
#include <common/interrupt_props.h>
#include <drivers/arm/gic_common.h>
#include <lib/utils_def.h>
static inline bool gicv3_is_intr_id_special_identifier(unsigned int id)
{
......
......@@ -7,7 +7,7 @@
#ifndef PL011_H
#define PL011_H
#include <console.h>
#include <drivers/console.h>
/* PL011 Registers */
#define UARTDR 0x000
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment