aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-04-21 16:13:02 +0100
committerMichael Brown <mcb30@ipxe.org>2021-04-21 16:13:02 +0100
commit56f7d44fde1d6ac196d115cc7dddd58e7ec098fa (patch)
tree43c3169ff8ca1c0d294c1e3c36c89717436bdc48
parent3efdbef2f0dd956ce7d131ca4bdfd366f8cdc9d4 (diff)
downloadipxe-56f7d44fde1d6ac196d115cc7dddd58e7ec098fa.zip
ipxe-56f7d44fde1d6ac196d115cc7dddd58e7ec098fa.tar.gz
ipxe-56f7d44fde1d6ac196d115cc7dddd58e7ec098fa.tar.bz2
[efi] Show ACPI address space descriptor ranges in debug messages
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/interface/efi/efi_pci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interface/efi/efi_pci.c b/src/interface/efi/efi_pci.c
index ef02c9c..fda4aba 100644
--- a/src/interface/efi/efi_pci.c
+++ b/src/interface/efi/efi_pci.c
@@ -337,6 +337,9 @@ void * efipci_ioremap ( struct pci_device *pci, unsigned long bus_addr,
offset = le64_to_cpu ( u.res->qword.offset );
start = ( offset + le64_to_cpu ( u.res->qword.min ) );
end = ( start + le64_to_cpu ( u.res->qword.len ) );
+ DBGC2 ( pci, "EFIPCI " PCI_FMT " found range [%08llx,%08llx) "
+ "-> [%08llx,%08llx)\n", PCI_ARGS ( pci ), start, end,
+ ( start - offset ), ( end - offset ) );
if ( ( bus_addr < start ) || ( ( bus_addr + len ) > end ) )
continue;