forked from Imagelibrary/rtems
2009-09-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/include/pci.h: Revert extern inline patch.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2009-09-28 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* shared/include/pci.h: Revert extern inline patch.
|
||||||
|
|
||||||
2009-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2009-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* shared/include/pci.h: Change extern inline to static inline.
|
* shared/include/pci.h: Change extern inline to static inline.
|
||||||
|
|||||||
@@ -1115,37 +1115,37 @@ typedef struct {
|
|||||||
|
|
||||||
extern pci_config BSP_pci_configuration;
|
extern pci_config BSP_pci_configuration;
|
||||||
|
|
||||||
static inline int
|
extern inline int
|
||||||
pci_read_config_byte(unsigned char bus, unsigned char slot, unsigned char function,
|
pci_read_config_byte(unsigned char bus, unsigned char slot, unsigned char function,
|
||||||
unsigned char where, unsigned char * val) {
|
unsigned char where, unsigned char * val) {
|
||||||
return BSP_pci_configuration.pci_functions->read_config_byte(bus, slot, function, where, val);
|
return BSP_pci_configuration.pci_functions->read_config_byte(bus, slot, function, where, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
extern inline int
|
||||||
pci_read_config_word(unsigned char bus, unsigned char slot, unsigned char function,
|
pci_read_config_word(unsigned char bus, unsigned char slot, unsigned char function,
|
||||||
unsigned char where, unsigned short * val) {
|
unsigned char where, unsigned short * val) {
|
||||||
return BSP_pci_configuration.pci_functions->read_config_word(bus, slot, function, where, val);
|
return BSP_pci_configuration.pci_functions->read_config_word(bus, slot, function, where, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
extern inline int
|
||||||
pci_read_config_dword(unsigned char bus, unsigned char slot, unsigned char function,
|
pci_read_config_dword(unsigned char bus, unsigned char slot, unsigned char function,
|
||||||
unsigned char where, unsigned int * val) {
|
unsigned char where, unsigned int * val) {
|
||||||
return BSP_pci_configuration.pci_functions->read_config_dword(bus, slot, function, where, val);
|
return BSP_pci_configuration.pci_functions->read_config_dword(bus, slot, function, where, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
extern inline int
|
||||||
pci_write_config_byte(unsigned char bus, unsigned char slot, unsigned char function,
|
pci_write_config_byte(unsigned char bus, unsigned char slot, unsigned char function,
|
||||||
unsigned char where, unsigned char val) {
|
unsigned char where, unsigned char val) {
|
||||||
return BSP_pci_configuration.pci_functions->write_config_byte(bus, slot, function, where, val);
|
return BSP_pci_configuration.pci_functions->write_config_byte(bus, slot, function, where, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
extern inline int
|
||||||
pci_write_config_word(unsigned char bus, unsigned char slot, unsigned char function,
|
pci_write_config_word(unsigned char bus, unsigned char slot, unsigned char function,
|
||||||
unsigned char where, unsigned short val) {
|
unsigned char where, unsigned short val) {
|
||||||
return BSP_pci_configuration.pci_functions->write_config_word(bus, slot, function, where, val);
|
return BSP_pci_configuration.pci_functions->write_config_word(bus, slot, function, where, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
extern inline int
|
||||||
pci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char function,
|
pci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char function,
|
||||||
unsigned char where, unsigned int val) {
|
unsigned char where, unsigned int val) {
|
||||||
return BSP_pci_configuration.pci_functions->write_config_dword(bus, slot, function, where, val);
|
return BSP_pci_configuration.pci_functions->write_config_dword(bus, slot, function, where, val);
|
||||||
|
|||||||
Reference in New Issue
Block a user