Changeset 38386473 in rtems


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.
Location:
c/src/lib/libbsp/sparc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon2/ChangeLog

    rd070357 r38386473  
     12009-10-01      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        PR 1445/BSPs
     4        * pci/pci.c: Rename pci_[read|write]_config* functions into
     5        BSP_pci_[read|write]_config* and make them static.
     6
    172009-09-29      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • 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
  • c/src/lib/libbsp/sparc/leon3/ChangeLog

    rd070357 r38386473  
     12009-10-01      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        PR 1445/BSPs
     4        * pci/pci.c: Rename pci_[read|write]_config* functions into
     5        BSP_pci_[read|write]_config* and make them static.
     6
    172009-09-29      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • 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.