]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Show ACPI address space descriptor ranges in debug messages
authorMichael Brown <mcb30@ipxe.org>
Wed, 21 Apr 2021 15:13:02 +0000 (16:13 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 21 Apr 2021 15:13:02 +0000 (16:13 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_pci.c

index ef02c9c0e8ca57677e872b8db8c74c601d30721d..fda4aba0e0b218d3f01d315e9faa49fa91eda517 100644 (file)
@@ -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;