summaryrefslogtreecommitdiffstats
path: root/include/pci.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-27 22:13:27 -0700
committerSimon Glass <sjg@chromium.org>2015-02-05 22:16:42 -0700
commit250e039da8c7e485dabdc84f0457b2a901757e28 (patch)
tree0ca867115a43018fa6bb64e43e0791219eb1239c /include/pci.h
parentcfcf8ea2d7d35c25ef9c7d2a6b8063e7123818b7 (diff)
downloadtalos-obmc-uboot-250e039da8c7e485dabdc84f0457b2a901757e28.tar.gz
talos-obmc-uboot-250e039da8c7e485dabdc84f0457b2a901757e28.zip
pci: Add a function to find a device by class
There is an existing function prototype in the header file but it is not implemented. Implement something similar. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/pci.h b/include/pci.h
index 4fbb8f6729..004a048d2f 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -644,8 +644,7 @@ extern int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev);
extern pci_dev_t pci_find_device (unsigned int vendor, unsigned int device, int index);
extern pci_dev_t pci_find_devices (struct pci_device_id *ids, int index);
-extern pci_dev_t pci_find_class(int wanted_class, int wanted_sub_code,
- int wanted_prog_if, int index);
+pci_dev_t pci_find_class(unsigned int find_class, int index);
extern int pci_hose_config_device(struct pci_controller *hose,
pci_dev_t dev,
OpenPOWER on IntegriCloud