diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-01 13:43:02 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-03-01 20:32:15 +0000 |
commit | f1b58b78351d7ed220673e688a2f7bc9e96da4e2 (patch) | |
tree | d8aae223f0e426f189cb4750b972a31e09d46b88 /src/include/device | |
parent | 44e89af6e609874f2f18d30f1e66dce8b5a98eff (diff) |
device/pci: Fix PCI accessor headers
PCI config accessors are no longer indirectly included
from <arch/io.h> use <device/pci_ops.h> instead.
Change-Id: I2adf46430a33bc52ef69d1bf7dca4655fc8475bd
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/31675
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/include/device')
-rw-r--r-- | src/include/device/pci.h | 1 | ||||
-rw-r--r-- | src/include/device/pci_ops.h | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/include/device/pci.h b/src/include/device/pci.h index 71d6b2025a..814433dec8 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -23,7 +23,6 @@ #include <device/pci_def.h> #include <device/resource.h> #include <device/device.h> -#include <device/pci_ops.h> #include <device/pci_rom.h> diff --git a/src/include/device/pci_ops.h b/src/include/device/pci_ops.h index 54284f590a..1cf5b77bf7 100644 --- a/src/include/device/pci_ops.h +++ b/src/include/device/pci_ops.h @@ -12,7 +12,7 @@ u32 pci_read_config32(struct device *dev, unsigned int where); void pci_write_config8(struct device *dev, unsigned int where, u8 val); void pci_write_config16(struct device *dev, unsigned int where, u16 val); void pci_write_config32(struct device *dev, unsigned int where, u32 val); - +const struct pci_bus_operations *pci_bus_default_ops(struct device *dev); #endif #ifdef __SIMPLE_DEVICE__ @@ -99,6 +99,4 @@ void pci_update_config32(struct device *dev, int reg, u32 mask, u32 or) pci_write_config32(dev, reg, reg32); } -const struct pci_bus_operations *pci_bus_default_ops(struct device *dev); - #endif /* PCI_OPS_H */ |