diff options
author | Darren Salt <devspam@moreofthesa.me.uk> | 2021-01-05 14:44:01 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-01-14 21:20:41 +0100 |
commit | 8fbdbb66f8c10bb359ad20fff95628e5deac88f4 (patch) | |
tree | 525df6215d1e42dd1f5af1db4f155876beffe397 /drivers/pci/pci.c | |
parent | ccae03f337065e3b09deeee6b1b10689c24b059a (diff) |
PCI: Export pci_rebar_get_possible_sizes()
Export pci_rebar_get_possible_sizes() for use by modular drivers.
Signed-off-by: Darren Salt <devspam@moreofthesa.me.uk>
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20210107175017.15893-2-nirmoy.das@amd.com
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index b9fecc25d213..8d1aec39ecc8 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -3605,6 +3605,7 @@ u32 pci_rebar_get_possible_sizes(struct pci_dev *pdev, int bar) pci_read_config_dword(pdev, pos + PCI_REBAR_CAP, &cap); return (cap & PCI_REBAR_CAP_SIZES) >> 4; } +EXPORT_SYMBOL(pci_rebar_get_possible_sizes); /** * pci_rebar_get_current_size - get the current size of a BAR |