2003-04-24 08:25:08 +02:00
|
|
|
#ifndef PCI_OPS_H
|
|
|
|
#define PCI_OPS_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2003-06-12 21:23:51 +02:00
|
|
|
#include <device/device.h>
|
2004-11-04 12:04:33 +01:00
|
|
|
#include <arch/pci_ops.h>
|
2003-06-12 21:23:51 +02:00
|
|
|
|
2010-11-05 00:23:47 +01:00
|
|
|
u8 pci_read_config8(device_t dev, unsigned int where);
|
|
|
|
u16 pci_read_config16(device_t dev, unsigned int where);
|
|
|
|
u32 pci_read_config32(device_t dev, unsigned int where);
|
|
|
|
void pci_write_config8(device_t dev, unsigned int where, u8 val);
|
|
|
|
void pci_write_config16(device_t dev, unsigned int where, u16 val);
|
|
|
|
void pci_write_config32(device_t dev, unsigned int where, u32 val);
|
2003-06-12 21:23:51 +02:00
|
|
|
|
2009-06-30 17:17:49 +02:00
|
|
|
#if CONFIG_MMCONF_SUPPORT
|
2010-11-05 00:23:47 +01:00
|
|
|
u8 pci_mmio_read_config8(device_t dev, unsigned int where);
|
|
|
|
u16 pci_mmio_read_config16(device_t dev, unsigned int where);
|
|
|
|
u32 pci_mmio_read_config32(device_t dev, unsigned int where);
|
|
|
|
void pci_mmio_write_config8(device_t dev, unsigned int where, u8 val);
|
|
|
|
void pci_mmio_write_config16(device_t dev, unsigned int where, u16 val);
|
|
|
|
void pci_mmio_write_config32(device_t dev, unsigned int where, u32 val);
|
2009-03-06 20:11:52 +01:00
|
|
|
#endif
|
|
|
|
|
2003-04-24 08:25:08 +02:00
|
|
|
#endif /* PCI_OPS_H */
|