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:
@ -5,6 +5,7 @@
|
|||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
#include <device/cardbus.h>
|
#include <device/cardbus.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* I don't think this code is quite correct but it is close.
|
* I don't think this code is quite correct but it is close.
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
struct device *add_cpu_device(struct bus *cpu_bus, unsigned int apic_id,
|
struct device *add_cpu_device(struct bus *cpu_bus, unsigned int apic_id,
|
||||||
int enabled)
|
int enabled)
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
#include <commonlib/bsd/helpers.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/path.h>
|
#include <device/path.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <device/resource.h>
|
#include <device/resource.h>
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given a Local APIC ID, find the device structure.
|
* Given a Local APIC ID, find the device structure.
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <device/dram/spd.h>
|
#include <device/dram/spd.h>
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
const char *spd_manufacturer_name(const uint16_t mod_id)
|
const char *spd_manufacturer_name(const uint16_t mod_id)
|
||||||
{
|
{
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/gpio.h>
|
#include <device/gpio.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
const struct gpio_operations *dev_get_gpio_ops(struct device *dev)
|
const struct gpio_operations *dev_get_gpio_ops(struct device *dev)
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <commonlib/bsd/helpers.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
#include <device/device.h>
|
||||||
#include <device/smbus.h>
|
#include <device/smbus.h>
|
||||||
#include <device/i2c_bus.h>
|
#include <device/i2c_bus.h>
|
||||||
#include <commonlib/endian.h>
|
#include <commonlib/endian.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
bool i2c_dev_detect(struct device *dev, unsigned int addr)
|
bool i2c_dev_detect(struct device *dev, unsigned int addr)
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <commonlib/bsd/helpers.h>
|
||||||
#include <device/mmio.h>
|
#include <device/mmio.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
/* Helper functions for various MMIO access patterns. */
|
/* Helper functions for various MMIO access patterns. */
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#define __DEVICE_OPROM_REALMODE_X86_H__
|
#define __DEVICE_OPROM_REALMODE_X86_H__
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#define REALMODE_BASE ((void *)0x600)
|
#define REALMODE_BASE ((void *)0x600)
|
||||||
|
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
#include <commonlib/bsd/helpers.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const unsigned char subclass_id;
|
const unsigned char subclass_id;
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
#include <device/pcix.h>
|
#include <device/pcix.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
static void pcix_tune_dev(struct device *dev)
|
static void pcix_tune_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#include <console/console.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
|
#include <console/console.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pnp.h>
|
#include <device/pnp.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
/* PNP config mode wrappers */
|
/* PNP config mode wrappers */
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
struct pick_largest_state {
|
struct pick_largest_state {
|
||||||
struct resource *last;
|
struct resource *last;
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
#include <commonlib/bsd/helpers.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <memrange.h>
|
#include <memrange.h>
|
||||||
#include <post.h>
|
#include <post.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
static const char *resource2str(const struct resource *res)
|
static const char *resource2str(const struct resource *res)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user