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
|
|
|
|
2013-06-25 22:17:43 +02:00
|
|
|
#ifndef __SIMPLE_DEVICE__
|
2014-10-28 17:04:40 +01:00
|
|
|
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);
|
2003-06-12 21:23:51 +02:00
|
|
|
|
2013-03-21 19:51:41 +01:00
|
|
|
#endif
|
2009-03-06 20:11:52 +01:00
|
|
|
|
2003-04-24 08:25:08 +02:00
|
|
|
#endif /* PCI_OPS_H */
|