Skip to content
Snippets Groups Projects
Commit 192f1bf7 authored by Nirmoy Das's avatar Nirmoy Das Committed by Christian König
Browse files

PCI: Add pci_rebar_bytes_to_size()


Users of pci_resize_resource() need a way to calculate BAR size
from desired bytes. Add a helper function and export it so that
modular drivers can use it.

Signed-off-by: default avatarDarren Salt <devspam@moreofthesa.me.uk>
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarNirmoy Das <nirmoy.das@amd.com>
Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20210107175017.15893-3-nirmoy.das@amd.com
parent 8fbdbb66
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment