Changeset e99a41f in rtems


Ignore:
Timestamp:
Mar 31, 2007, 4:05:28 AM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
294638bc
Parents:
5a232b6e
Message:

Reflect changes to pci-API.

Location:
c/src/lib/libbsp/powerpc/mvme5500/pci
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mvme5500/pci/detect_host_bridge.c

    r5a232b6e re99a41f  
    2828unsigned long _BSP_clear_hostbridge_errors(int enableMCP, int quiet)
    2929{
    30   unsigned int pcidata, pcidata1;
     30  uint32_t pcidata, pcidata1;
    3131  int PciLocal, busNumber=0;
    3232 
  • c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c

    r5a232b6e re99a41f  
    7676/* Please note that PCI0 and PCI1 does not correlate with the busNum 0 and 1.
    7777 */
    78 static int direct_pci_read_config_byte(unsigned char bus,unsigned char dev,unsigned char func,
    79 unsigned char offset,unsigned char *val)
     78static int direct_pci_read_config_byte(unsigned char bus,unsigned char dev,
     79  unsigned char func, unsigned char offset, uint8_t *val)
    8080{
    8181  volatile unsigned char *config_addr, *config_data;
     
    102102
    103103static int direct_pci_read_config_word(unsigned char bus, unsigned char dev,
    104 unsigned char func, unsigned char offset, unsigned short *val)
     104  unsigned char func, unsigned char offset, uint16_t *val)
    105105{
    106106  volatile unsigned char *config_addr, *config_data;
     
    128128
    129129static int direct_pci_read_config_dword(unsigned char bus, unsigned char dev,
    130 unsigned char func, unsigned char offset, unsigned int *val)
     130  unsigned char func, unsigned char offset, uint32_t *val)
    131131{
    132132  volatile unsigned char *config_addr, *config_data;
     
    153153}
    154154
    155 static int direct_pci_write_config_byte(unsigned char bus, unsigned char dev,unsigned char func, unsigned char offset, unsigned char val)
     155static int direct_pci_write_config_byte(unsigned char bus, unsigned char dev,
     156  unsigned char func, unsigned char offset, uint8_t val)
    156157{
    157158  volatile unsigned char *config_addr, *config_data;
     
    178179}
    179180
    180 static int direct_pci_write_config_word(unsigned char bus, unsigned char dev,unsigned char func, unsigned char offset, unsigned short val)
     181static int direct_pci_write_config_word(unsigned char bus, unsigned char dev,
     182  unsigned char func, unsigned char offset, uint16_t val)
    181183{
    182184  volatile unsigned char *config_addr, *config_data;
     
    202204}
    203205
    204 static int direct_pci_write_config_dword(unsigned char bus,unsigned char dev,unsigned char func, unsigned char offset, unsigned int val)
     206static int direct_pci_write_config_dword(unsigned char bus, unsigned char dev,
     207  unsigned char func, unsigned char offset, uint32_t val)
    205208{
    206209  volatile unsigned char *config_addr, *config_data;
     
    250253  int deviceFound;
    251254  unsigned char ucBusNumber, ucSlotNumber, ucFnNumber, ucNumFuncs;
    252   unsigned int ulHeader;
    253   unsigned int pcidata, ulClass, ulDeviceID;
     255  uint32_t ulHeader;
     256  uint32_t pcidata, ulClass, ulDeviceID;
    254257
    255258  pci_interface();
  • c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c

    r5a232b6e re99a41f  
    8181                   int instance, int *pbus, int *pdev, int *pfun )
    8282{
    83   unsigned int d;
    84   unsigned short s;
    85   unsigned char bus,dev,fun,hd;
     83  uint32_t      d;
     84  uint16_t      s;
     85  unsigned char bus,dev;
     86  uint8_t       fun, hd;
    8687
    8788  for (bus=0; bus<BSP_MAX_PCI_BUS;  bus++) {
Note: See TracChangeset for help on using the changeset viewer.