src/device: Clean up includes
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: Idd78271f2158bdc29ce9ac8d81f46ad8cbe84c5e Reviewed-on: https://review.coreboot.org/c/coreboot/+/68205 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
This commit is contained in:
parent
45d3205ba5
commit
04c3b5a016
|
@ -5,6 +5,7 @@
|
|||
#include <device/pci.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <device/cardbus.h>
|
||||
#include <types.h>
|
||||
|
||||
/*
|
||||
* I don't think this code is quite correct but it is close.
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <device/device.h>
|
||||
#include <console/console.h>
|
||||
#include <stddef.h>
|
||||
|
||||
struct device *add_cpu_device(struct bus *cpu_bus, unsigned int apic_id,
|
||||
int enabled)
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <commonlib/bsd/helpers.h>
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/path.h>
|
||||
#include <device/pci_def.h>
|
||||
#include <device/resource.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <types.h>
|
||||
|
||||
/**
|
||||
* Given a Local APIC ID, find the device structure.
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <device/dram/spd.h>
|
||||
#include <spd.h>
|
||||
#include <stddef.h>
|
||||
|
||||
const char *spd_manufacturer_name(const uint16_t mod_id)
|
||||
{
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/gpio.h>
|
||||
#include <stddef.h>
|
||||
|
||||
const struct gpio_operations *dev_get_gpio_ops(struct device *dev)
|
||||
{
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <stdint.h>
|
||||
#include <commonlib/bsd/helpers.h>
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/smbus.h>
|
||||
#include <device/i2c_bus.h>
|
||||
#include <commonlib/endian.h>
|
||||
#include <types.h>
|
||||
|
||||
bool i2c_dev_detect(struct device *dev, unsigned int addr)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <assert.h>
|
||||
#include <commonlib/bsd/helpers.h>
|
||||
#include <device/mmio.h>
|
||||
#include <types.h>
|
||||
|
||||
/* Helper functions for various MMIO access patterns. */
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define __DEVICE_OPROM_REALMODE_X86_H__
|
||||
|
||||
#include <arch/cpu.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define REALMODE_BASE ((void *)0x600)
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <commonlib/bsd/helpers.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct {
|
||||
const unsigned char subclass_id;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <device/pci.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <device/pcix.h>
|
||||
#include <stdint.h>
|
||||
|
||||
static void pcix_tune_dev(struct device *dev)
|
||||
{
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <console/console.h>
|
||||
#include <stdint.h>
|
||||
#include <arch/io.h>
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pnp.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/* PNP config mode wrappers */
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <device/device.h>
|
||||
#include <stddef.h>
|
||||
|
||||
struct pick_largest_state {
|
||||
struct resource *last;
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <commonlib/bsd/helpers.h>
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <memrange.h>
|
||||
#include <post.h>
|
||||
#include <types.h>
|
||||
|
||||
static const char *resource2str(const struct resource *res)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue