src/include: Add missing includes

Change-Id: I746ea7805bae553a146130994d8174aa2e189610
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43368
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Elyes HAOUAS
2020-07-12 09:03:22 +02:00
committed by Patrick Georgi
parent 722e610fbc
commit 5817c56d19
31 changed files with 45 additions and 4 deletions

View File

@ -4,8 +4,8 @@
#define __ACPI_ACPI_DEVICE_H__ #define __ACPI_ACPI_DEVICE_H__
#include <device/i2c.h> #include <device/i2c.h>
#include <stdint.h>
#include <spi-generic.h> #include <spi-generic.h>
#include <types.h>
enum acpi_dp_type { enum acpi_dp_type {
ACPI_DP_TYPE_UNKNOWN, ACPI_DP_TYPE_UNKNOWN,

View File

@ -11,6 +11,8 @@
#ifndef __ACPI_ACPI_IVRS_H__ #ifndef __ACPI_ACPI_IVRS_H__
#define __ACPI_ACPI_IVRS_H__ #define __ACPI_ACPI_IVRS_H__
#include <stdint.h>
/* I/O Virtualization Reporting Structure (IVRS) */ /* I/O Virtualization Reporting Structure (IVRS) */
#define IVHD_BLOCK_TYPE_LEGACY__FIXED 0x10 #define IVHD_BLOCK_TYPE_LEGACY__FIXED 0x10
#define IVHD_BLOCK_TYPE_FULL__FIXED 0x11 #define IVHD_BLOCK_TYPE_FULL__FIXED 0x11

View File

@ -3,6 +3,7 @@
#ifndef __ACPI_ACPIGEN_H__ #ifndef __ACPI_ACPIGEN_H__
#define __ACPI_ACPIGEN_H__ #define __ACPI_ACPIGEN_H__
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_device.h> #include <acpi/acpi_device.h>

View File

@ -5,6 +5,7 @@
#include <device/device.h> #include <device/device.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h>
/* A common idiom is to use a default value if none is provided (i.e., == 0) */ /* A common idiom is to use a default value if none is provided (i.e., == 0) */
#define DEFAULT_IF_0(thing, default_) ((thing) ? (thing) : (default_)) #define DEFAULT_IF_0(thing, default_) ((thing) ? (thing) : (default_))

View File

@ -5,6 +5,7 @@
#include <arch/hlt.h> #include <arch/hlt.h>
#include <console/console.h> #include <console/console.h>
#include <stdint.h>
/* TODO: Fix vendorcode headers to not define macros coreboot uses or to be more /* TODO: Fix vendorcode headers to not define macros coreboot uses or to be more
properly isolated. */ properly isolated. */

View File

@ -3,6 +3,8 @@
#include <commonlib/coreboot_tables.h> #include <commonlib/coreboot_tables.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h>
/* function prototypes for building the coreboot table */ /* function prototypes for building the coreboot table */
/* /*

View File

@ -5,6 +5,8 @@
#include <commonlib/cbfs.h> #include <commonlib/cbfs.h>
#include <program_loading.h> #include <program_loading.h>
#include <stddef.h>
#include <stdint.h>
/*********************************************** /***********************************************
* Perform CBFS operations on the boot device. * * Perform CBFS operations on the boot device. *

View File

@ -41,6 +41,7 @@
#if !defined(__ASSEMBLER__) #if !defined(__ASSEMBLER__)
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include <stdint.h>
void amd_setup_mtrrs(void); void amd_setup_mtrrs(void);
struct device; struct device;

View File

@ -2,6 +2,7 @@
#define CPU_CPU_H #define CPU_CPU_H
#include <arch/cpu.h> #include <arch/cpu.h>
#include <stdint.h>
void cpu_initialize(unsigned int cpu_index); void cpu_initialize(unsigned int cpu_index);
/* Returns default APIC id based on logical_cpu number or < 0 on failure. */ /* Returns default APIC id based on logical_cpu number or < 0 on failure. */

View File

@ -13,6 +13,8 @@
#ifndef __P6_L2_CACHE_H #ifndef __P6_L2_CACHE_H
#define __P6_L2_CACHE_H #define __P6_L2_CACHE_H
#include <stdint.h>
#define EBL_CR_POWERON 0x2A #define EBL_CR_POWERON 0x2A
#define BBL_CR_D0 0x88 #define BBL_CR_D0 0x88

View File

@ -2,6 +2,7 @@
#define CPU_X86_BIST_H #define CPU_X86_BIST_H
#include <console/console.h> #include <console/console.h>
#include <stdint.h>
static inline void report_bist_failure(u32 bist) static inline void report_bist_failure(u32 bist)
{ {

View File

@ -5,6 +5,8 @@
#include <arch/smp/atomic.h> #include <arch/smp/atomic.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <stddef.h>
#include <stdint.h>
#define CACHELINE_SIZE 64 #define CACHELINE_SIZE 64

View File

@ -3,6 +3,8 @@
#ifndef __X86_SMI_DEPRECATED_H__ #ifndef __X86_SMI_DEPRECATED_H__
#define __X86_SMI_DEPRECATED_H__ #define __X86_SMI_DEPRECATED_H__
#include <stdint.h>
#if CONFIG(PARALLEL_MP) || !CONFIG(HAVE_SMI_HANDLER) #if CONFIG(PARALLEL_MP) || !CONFIG(HAVE_SMI_HANDLER)
/* Empty stubs for platforms without SMI handlers. */ /* Empty stubs for platforms without SMI handlers. */
static inline void smm_init(void) { } static inline void smm_init(void) { }

View File

@ -3,6 +3,7 @@
#ifndef CRC_BYTE_H #ifndef CRC_BYTE_H
#define CRC_BYTE_H #define CRC_BYTE_H
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
/* This function is used to calculate crc7 byte by byte, with polynomial /* This function is used to calculate crc7 byte by byte, with polynomial

View File

@ -3,6 +3,7 @@
#ifndef _DEVICE_I2C_BUS_H_ #ifndef _DEVICE_I2C_BUS_H_
#define _DEVICE_I2C_BUS_H_ #define _DEVICE_I2C_BUS_H_
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <device/i2c.h> #include <device/i2c.h>
#include <device/device.h> #include <device/device.h>

View File

@ -5,6 +5,7 @@
#include <commonlib/helpers.h> #include <commonlib/helpers.h>
#include <device/i2c.h> #include <device/i2c.h>
#include <stdint.h>
int platform_i2c_transfer(unsigned int bus, struct i2c_msg *segments, int platform_i2c_transfer(unsigned int bus, struct i2c_msg *segments,
int count); int count);

View File

@ -5,6 +5,7 @@
#include <device/device.h> #include <device/device.h>
#include <device/pci_type.h> #include <device/pci_type.h>
#include <stdint.h>
#define EHCI_BAR_INDEX 0x10 #define EHCI_BAR_INDEX 0x10
#define PCI_EHCI_CLASSCODE 0x0c0320 /* USB2.0 with EHCI controller */ #define PCI_EHCI_CLASSCODE 0x0c0320 /* USB2.0 with EHCI controller */

View File

@ -1,8 +1,9 @@
#ifndef PCI_ROM_H #ifndef PCI_ROM_H
#define PCI_ROM_H #define PCI_ROM_H
#include <endian.h> #include <endian.h>
#include <stddef.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <stdint.h>
#define PCI_ROM_HDR 0xAA55 #define PCI_ROM_HDR 0xAA55
#define PCI_DATA_HDR ((uint32_t) (('R' << 24) | ('I' << 16) | ('C' << 8) | 'P')) #define PCI_DATA_HDR ((uint32_t) (('R' << 24) | ('I' << 16) | ('C' << 8) | 'P'))

View File

@ -2,6 +2,9 @@
#define DEVICE_PCIX_H #define DEVICE_PCIX_H
/* (c) 2005 Linux Networx GPL see COPYING for details */ /* (c) 2005 Linux Networx GPL see COPYING for details */
#include <device/device.h>
#include <stdint.h>
void pcix_scan_bridge(struct device *dev); void pcix_scan_bridge(struct device *dev);
const char *pcix_speed(u16 sstatus); const char *pcix_speed(u16 sstatus);

View File

@ -3,6 +3,7 @@
#ifndef __DEVICE_SMBUS_HOST_H__ #ifndef __DEVICE_SMBUS_HOST_H__
#define __DEVICE_SMBUS_HOST_H__ #define __DEVICE_SMBUS_HOST_H__
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <console/console.h> #include <console/console.h>

View File

@ -16,8 +16,7 @@
#ifndef __DEVICE_SOUNDWIRE_H__ #ifndef __DEVICE_SOUNDWIRE_H__
#define __DEVICE_SOUNDWIRE_H__ #define __DEVICE_SOUNDWIRE_H__
#include <stdbool.h> #include <types.h>
#include <stdint.h>
/** /**
* enum soundwire_limits - Limits on number of SoundWire devices in topology. * enum soundwire_limits - Limits on number of SoundWire devices in topology.

View File

@ -4,6 +4,7 @@
#ifndef __DEVICE_TREE_H__ #ifndef __DEVICE_TREE_H__
#define __DEVICE_TREE_H__ #define __DEVICE_TREE_H__
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <list.h> #include <list.h>

View File

@ -3,6 +3,8 @@
#ifndef ELOG_H_ #ifndef ELOG_H_
#define ELOG_H_ #define ELOG_H_
#include <stdint.h>
#define MAX_EVENT_SIZE 0x7F #define MAX_EVENT_SIZE 0x7F
/* End of log */ /* End of log */

View File

@ -5,6 +5,8 @@
#include <commonlib/bsd/fmap_serialized.h> #include <commonlib/bsd/fmap_serialized.h>
#include <commonlib/region.h> #include <commonlib/region.h>
#include <stddef.h>
#include <stdint.h>
/* Locate the named area in the fmap and fill in a region device representing /* Locate the named area in the fmap and fill in a region device representing
* that area. The region is a sub-region of the readonly boot media. Return * that area. The region is a sub-region of the readonly boot media. Return

View File

@ -4,6 +4,7 @@
#include <device/resource.h> #include <device/resource.h>
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h>
/* A memranges structure consists of a list of range_entry(s). The structure /* A memranges structure consists of a list of range_entry(s). The structure
* is exposed so that a memranges can be used on the stack if needed. */ * is exposed so that a memranges can be used on the stack if needed. */

View File

@ -3,6 +3,8 @@
#ifndef PC80_I8259_H #ifndef PC80_I8259_H
#define PC80_I8259_H #define PC80_I8259_H
#include <stdint.h>
/* /*
* IRQ numbers and common usage * IRQ numbers and common usage
* If an IRQ does not say it is 'Reserved' * If an IRQ does not say it is 'Reserved'

View File

@ -4,6 +4,7 @@
#define REGION_FILE_H #define REGION_FILE_H
#include <commonlib/region.h> #include <commonlib/region.h>
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
/* /*

View File

@ -4,6 +4,8 @@
#define __SPD_CACHE_H #define __SPD_CACHE_H
#include <spd_bin.h> #include <spd_bin.h>
#include <stddef.h>
#include <stdint.h>
#define SPD_CACHE_FMAP_NAME "RW_SPD_CACHE" #define SPD_CACHE_FMAP_NAME "RW_SPD_CACHE"
#define SC_SPD_NUMS (CONFIG_DIMM_MAX) #define SC_SPD_NUMS (CONFIG_DIMM_MAX)

View File

@ -3,6 +3,8 @@
#ifndef _SPI_SDCARD_H_ #ifndef _SPI_SDCARD_H_
#define _SPI_SDCARD_H_ #define _SPI_SDCARD_H_
#include <stddef.h>
struct spi_sdcard { struct spi_sdcard {
int type; int type;
struct spi_slave slave; struct spi_slave slave;

View File

@ -4,6 +4,7 @@
#define DEVICE_PNP_HWM5_CONF_H #define DEVICE_PNP_HWM5_CONF_H
#include <device/pnp.h> #include <device/pnp.h>
#include <stdint.h>
/* The address/data register pair for the indirect/indexed IO space of the /* The address/data register pair for the indirect/indexed IO space of the
* hardware monitor (HWM) that does temperature and voltage sensing and fan * hardware monitor (HWM) that does temperature and voltage sensing and fan

View File

@ -4,6 +4,7 @@
#define __TIMESTAMP_H__ #define __TIMESTAMP_H__
#include <commonlib/timestamp_serialized.h> #include <commonlib/timestamp_serialized.h>
#include <stdint.h>
#if CONFIG(COLLECT_TIMESTAMPS) #if CONFIG(COLLECT_TIMESTAMPS)
/* /*