blob: 7f897370ecf5d7e3630b24a10624dd5dd1f96200 [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 Biederman5899fd82003-04-24 06:25:08 +00006
Eric Biederman7a5416a2003-06-12 19:23:51 +00007uint8_t pci_read_config8(device_t dev, unsigned where);
8uint16_t pci_read_config16(device_t dev, unsigned where);
9uint32_t pci_read_config32(device_t dev, unsigned where);
10void pci_write_config8(device_t dev, unsigned where, uint8_t val);
11void pci_write_config16(device_t dev, unsigned where, uint16_t val);
12void pci_write_config32(device_t dev, unsigned where, uint32_t val);
13
Eric Biederman5899fd82003-04-24 06:25:08 +000014void pci_set_method(void);
15
16#endif /* PCI_OPS_H */