Commit 93c78ed2 authored by Antonio Nino Diaz's avatar Antonio Nino Diaz
Browse files

libc: Fix all includes in codebase



The codebase was using non-standard headers. It is needed to replace
them by the correct ones so that we can use the new libc headers.

Change-Id: I530f71d9510cb036e69fe79823c8230afe890b9d
Acked-by: default avatarSumit Garg <sumit.garg@linaro.org>
Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
parent 2fb88cb2
/* /*
* Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <cassert.h> #include <cassert.h>
#include <platform_def.h> #include <platform_def.h>
#include <types.h> #include <stdint.h>
/* Forward declarations */ /* Forward declarations */
struct psci_power_state; struct psci_power_state;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include <debug.h> #include <debug.h>
#include <platform_def.h> #include <platform_def.h>
#include <stdint.h> #include <stdint.h>
#include <strings.h> #include <string.h>
#include <utils_def.h> #include <utils_def.h>
#include "hikey_private.h" #include "hikey_private.h"
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <types.h> #include <stdint.h>
typedef struct { typedef struct {
console_t console; console_t console;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
/* Includes */ /* Includes */
#include <types.h> #include <stdint.h>
#ifdef __cplusplus #ifdef __cplusplus
#define __I volatile /*!< Defines 'read only' permissions */ #define __I volatile /*!< Defines 'read only' permissions */
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <types.h> #include <stdint.h>
#define MU_ATR0_OFFSET1 0x0 #define MU_ATR0_OFFSET1 0x0
#define MU_ARR0_OFFSET1 0x10 #define MU_ARR0_OFFSET1 0x10
......
...@@ -5,15 +5,15 @@ ...@@ -5,15 +5,15 @@
*/ */
#include <arch_helpers.h> #include <arch_helpers.h>
#include <assert.h>
#include <debug.h> #include <debug.h>
#include <delay_timer.h>
#include <endian.h>
#include <errno.h> #include <errno.h>
#include <assert.h> #include <gicv2.h>
#include <mmio.h>
#include <platform.h> #include <platform.h>
#include <psci.h> #include <psci.h>
#include <mmio.h>
#include <sys/endian.h>
#include <gicv2.h>
#include <delay_timer.h>
#include "platform_def.h" #include "platform_def.h"
#define LS_SCFG_BASE 0x01570000 #define LS_SCFG_BASE 0x01570000
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <types.h> #include <stdint.h>
typedef struct { typedef struct {
console_t console; console_t console;
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
#ifndef __PLAT_LS_H__ #ifndef __PLAT_LS_H__
#define __PLAT_LS_H__ #define __PLAT_LS_H__
#include <sys/types.h>
#include <cpu_data.h> #include <cpu_data.h>
#include <stdint.h>
/* BL1 utility functions */ /* BL1 utility functions */
void ls_bl1_platform_setup(void); void ls_bl1_platform_setup(void);
......
/* /*
* Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
#include <string.h> #include <string.h>
#include <tegra_private.h> #include <tegra_private.h>
extern void memcpy16(void *dest, const void *src, unsigned int length);
/* SMMU IDs currently supported by the driver */ /* SMMU IDs currently supported by the driver */
enum { enum {
TEGRA_SMMU0, TEGRA_SMMU0,
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
/* length of Trusty's input parameters (in bytes) */ /* length of Trusty's input parameters (in bytes) */
#define TRUSTY_PARAMS_LEN_BYTES (4096*2) #define TRUSTY_PARAMS_LEN_BYTES (4096*2)
extern void memcpy16(void *dest, const void *src, unsigned int length);
extern void zeromem16(void *mem, unsigned int length); extern void zeromem16(void *mem, unsigned int length);
/******************************************************************************* /*******************************************************************************
......
/* /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <sys/types.h> #include <stdint.h>
/******************************************************************************* /*******************************************************************************
* StreamID to indicate no SMMU translations (requests to be steered on the * StreamID to indicate no SMMU translations (requests to be steered on the
......
/* /*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef __TEGRA_PLATFORM_H__ #ifndef __TEGRA_PLATFORM_H__
#define __TEGRA_PLATFORM_H__ #define __TEGRA_PLATFORM_H__
#include <sys/cdefs.h> #include <cdefs.h>
/* /*
* Tegra chip major/minor version * Tegra chip major/minor version
......
/* /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
#include <debug.h> #include <debug.h>
#include <delay_timer.h> #include <delay_timer.h>
#include <denver.h> #include <denver.h>
#include <errno.h>
#include <mce_private.h> #include <mce_private.h>
#include <mmio.h> #include <mmio.h>
#include <platform.h> #include <platform.h>
#include <sys/errno.h>
#include <t18x_ari.h> #include <t18x_ari.h>
/******************************************************************************* /*******************************************************************************
......
/* /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -12,11 +12,11 @@ ...@@ -12,11 +12,11 @@
#include <context_mgmt.h> #include <context_mgmt.h>
#include <debug.h> #include <debug.h>
#include <denver.h> #include <denver.h>
#include <errno.h>
#include <mce.h> #include <mce.h>
#include <mce_private.h> #include <mce_private.h>
#include <mmio.h> #include <mmio.h>
#include <string.h> #include <string.h>
#include <sys/errno.h>
#include <t18x_ari.h> #include <t18x_ari.h>
#include <tegra_def.h> #include <tegra_def.h>
#include <tegra_platform.h> #include <tegra_platform.h>
......
/* /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <debug.h> #include <debug.h>
#include <denver.h> #include <denver.h>
#include <errno.h>
#include <mce_private.h> #include <mce_private.h>
#include <mmio.h> #include <mmio.h>
#include <sys/errno.h>
#include <t18x_ari.h> #include <t18x_ari.h>
int32_t nvg_enter_cstate(uint32_t ari_base, uint32_t state, uint32_t wake_time) int32_t nvg_enter_cstate(uint32_t ari_base, uint32_t state, uint32_t wake_time)
......
/* /*
* Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#include <t18x_ari.h> #include <t18x_ari.h>
#include <tegra_private.h> #include <tegra_private.h>
extern void memcpy16(void *dest, const void *src, unsigned int length);
extern void prepare_cpu_pwr_dwn(void); extern void prepare_cpu_pwr_dwn(void);
extern void tegra186_cpu_reset_handler(void); extern void tegra186_cpu_reset_handler(void);
extern uint32_t __tegra186_cpu_reset_handler_end, extern uint32_t __tegra186_cpu_reset_handler_end,
......
/* /*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#define CPU_RESET_MODE_AA64 1 #define CPU_RESET_MODE_AA64 1
extern void memcpy16(void *dest, const void *src, unsigned int length);
extern uint64_t tegra_bl31_phys_base; extern uint64_t tegra_bl31_phys_base;
extern uint64_t __tegra186_cpu_reset_handler_end; extern uint64_t __tegra186_cpu_reset_handler_end;
......
/* /*
* Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -7,9 +7,8 @@ ...@@ -7,9 +7,8 @@
#ifndef __QEMU_PRIVATE_H #ifndef __QEMU_PRIVATE_H
#define __QEMU_PRIVATE_H #define __QEMU_PRIVATE_H
#include <sys/types.h> #include <stdint.h>
#include <xlat_tables_defs.h>
#include "../../bl1/bl1_private.h" #include "../../bl1/bl1_private.h"
void qemu_configure_mmu_secure(unsigned long total_base, void qemu_configure_mmu_secure(unsigned long total_base,
......
/* /*
* Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <arch.h> #include <arch.h>
#include <platform_def.h> #include <platform_def.h>
#include <sys/types.h> #include <stdint.h>
#include "qemu_private.h" #include "qemu_private.h"
/* The power domain tree descriptor */ /* The power domain tree descriptor */
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <cdefs.h>
#include <cdn_dp.h> #include <cdn_dp.h>
#include <smccc.h> #include <smccc.h>
#include <stdlib.h> #include <stdlib.h>
......
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