summaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-07-12 09:03:22 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-07-26 21:37:35 +0000
commit5817c56d193515d39f402ac95104b10f6de6e41f (patch)
tree5f15ea89efcbc7514ce7b8b5a2dcd7245ec3c2da /src/include/device
parent722e610fbc287a44112db3cef8996ebba0343440 (diff)
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>
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/i2c_bus.h1
-rw-r--r--src/include/device/i2c_simple.h1
-rw-r--r--src/include/device/pci_ehci.h1
-rw-r--r--src/include/device/pci_rom.h3
-rw-r--r--src/include/device/pcix.h3
-rw-r--r--src/include/device/smbus_host.h1
-rw-r--r--src/include/device/soundwire.h3
7 files changed, 10 insertions, 3 deletions
diff --git a/src/include/device/i2c_bus.h b/src/include/device/i2c_bus.h
index 0e35a61176..b5e77105b5 100644
--- a/src/include/device/i2c_bus.h
+++ b/src/include/device/i2c_bus.h
@@ -3,6 +3,7 @@
#ifndef _DEVICE_I2C_BUS_H_
#define _DEVICE_I2C_BUS_H_
+#include <stddef.h>
#include <stdint.h>
#include <device/i2c.h>
#include <device/device.h>
diff --git a/src/include/device/i2c_simple.h b/src/include/device/i2c_simple.h
index 03d68281ef..de1c0eb4b8 100644
--- a/src/include/device/i2c_simple.h
+++ b/src/include/device/i2c_simple.h
@@ -5,6 +5,7 @@
#include <commonlib/helpers.h>
#include <device/i2c.h>
+#include <stdint.h>
int platform_i2c_transfer(unsigned int bus, struct i2c_msg *segments,
int count);
diff --git a/src/include/device/pci_ehci.h b/src/include/device/pci_ehci.h
index c3bcdc90f8..e7a445d377 100644
--- a/src/include/device/pci_ehci.h
+++ b/src/include/device/pci_ehci.h
@@ -5,6 +5,7 @@
#include <device/device.h>
#include <device/pci_type.h>
+#include <stdint.h>
#define EHCI_BAR_INDEX 0x10
#define PCI_EHCI_CLASSCODE 0x0c0320 /* USB2.0 with EHCI controller */
diff --git a/src/include/device/pci_rom.h b/src/include/device/pci_rom.h
index c49389f396..8b04d09987 100644
--- a/src/include/device/pci_rom.h
+++ b/src/include/device/pci_rom.h
@@ -1,8 +1,9 @@
#ifndef PCI_ROM_H
#define PCI_ROM_H
+
#include <endian.h>
-#include <stddef.h>
#include <acpi/acpi.h>
+#include <stdint.h>
#define PCI_ROM_HDR 0xAA55
#define PCI_DATA_HDR ((uint32_t) (('R' << 24) | ('I' << 16) | ('C' << 8) | 'P'))
diff --git a/src/include/device/pcix.h b/src/include/device/pcix.h
index ca482d26ac..def7f6cca2 100644
--- a/src/include/device/pcix.h
+++ b/src/include/device/pcix.h
@@ -2,6 +2,9 @@
#define DEVICE_PCIX_H
/* (c) 2005 Linux Networx GPL see COPYING for details */
+#include <device/device.h>
+#include <stdint.h>
+
void pcix_scan_bridge(struct device *dev);
const char *pcix_speed(u16 sstatus);
diff --git a/src/include/device/smbus_host.h b/src/include/device/smbus_host.h
index 4bc80092b5..e113aec94a 100644
--- a/src/include/device/smbus_host.h
+++ b/src/include/device/smbus_host.h
@@ -3,6 +3,7 @@
#ifndef __DEVICE_SMBUS_HOST_H__
#define __DEVICE_SMBUS_HOST_H__
+#include <stddef.h>
#include <stdint.h>
#include <console/console.h>
diff --git a/src/include/device/soundwire.h b/src/include/device/soundwire.h
index 85e3186219..6f966ae2f4 100644
--- a/src/include/device/soundwire.h
+++ b/src/include/device/soundwire.h
@@ -16,8 +16,7 @@
#ifndef __DEVICE_SOUNDWIRE_H__
#define __DEVICE_SOUNDWIRE_H__
-#include <stdbool.h>
-#include <stdint.h>
+#include <types.h>
/**
* enum soundwire_limits - Limits on number of SoundWire devices in topology.