summaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-08-03 01:14:45 -0700
committerSimon Glass <sjg@chromium.org>2018-08-08 12:49:31 +0100
commit4345998ae9dfad7ba0beb54ad4322134557504a9 (patch)
treebb4e8d49af00eb5cc0028ff9efa73dc2f0b61207 /include/pci.h
parented698aa7dee0fd078b4eb2fc54e64cfeaa68061a (diff)
pci: sandbox: Support dynamically binding device driver
At present all emulated sandbox pci devices must be present in the device tree in order to be used. The real world pci uclass driver supports pci device driver matching, and we should add such support on sandbox too. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pci.h b/include/pci.h
index 427094cd70..c0ae5d1673 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -1441,11 +1441,12 @@ struct dm_pci_emul_ops {
*
* @bus: PCI bus to search
* @find_devfn: PCI device and function address (PCI_DEVFN())
+ * @containerp: Returns container device if found
* @emulp: Returns emulated device if found
* @return 0 if found, -ENODEV if not found
*/
int sandbox_pci_get_emul(struct udevice *bus, pci_dev_t find_devfn,
- struct udevice **emulp);
+ struct udevice **containerp, struct udevice **emulp);
#endif /* CONFIG_DM_PCI */