mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-16 04:18:59 +00:00
2004-11-10 Joel Sherrill <joel@oarcorp.com>
* include/rtems/pci.h: BSPs use the name BSP_pci_configuration not pci. Also need to address that this largely duplicates libbsp/powerpc/pci/pci.h but that file is not used when both are included due to the same double inclusion protection.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2004-11-10 Joel Sherrill <joel@oarcorp.com>
|
||||||
|
|
||||||
|
* include/rtems/pci.h: BSPs use the name BSP_pci_configuration not pci.
|
||||||
|
Also need to address that this largely duplicates
|
||||||
|
libbsp/powerpc/pci/pci.h but that file is not used when both are
|
||||||
|
included due to the same double inclusion protection.
|
||||||
|
|
||||||
2004-11-09 Joel Sherrill <joel@OARcorp.com>
|
2004-11-09 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* libcsupport/include/stdint.h: Fixed name in @file.
|
* libcsupport/include/stdint.h: Fixed name in @file.
|
||||||
|
|||||||
@@ -1106,42 +1106,42 @@ typedef struct {
|
|||||||
pci_config_access_functions* pci_functions;
|
pci_config_access_functions* pci_functions;
|
||||||
} pci_config;
|
} pci_config;
|
||||||
|
|
||||||
extern pci_config pci;
|
extern pci_config BSP_pci_configuration;
|
||||||
|
|
||||||
extern 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 pci.pci_functions->read_config_byte(bus, slot, function, where, val);
|
return BSP_pci_configuration.pci_functions->read_config_byte(bus, slot, function, where, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern 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 pci.pci_functions->read_config_word(bus, slot, function, where, val);
|
return BSP_pci_configuration.pci_functions->read_config_word(bus, slot, function, where, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern 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 pci.pci_functions->read_config_dword(bus, slot, function, where, val);
|
return BSP_pci_configuration.pci_functions->read_config_dword(bus, slot, function, where, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern 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 pci.pci_functions->write_config_byte(bus, slot, function, where, val);
|
return BSP_pci_configuration.pci_functions->write_config_byte(bus, slot, function, where, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern 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 pci.pci_functions->write_config_word(bus, slot, function, where, val);
|
return BSP_pci_configuration.pci_functions->write_config_word(bus, slot, function, where, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern 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 pci.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