summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2005-03-14 21:48:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2005-03-14 21:48:18 +0000
commit4b9d865afe7cb7310430f68ddab26872b2577922 (patch)
treee3cfb1e498df4ec5233c5443bcc2cd9ab053affb /cpukit/include
parent2005-03-14 Thomas Doerfler <Thomas.Doerfler@imd-systems.de> (diff)
downloadrtems-4b9d865afe7cb7310430f68ddab26872b2577922.tar.bz2
2005-03-14 Joel Sherrill <joel@OARcorp.com>
* include/rtems/pci.h: Continue PCI API unification. All use pci_find_device().
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/pci.h16
1 files changed, 16 insertions, 0 deletions
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
*/