Changeset c2701a0 in rtems


Ignore:
Timestamp:
Mar 14, 2005, 9:42:08 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
48e329fb
Parents:
cd53898
Message:

2005-03-14 Joel Sherrill <joel@…>

  • pci/pcibios.c, pci/pcibios.h: Continue PCI API unification. All use pci_find_device().
Location:
c/src/lib/libbsp/i386/shared
Files:
3 edited

Legend:

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

    rcd53898 rc2701a0  
     12005-03-14      Joel Sherrill <joel@OARcorp.com>
     2
     3        * pci/pcibios.c, pci/pcibios.h: Continue PCI API unification. All use
     4        pci_find_device().
     5
    162005-01-04      Joel Sherrill <joel@OARcorp.com>
    27
  • c/src/lib/libbsp/i386/shared/pci/pcibios.c

    rcd53898 rc2701a0  
    172172
    173173  return pcib_convert_err((pcibExchg[0] >> 8) & 0xff);
     174}
     175
     176int
     177pci_find_device(
     178  unsigned short vendorid,
     179  unsigned short deviceid,
     180  int instance,
     181  int *pbus,
     182  int *pdev,
     183  int *pfun
     184)
     185{
     186  int status;
     187  int sig;
     188
     189  status = pcib_find_by_devid( vendorid, deviceid, instance, &sig );
     190
     191  *pbus = PCIB_DEVSIG_BUS(sig);
     192  *pdev = PCIB_DEVSIG_DEV(sig);
     193  *pfun = PCIB_DEVSIG_FUNC(sig);
     194  return status;
    174195}
    175196
  • c/src/lib/libbsp/i386/shared/pci/pcibios.h

    rcd53898 rc2701a0  
    2828#endif
    2929
    30 int pcib_find_by_devid(int vendorId, int devId, int idx, int *sig);
    3130int pcib_find_by_class(int classCode, int idx, int *sig);
    3231int pcib_special_cycle(int busNo, int data);
Note: See TracChangeset for help on using the changeset viewer.