mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 20:19:12 +08:00
2005-03-14 Joel Sherrill <joel@OARcorp.com>
* include/rtems/pci.h: Continue PCI API unification. All use pci_find_device().
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2005-03-14 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* include/rtems/pci.h: Continue PCI API unification. All use
|
||||
pci_find_device().
|
||||
|
||||
2005-03-14 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
|
||||
|
||||
* libnetworking/netinet/in_cksum_m68k.h: Change back to lcsum[12]_lbl
|
||||
|
||||
@@ -1201,6 +1201,22 @@ pci_write_config_dword(
|
||||
bus, slot, function, where, val);
|
||||
}
|
||||
|
||||
/* scan for a specific device */
|
||||
/* find a particular PCI device
|
||||
* (currently, only bus0 is scanned for device/fun0)
|
||||
*
|
||||
* RETURNS: zero on success, bus/dev/fun in *pbus / *pdev / *pfun
|
||||
*/
|
||||
int
|
||||
pci_find_device(
|
||||
unsigned short vendorid,
|
||||
unsigned short deviceid,
|
||||
int instance,
|
||||
int *pbus,
|
||||
int *pdev,
|
||||
int *pfun
|
||||
);
|
||||
|
||||
/*
|
||||
* Return the number of PCI busses in the system
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user