From 4b9d865afe7cb7310430f68ddab26872b2577922 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 14 Mar 2005 21:48:18 +0000 Subject: 2005-03-14 Joel Sherrill * include/rtems/pci.h: Continue PCI API unification. All use pci_find_device(). --- cpukit/ChangeLog | 5 +++++ cpukit/include/rtems/pci.h | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 1d503e295f..e37f47313c 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2005-03-14 Joel Sherrill + + * include/rtems/pci.h: Continue PCI API unification. All use + pci_find_device(). + 2005-03-14 Thomas Doerfler * libnetworking/netinet/in_cksum_m68k.h: Change back to lcsum[12]_lbl diff --git a/cpukit/include/rtems/pci.h b/cpukit/include/rtems/pci.h index 4cd90f6afb..f06745c356 100644 --- a/cpukit/include/rtems/pci.h +++ b/cpukit/include/rtems/pci.h @@ -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 */ -- cgit v1.2.3