Changeset 6e242f0 in rtems


Ignore:
Timestamp:
Aug 5, 2002, 8:13:45 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
0aa6384
Parents:
8b58477
Message:

2002-08-05 Eric Norum <eric.norum@…>

  • pci/pcibios.c: Per PR262, removed all asserts so probes for devices that are not present will work. This lets you have multiple PCI Ethernet drivers in an application and dynamically use the one for the card othat is present.
Location:
c/src/lib/libbsp/i386/shared
Files:
2 edited

Legend:

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

    r8b58477 r6e242f0  
     12002-08-05      Eric Norum <eric.norum@usask.ca>
     2
     3        * pci/pcibios.c: Per PR262, removed all asserts so probes for
     4        devices that are not present will work.  This lets you have
     5        multiple PCI Ethernet drivers in an application and dynamically
     6        use the one for the card othat is present.
     7
    182002-07-16      Eric Norum <eric.norum@usask.ca>
    29
  • c/src/lib/libbsp/i386/shared/pci/pcibios.c

    r8b58477 r6e242f0  
    1010#include <rtems.h>
    1111#include <bsp.h>
    12 #include <assert.h>
    1312#include <pcibios.h>
    1413
     
    7675    {
    7776      /* BIOS-32 not found */
    78       assert(0);
    7977      return PCIB_ERR_NOTPRESENT;
    8078    }
     
    10098    {
    10199      /* Not found */
    102       assert(0);
    103100      return PCIB_ERR_NOTPRESENT;
    104101    }
     
    125122    {
    126123      /* Not found */
    127       assert(0);
    128124      return PCIB_ERR_NOTPRESENT;
    129125    }
     
    132128    {
    133129      /* Signature does not match */
    134       assert(0);
    135130      return PCIB_ERR_NOTPRESENT;
    136131    }
     
    151146  if(!pcibInitialized)
    152147    {
    153       assert(0);
    154148      return PCIB_ERR_UNINITIALIZED;
    155149    }
     
    187181  if(!pcibInitialized)
    188182    {
    189       assert(0);
    190183      return PCIB_ERR_UNINITIALIZED;
    191184    }
     
    227220  if(!pcibInitialized)
    228221    {
    229       assert(0);
    230222      return PCIB_ERR_UNINITIALIZED;
    231223    }
     
    259251  if(!pcibInitialized)
    260252    {
    261       assert(0);
    262253      return PCIB_ERR_UNINITIALIZED;
    263254    }
     
    298289  if(!pcibInitialized)
    299290    {
    300       assert(0);
    301291      return PCIB_ERR_UNINITIALIZED;
    302292    }
     
    337327  if(!pcibInitialized)
    338328    {
    339       assert(0);
    340329      return PCIB_ERR_UNINITIALIZED;
    341330    }
     
    376365  if(!pcibInitialized)
    377366    {
    378       assert(0);
    379367      return PCIB_ERR_UNINITIALIZED;
    380368    }
     
    408396  if(!pcibInitialized)
    409397    {
    410       assert(0);
    411398      return PCIB_ERR_UNINITIALIZED;
    412399    }
     
    442429  if(!pcibInitialized)
    443430    {
    444       assert(0);
    445431      return PCIB_ERR_UNINITIALIZED;
    446432    }
     
    483469      return PCIB_ERR_BADREG;
    484470    default:
    485       assert(0);
    486471      break;
    487472    }
Note: See TracChangeset for help on using the changeset viewer.