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,7 +7,7 @@
#ifndef PL061_GPIO_H
#define PL061_GPIO_H
#include <gpio.h>
#include <drivers/gpio.h>
void pl061_gpio_register(uintptr_t base_addr, int gpio_dev);
void pl061_gpio_init(void);
......
......@@ -8,7 +8,8 @@
#define SMMU_V3_H
#include <stdint.h>
#include <utils_def.h>
#include <lib/utils_def.h>
/* SMMUv3 register offsets from device base */
#define SMMU_S_IDR1 U(0x8004)
......
......@@ -7,9 +7,9 @@
#ifndef SP804_DELAY_TIMER_H
#define SP804_DELAY_TIMER_H
#include <delay_timer.h>
#include <stdint.h>
#include <drivers/delay_timer.h>
uint32_t sp804_get_timer_value(void);
......
......@@ -7,7 +7,7 @@
#ifndef SP805_H
#define SP805_H
#include <utils_def.h>
#include <lib/utils_def.h>
/* SP805 register offset */
#define SP805_WDOG_LOAD_OFF UL(0x000)
......
......@@ -7,8 +7,8 @@
#ifndef TZC380_H
#define TZC380_H
#include <tzc_common.h>
#include <utils_def.h>
#include <drivers/arm/tzc_common.h>
#include <lib/utils_def.h>
#define TZC380_CONFIGURATION_OFF U(0x000)
#define ACTION_OFF U(0x004)
......
......@@ -7,8 +7,8 @@
#ifndef TZC400_H
#define TZC400_H
#include <tzc_common.h>
#include <utils_def.h>
#include <drivers/arm/tzc_common.h>
#include <lib/utils_def.h>
#define BUILD_CONFIG_OFF U(0x000)
#define GATE_KEEPER_OFF U(0x008)
......
......@@ -7,7 +7,7 @@
#ifndef TZC_COMMON_H
#define TZC_COMMON_H
#include <utils_def.h>
#include <lib/utils_def.h>
/*
* Offset of core registers from the start of the base of configuration
......
......@@ -7,8 +7,8 @@
#ifndef TZC_DMC500_H
#define TZC_DMC500_H
#include <tzc_common.h>
#include <utils_def.h>
#include <drivers/arm/tzc_common.h>
#include <lib/utils_def.h>
#define SI_STATUS_OFFSET U(0x000)
#define SI_STATE_CTRL_OFFSET U(0x030)
......
......@@ -7,7 +7,7 @@
#ifndef TZC_DMC620_H
#define TZC_DMC620_H
#include <utils_def.h>
#include <lib/utils_def.h>
/* DMC-620 memc register offsets */
#define DMC620_MEMC_STATUS U(0x0000)
......
......@@ -9,10 +9,10 @@
#if TRUSTED_BOARD_BOOT
#include <auth_common.h>
#include <cot_def.h>
#include <img_parser_mod.h>
#include <tbbr_img_def.h>
#include <common/tbbr/cot_def.h>
#include <common/tbbr/tbbr_img_def.h>
#include <drivers/auth/auth_common.h>
#include <drivers/auth/img_parser_mod.h>
/*
* Image flags
......
......@@ -7,7 +7,7 @@
#ifndef IMG_PARSER_MOD_H
#define IMG_PARSER_MOD_H
#include <auth_common.h>
#include <drivers/auth/auth_common.h>
/*
* Return values
......
......@@ -7,7 +7,7 @@
#ifndef CDNS_UART_H
#define CDNS_UART_H
#include <console.h>
#include <drivers/console.h>
/* This is very minimalistic and will only work in QEMU. */
......
......@@ -7,7 +7,7 @@
#ifndef CONSOLE_H
#define CONSOLE_H
#include <utils_def.h>
#include <lib/utils_def.h>
#define CONSOLE_T_NEXT (U(0) * REGSZ)
#define CONSOLE_T_FLAGS (U(1) * REGSZ)
......@@ -44,7 +44,9 @@ typedef struct console {
int (*const flush)(struct console *console);
/* Additional private driver data may follow here. */
} console_t;
#include <console_assertions.h> /* offset macro assertions for console_t */
/* offset macro assertions for console_t */
#include <drivers/console_assertions.h>
/*
* NOTE: There is no publicly accessible console_register() function. Consoles
......
......@@ -7,7 +7,7 @@
#ifndef CONSOLE_ASSERTIONS_H
#define CONSOLE_ASSERTIONS_H
#include <cassert.h>
#include <lib/cassert.h>
/*
* This file contains some separate assertions about console_t, moved here to
......
......@@ -7,7 +7,7 @@
#ifndef CBMEM_CONSOLE_H
#define CBMEM_CONSOLE_H
#include <console.h>
#include <drivers/console.h>
#define CONSOLE_T_CBMC_BASE CONSOLE_T_DRVDATA
#define CONSOLE_T_CBMC_SIZE (CONSOLE_T_DRVDATA + REGSZ)
......
......@@ -7,7 +7,7 @@
#ifndef IO_BLOCK_H
#define IO_BLOCK_H
#include <io_storage.h>
#include <drivers/io/io_storage.h>
/* block devices ops */
typedef struct io_block_ops {
......
......@@ -7,9 +7,9 @@
#ifndef IO_DRIVER_H
#define IO_DRIVER_H
#include <io_storage.h>
#include <stdint.h>
#include <drivers/io/io_storage.h>
/* Generic IO entity structure,representing an accessible IO construct on the
* device, such as a file */
......
......@@ -10,8 +10,8 @@
#include <errno.h>
#include <stdint.h>
#include <stdio.h> /* For ssize_t */
#include <uuid.h>
#include <tools_share/uuid.h>
/* Device type which can be used to enable policy decisions about which device
* to access */
......
......@@ -11,7 +11,7 @@
#define CCU_H
#ifndef __ASSEMBLY__
#include <addr_map.h>
#include <drivers/marvell/addr_map.h>
#endif
/* CCU registers definitions */
......
......@@ -10,7 +10,7 @@
#ifndef GWIN_H
#define GWIN_H
#include <addr_map.h>
#include <drivers/marvell/addr_map.h>
int init_gwin(int ap_index);
void gwin_temp_win_insert(int ap_index, struct addr_map_win *win, int size);
......
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