51730c46920618ddfdfe2f75dd59717874b8af0a
[coreboot.git] / src / arch / i386 / include / arch / pci_ops.h
1 #ifndef ARCH_I386_PCI_OPS_H
2 #define ARCH_I386_PCI_OPS_H
3
4 struct pci_ops {
5         uint8_t (*read8)   (uint8_t bus, int devfn, int where);
6         uint16_t (*read16) (uint8_t bus, int devfn, int where);
7         uint32_t (*read32) (uint8_t bus, int devfn, int where);
8         void (*write8)  (uint8_t bus, int devfn, int where, uint8_t val);
9         void (*write16) (uint8_t bus, int devfn, int where, uint16_t val);
10         void (*write32) (uint8_t bus, int devfn, int where, uint32_t val);
11 };
12 extern const struct pci_ops *conf;
13
14 void pci_set_method_conf1(void);
15 void pci_set_method_conf2(void);
16 void pci_set_method(void);
17
18 #endif /* ARCH_I386_PCI_OPS_H */