summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-12-19 13:56:30 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-01-02 12:34:48 +0100
commit81306f971ae1f69d214bc188fc5ea90bdf1fbe85 (patch)
tree0bdf638f8b7edf1c7e1eb6e6307489d298eae152 /include/linux
parentf277e1c0819340bf8db8e09a8676857164128752 (diff)
downloadbarebox-81306f971ae1f69d214bc188fc5ea90bdf1fbe85.tar.gz
barebox-81306f971ae1f69d214bc188fc5ea90bdf1fbe85.tar.xz
pci: implement function level reset
This will be needed for upcoming LS1028a support. The code is taken from U-Boot which suffices for our usecase. The kernel code is much more elaborated here. Link: https://lore.barebox.org/20231219125630.3684-7-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 0e907209a7..fe5285116a 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -329,6 +329,8 @@ u8 pci_find_capability(struct pci_dev *dev, int cap);
extern void __iomem *pci_iomap(struct pci_dev *dev, int bar);
+int pci_flr(struct pci_dev *pdev);
+
/*
* The world is not perfect and supplies us with broken PCI devices.
* For at least a part of these bugs we need a work-around, so both