mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
pci: Honour pci_skip_dev()
When enumerating devices, honour the pci_skip_dev() function. This can be used by PCI controller drivers to restrict which devices will be probed. This is required by the NVIDIA Tegra PCIe controller driver, which will fail with a data abort exception if an access is attempted to a device number larger than 0 outside of bus 0. pci_skip_dev() is therefore implemented to prevent any such accesses. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@ -623,6 +623,7 @@ extern void pci_register_hose(struct pci_controller* hose);
|
||||
extern struct pci_controller* pci_bus_to_hose(int bus);
|
||||
extern struct pci_controller *find_hose_by_cfg_addr(void *cfg_addr);
|
||||
|
||||
extern int pci_skip_dev(struct pci_controller *hose, pci_dev_t dev);
|
||||
extern int pci_hose_scan(struct pci_controller *hose);
|
||||
extern int pci_hose_scan_bus(struct pci_controller *hose, int bus);
|
||||
|
||||
|
Reference in New Issue
Block a user