Ignore:
Timestamp:
Oct 1, 2009, 12:24:10 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
60b728b5
Parents:
d070357
Message:

2009-10-01 Ralf Corsépius <ralf.corsepius@…>

PR 1445/BSPs

  • pci/pci.c: Rename pci_[read|write]_config* functions into BSP_pci_[read|write]_config* and make them static.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon2/pci/pci.c

    rd070357 r38386473  
    106106 */
    107107 
    108 int
    109 pci_read_config_dword(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned int *val) {
     108static int
     109BSP_pci_read_config_dword(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned int *val) {
    110110
    111111    volatile unsigned int data;
     
    137137
    138138
    139 int
    140 pci_read_config_word(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned short *val) {
     139static int
     140BSP_pci_read_config_word(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned short *val) {
    141141    unsigned int v;
    142142
     
    150150
    151151
    152 int
    153 pci_read_config_byte(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned char *val) {
     152static int
     153BSP_pci_read_config_byte(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned char *val) {
    154154    unsigned int v;
    155155
     
    162162
    163163
    164 int
    165 pci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned int val) {
     164static int
     165BSP_pci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned int val) {
    166166
    167167    if (offset & 3) return PCIBIOS_BAD_REGISTER_NUMBER;
     
    188188
    189189
    190 int
    191 pci_write_config_word(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned short val) {
     190static int
     191BSP_pci_write_config_word(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned short val) {
    192192    unsigned int v;
    193193
     
    202202
    203203
    204 int
    205 pci_write_config_byte(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned char val) {
     204static int
     205BSP_pci_write_config_byte(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned char val) {
    206206    unsigned int v;
    207207
     
    216216
    217217const pci_config_access_functions pci_access_functions = {
    218     pci_read_config_byte,
    219     pci_read_config_word,
    220     pci_read_config_dword,
    221     pci_write_config_byte,
    222     pci_write_config_word,
    223     pci_write_config_dword
     218    BSP_pci_read_config_byte,
     219    BSP_pci_read_config_word,
     220    BSP_pci_read_config_dword,
     221    BSP_pci_write_config_byte,
     222    BSP_pci_write_config_word,
     223    BSP_pci_write_config_dword
    224224};
    225225
Note: See TracChangeset for help on using the changeset viewer.