Changeset 3c236cc in rtems


Ignore:
Timestamp:
Feb 5, 2014, 4:17:53 PM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
ddc4002
Parents:
acf7047e
git-author:
Daniel Hellstrom <daniel@…> (02/05/14 16:17:53)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:20)
Message:

LEON PCI: fix for PCI host bridge driver CFG space access

Location:
c/src/lib/libbsp/sparc/shared/pci
Files:
3 edited

Legend:

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

    racf7047e r3c236cc  
    188188        if (dev == HOST_TGT)
    189189                bus = devfn = 0;
    190         if (bus == 0)
     190        else if (bus == 0)
    191191                devfn = PCI_DEV_DEVFUNC(dev) + PCI_DEV(0, 6, 0);
    192192        else
     
    261261        if (dev == HOST_TGT)
    262262                bus = devfn = 0;
    263         if (bus == 0)
     263        else if (bus == 0)
    264264                devfn = PCI_DEV_DEVFUNC(dev) + PCI_DEV(0, 6, 0);
    265265        else
  • c/src/lib/libbsp/sparc/shared/pci/grpci2.c

    racf7047e r3c236cc  
    406406        if (dev == HOST_TGT)
    407407                bus = devfn = 0;
    408         if (bus == 0)
     408        else if (bus == 0)
    409409                devfn = PCI_DEV_DEVFUNC(dev) + PCI_DEV(0, 6, 0);
    410410        else
  • c/src/lib/libbsp/sparc/shared/pci/pcif.c

    racf7047e r3c236cc  
    175175        if (dev == HOST_TGT)
    176176                bus = devfn = 0;
    177         if (bus == 0)
     177        else if (bus == 0)
    178178                devfn = PCI_DEV_DEVFUNC(dev) + PCI_DEV(0, 6, 0);
    179179        else
     
    242242        if (dev == HOST_TGT)
    243243                bus = devfn = 0;
    244         if (bus == 0)
     244        else if (bus == 0)
    245245                devfn = PCI_DEV_DEVFUNC(dev) + PCI_DEV(0, 6, 0);
    246246        else
Note: See TracChangeset for help on using the changeset viewer.