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/leon3/pci/pci.c

    rd070357 r38386473  
    9898 
    9999
    100 int
    101 pci_read_config_dword(
     100static int
     101BSP_pci_read_config_dword(
    102102  unsigned char bus,
    103103  unsigned char slot,
     
    135135
    136136
    137 int
    138 pci_read_config_word(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned short *val) {
     137static int
     138BSP_pci_read_config_word(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned short *val) {
    139139    unsigned int v;
    140140
     
    148148
    149149
    150 int
    151 pci_read_config_byte(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned char *val) {
     150static int
     151BSP_pci_read_config_byte(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned char *val) {
    152152    unsigned int v;
    153153
     
    160160
    161161
    162 int
    163 pci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned int val) {
     162static int
     163BSP_pci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned int val) {
    164164
    165165    volatile unsigned int *pci_conf;
     
    186186
    187187
    188 int
    189 pci_write_config_word(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned short val) {
     188static int
     189BSP_pci_write_config_word(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned short val) {
    190190    unsigned int v;
    191191
     
    200200
    201201
    202 int
    203 pci_write_config_byte(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned char val) {
     202static int
     203BSP_pci_write_config_byte(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned char val) {
    204204    unsigned int v;
    205205
     
    214214
    215215const pci_config_access_functions pci_access_functions = {
    216     pci_read_config_byte,
    217     pci_read_config_word,
    218     pci_read_config_dword,
    219     pci_write_config_byte,
    220     pci_write_config_word,
    221     pci_write_config_dword
     216    BSP_pci_read_config_byte,
     217    BSP_pci_read_config_word,
     218    BSP_pci_read_config_dword,
     219    BSP_pci_write_config_byte,
     220    BSP_pci_write_config_word,
     221    BSP_pci_write_config_dword
    222222};
    223223
Note: See TracChangeset for help on using the changeset viewer.