Change-Id: I7cf7c236f94314d7970b19063d73db788c8267e5 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/7227 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.h@gmx.de>
27 lines
1.0 KiB
C
27 lines
1.0 KiB
C
#ifndef PCI_OPS_H
|
|
#define PCI_OPS_H
|
|
|
|
#include <stdint.h>
|
|
#include <device/device.h>
|
|
#include <arch/pci_ops.h>
|
|
|
|
#ifndef __SIMPLE_DEVICE__
|
|
u8 pci_read_config8(struct device *dev, unsigned int where);
|
|
u16 pci_read_config16(struct device *dev, unsigned int where);
|
|
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);
|
|
|
|
#if CONFIG_MMCONF_SUPPORT
|
|
u8 pci_mmio_read_config8(struct device *dev, unsigned int where);
|
|
u16 pci_mmio_read_config16(struct device *dev, unsigned int where);
|
|
u32 pci_mmio_read_config32(struct device *dev, unsigned int where);
|
|
void pci_mmio_write_config8(struct device *dev, unsigned int where, u8 val);
|
|
void pci_mmio_write_config16(struct device *dev, unsigned int where, u16 val);
|
|
void pci_mmio_write_config32(struct device *dev, unsigned int where, u32 val);
|
|
#endif
|
|
#endif
|
|
|
|
#endif /* PCI_OPS_H */
|