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

pci: Match region flags using a mask



When converting addresses, apply a mask to the region flags during
lookup. This allows the caller to specify which flags are important and
which are not, for example to exclude system memory regions.

The behaviour of the function is changed such that they don't
preferentially search for a non-system memory region. However, system
memory regions are added after other regions in decode_regions() leading
to a similar outcome.

Signed-off-by: default avatarAndrew Scull <ascull@google.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 12507a2d
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