Changeset 2a07d0f4 in rtems


Ignore:
Timestamp:
Sep 6, 2007, 3:41:33 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
f8359c9
Parents:
f752c24
Message:

2007-09-06 Joel Sherrill <joel.sherrill@…>

  • pci/pci.c: Fix some warnings.
Location:
c/src/lib/libbsp/sparc/leon3
Files:
2 edited

Legend:

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

    rf752c24 r2a07d0f4  
     12007-09-06      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * pci/pci.c: Fix some warnings.
     4
    152007-09-06      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/sparc/leon3/pci/pci.c

    rf752c24 r2a07d0f4  
    2626
    2727#include <pci.h>
     28#include <stdlib.h>
    2829#include <rtems/bspIo.h>
    2930
     
    9899
    99100int
    100 pci_read_config_dword(unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, unsigned int *val) {
    101 
     101pci_read_config_dword(
     102  unsigned char bus,
     103  unsigned char slot,
     104  unsigned char function,
     105  unsigned char offset,
     106  unsigned int *val
     107)
     108{
    102109    volatile unsigned int *pci_conf;
    103110
     
    109116    }
    110117
    111     pci_conf = PCI_CONF + ((slot<<11) | (function<<8) | offset);
     118    pci_conf = (volatile unsigned int *) (PCI_CONF +
     119        ((slot<<11) | (function<<8) | offset));
    112120
    113121#ifdef BT_ENABLED
     
    161169
    162170
    163     pci_conf = PCI_CONF + ((slot<<11) | (function<<8) | (offset & ~3));
     171    pci_conf = (volatile unsigned int *) (PCI_CONF +
     172                  ((slot<<11) | (function<<8) | (offset & ~3)));
    164173
    165174#ifdef BT_ENABLED
Note: See TracChangeset for help on using the changeset viewer.