Changeset a6e2293 in rtems


Ignore:
Timestamp:
Apr 26, 2005, 11:05:10 PM (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
8b9e7f1
Parents:
b607d9c8
Message:

2005-04-26 Joel Sherrill <joel@…>

  • pci/pcibios.c: Reformatted.
Location:
c/src/lib/libbsp/i386/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/shared/ChangeLog

    rb607d9c8 ra6e2293  
     12005-04-26      Joel Sherrill <joel@OARcorp.com>
     2
     3        * pci/pcibios.c: Reformatted.
     4
    152005-04-18      Eric Valette <eric.valette@free.fr>
    26
  • c/src/lib/libbsp/i386/shared/pci/pcibios.c

    rb607d9c8 ra6e2293  
    185185{
    186186  int status;
    187   int sig;
     187  int sig = 0;
    188188
    189189  status = pcib_find_by_devid( vendorid, deviceid, instance, &sig );
     
    242242   if( ucBusCount == 0xff )
    243243   {
    244       unsigned char bus,dev,hd;
    245       unsigned int d;
     244      unsigned char bus;
     245      unsigned char dev;
     246      unsigned char hd = 0;
     247      unsigned int d = 0;
    246248      int sig;
    247249
    248250      ucBusCount = 0;
    249251
    250       for(bus=0; bus< 0xff; bus++)
    251       { 
    252          for(dev=0; dev<PCI_MAX_DEVICES; dev++)
    253          {
     252      for (bus=0; bus< 0xff; bus++) { 
     253         for (dev=0; dev<PCI_MAX_DEVICES; dev++) {
    254254            sig = PCIB_DEVSIG_MAKE(bus,dev,0);
    255255            pcib_conf_read32(sig, PCI_VENDOR_ID, &d);
    256256
    257             if( d != -1 )
    258             {
     257            if( d != -1 ) {
    259258               pcib_conf_read32(sig, PCI_CLASS_REVISION, &d);
    260259               
    261                if( (d >> 16) == PCI_CLASS_BRIDGE_PCI )
    262                {
     260               if( (d >> 16) == PCI_CLASS_BRIDGE_PCI ) {
    263261                  pcib_conf_read8(sig, PCI_SUBORDINATE_BUS, &hd);
    264262
     
    271269      }
    272270
    273       if( ucBusCount == 0 )
    274       {
     271      if( ucBusCount == 0 ) {
    275272         printk("BusCountPCI() found 0 busses, assuming 1\n");
    276273         ucBusCount = 1;
    277       }
    278       else if( ucBusCount == 0xff )
    279       {
     274      } else if( ucBusCount == 0xff ) {
    280275         printk("BusCountPCI() found 0xff busses, assuming 1\n");
    281276         ucBusCount = 1;
     
    292287{
    293288   int sig;
    294    unsigned int d;
    295    unsigned short s;
    296    unsigned char bus,dev,fun,hd;
     289   unsigned int d = 0;
     290   unsigned short s = 0;
     291   unsigned char bus;
     292   unsigned char dev;
     293   unsigned char fun;
     294   unsigned char hd = 0;
    297295
    298296   for (bus=0; bus<BusCountPCI(); bus++)
Note: See TracChangeset for help on using the changeset viewer.