Changeset bd6566e6 in rtems for cpukit/include


Ignore:
Timestamp:
Nov 10, 2004, 11:57:58 PM (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a7cddf52
Parents:
ac8f462
Message:

2004-11-10 Joel Sherrill <joel@…>

  • 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/pci.h

    rac8f462 rbd6566e6  
    11071107} pci_config;
    11081108
    1109 extern pci_config pci;
     1109extern pci_config BSP_pci_configuration;
    11101110
    11111111extern inline int
    11121112pci_read_config_byte(unsigned char bus, unsigned char slot, unsigned char function,
    11131113                         unsigned char where, unsigned char * val) {
    1114         return pci.pci_functions->read_config_byte(bus, slot, function, where, val);
     1114        return BSP_pci_configuration.pci_functions->read_config_byte(bus, slot, function, where, val);
    11151115}
    11161116
     
    11181118pci_read_config_word(unsigned char bus, unsigned char slot, unsigned char function,
    11191119                         unsigned char where, unsigned short * val) {
    1120         return pci.pci_functions->read_config_word(bus, slot, function, where, val);
     1120        return BSP_pci_configuration.pci_functions->read_config_word(bus, slot, function, where, val);
    11211121}
    11221122
     
    11241124pci_read_config_dword(unsigned char bus, unsigned char slot, unsigned char function,
    11251125                         unsigned char where, unsigned int * val) {
    1126         return pci.pci_functions->read_config_dword(bus, slot, function, where, val);
     1126        return BSP_pci_configuration.pci_functions->read_config_dword(bus, slot, function, where, val);
    11271127}
    11281128
     
    11301130pci_write_config_byte(unsigned char bus, unsigned char slot, unsigned char function,
    11311131                         unsigned char where, unsigned char val) {
    1132         return pci.pci_functions->write_config_byte(bus, slot, function, where, val);
     1132        return BSP_pci_configuration.pci_functions->write_config_byte(bus, slot, function, where, val);
    11331133}
    11341134
     
    11361136pci_write_config_word(unsigned char bus, unsigned char slot, unsigned char function,
    11371137                         unsigned char where, unsigned short val) {
    1138         return pci.pci_functions->write_config_word(bus, slot, function, where, val);
     1138        return BSP_pci_configuration.pci_functions->write_config_word(bus, slot, function, where, val);
    11391139}
    11401140
     
    11421142pci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char function,
    11431143                         unsigned char where, unsigned int val) {
    1144         return pci.pci_functions->write_config_dword(bus, slot, function, where, val);
     1144        return BSP_pci_configuration.pci_functions->write_config_dword(bus, slot, function, where, val);
    11451145}
    11461146
Note: See TracChangeset for help on using the changeset viewer.