blob: 3310e10bf42a3e6a89710a6d637a065e16910c54 [file] [log] [blame]
Eric Biederman5899fd82003-04-24 06:25:08 +00001#ifndef PCI_OPS_H
2#define PCI_OPS_H
3
4#include <stdint.h>
Eric Biederman7a5416a2003-06-12 19:23:51 +00005#include <device/device.h>
Eric Biederman018d8dd2004-11-04 11:04:33 +00006#include <arch/pci_ops.h>
Eric Biederman5899fd82003-04-24 06:25:08 +00007
Kyösti Mälkkief844012013-06-25 23:17:43 +03008#ifndef __SIMPLE_DEVICE__
Edward O'Callaghan016732f2014-10-29 03:04:40 +11009u8 pci_read_config8(struct device *dev, unsigned int where);
10u16 pci_read_config16(struct device *dev, unsigned int where);
11u32 pci_read_config32(struct device *dev, unsigned int where);
12void pci_write_config8(struct device *dev, unsigned int where, u8 val);
13void pci_write_config16(struct device *dev, unsigned int where, u16 val);
14void pci_write_config32(struct device *dev, unsigned int where, u32 val);
Eric Biederman7a5416a2003-06-12 19:23:51 +000015
Stefan Reinauer24d1d4b2013-03-21 11:51:41 -070016#endif
Stefan Reinauer43b29cf2009-03-06 19:11:52 +000017
Eric Biederman5899fd82003-04-24 06:25:08 +000018#endif /* PCI_OPS_H */