- Modify the freebios tree so the pci config space api is mostly in sync between

code that runs without ram and code that runs with ram.


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@869 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Eric Biederman
2003-06-12 19:23:51 +00:00
parent 540ae01cd3
commit 7a5416af95
9 changed files with 174 additions and 226 deletions

View File

@@ -2,14 +2,15 @@
#define PCI_OPS_H
#include <stdint.h>
struct device;
#include <device/device.h>
uint8_t pci_read_config8(device_t dev, unsigned where);
uint16_t pci_read_config16(device_t dev, unsigned where);
uint32_t pci_read_config32(device_t dev, unsigned where);
void pci_write_config8(device_t dev, unsigned where, uint8_t val);
void pci_write_config16(device_t dev, unsigned where, uint16_t val);
void pci_write_config32(device_t dev, unsigned where, uint32_t val);
int pci_read_config_byte(struct device *dev, uint8_t where, uint8_t *val);
int pci_read_config_word(struct device *dev, uint8_t where, uint16_t *val);
int pci_read_config_dword(struct device *dev, uint8_t where, uint32_t *val);
int pci_write_config_byte(struct device *dev, uint8_t where, uint8_t val);
int pci_write_config_word(struct device *dev, uint8_t where, uint16_t val);
int pci_write_config_dword(struct device *dev, uint8_t where, uint32_t val);
void pci_set_method(void);
#endif /* PCI_OPS_H */