pci: Add helpers for BAR values and memory/IO space access
We're going to be checking the BAR type, the address written to it and if
access to memory or I/O space is enabled quite often when we add support
for reasignable BARs; make our life easier by adding helpers for it.
Signed-off-by: Alexandru Elisei <firstname.lastname@example.org>
Reviewed-by: Andre Przywara <email@example.com>
Signed-off-by: Will Deacon <firstname.lastname@example.org>
3 files changed