Skip to content
Commit 12507a2d authored by Andrew Scull's avatar Andrew Scull Committed by Tom Rini
Browse files

pci: Map bars with offset and length



Evolve dm_pci_map_bar() to include an offset and length parameter. These
allow a portion of the memory to be mapped and range checks to be
applied.

Passing both the offset and length as zero results in the previous
behaviour and this is used to migrate the previous callers.

Signed-off-by: default avatarAndrew Scull <ascull@google.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 55e6adbd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment