aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci-epf.h
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2021-02-02 01:27:56 +0530
committerBjorn Helgaas <bhelgaas@google.com>2021-02-23 14:10:40 -0600
commit0e27aeccfa3d1bab7c6a29fb8e6fcedbad7b09a8 (patch)
tree4518aeb2b4be9f104191fe47d2a0779e8cea439e /include/linux/pci-epf.h
parentPCI: endpoint: Add helper API to get the 'next' unreserved BAR (diff)
downloadlinux-dev-0e27aeccfa3d1bab7c6a29fb8e6fcedbad7b09a8.tar.xz
linux-dev-0e27aeccfa3d1bab7c6a29fb8e6fcedbad7b09a8.zip
PCI: endpoint: Make *_free_bar() to return error codes on failure
Modify pci_epc_get_next_free_bar() and pci_epc_get_first_free_bar() to return error values if there are no free BARs available. Link: https://lore.kernel.org/r/20210201195809.7342-5-kishon@ti.com Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci-epf.h')
-rw-r--r--include/linux/pci-epf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci-epf.h b/include/linux/pci-epf.h
index 6644ff3b0702..fa3aca43eb19 100644
--- a/include/linux/pci-epf.h
+++ b/include/linux/pci-epf.h
@@ -21,6 +21,7 @@ enum pci_notify_event {
};
enum pci_barno {
+ NO_BAR = -1,
BAR_0,
BAR_1,
BAR_2,