device/pci_ops: Apply some symmetry in headers
To make PCI driver side arch-agnostic, function declarations have to be in symmetrical header file locations. From the driver side, the correct file to include is now <device/pci_ops.h> Change-Id: I8076a4867fd7472beaae0a021dcf0d9c7c905871 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/31306 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
@@ -70,4 +70,46 @@ void pci_mmio_write_config32(pci_devfn_t dev, unsigned int where, u32 value)
|
||||
write32(addr, value);
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_MMCONF_SUPPORT)
|
||||
|
||||
#ifdef __SIMPLE_DEVICE__
|
||||
static __always_inline
|
||||
uint8_t pci_read_config8(pci_devfn_t dev, unsigned int where)
|
||||
{
|
||||
return pci_mmio_read_config8(dev, where);
|
||||
}
|
||||
|
||||
static __always_inline
|
||||
uint16_t pci_read_config16(pci_devfn_t dev, unsigned int where)
|
||||
{
|
||||
return pci_mmio_read_config16(dev, where);
|
||||
}
|
||||
|
||||
static __always_inline
|
||||
uint32_t pci_read_config32(pci_devfn_t dev, unsigned int where)
|
||||
{
|
||||
return pci_mmio_read_config32(dev, where);
|
||||
}
|
||||
|
||||
static __always_inline
|
||||
void pci_write_config8(pci_devfn_t dev, unsigned int where, uint8_t value)
|
||||
{
|
||||
pci_mmio_write_config8(dev, where, value);
|
||||
}
|
||||
|
||||
static __always_inline
|
||||
void pci_write_config16(pci_devfn_t dev, unsigned int where, uint16_t value)
|
||||
{
|
||||
pci_mmio_write_config16(dev, where, value);
|
||||
}
|
||||
|
||||
static __always_inline
|
||||
void pci_write_config32(pci_devfn_t dev, unsigned int where, uint32_t value)
|
||||
{
|
||||
pci_mmio_write_config32(dev, where, value);
|
||||
}
|
||||
#endif /* __SIMPLE_DEVICE__ */
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _PCI_MMIO_CFG_H */
|
||||
|
Reference in New Issue
Block a user