summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2023-11-02 16:16:19 +0100
committerMichael Brown2023-11-02 16:20:27 +0100
commit1f3a37e342ff110a451afcdf15c75a90e643208d (patch)
tree6816c463a8afc898bf018d2599c82505657541b0 /src/include
parent[pci] Handle non-zero starting bus in ECAM allocations (diff)
downloadipxe-1f3a37e342ff110a451afcdf15c75a90e643208d.tar.gz
ipxe-1f3a37e342ff110a451afcdf15c75a90e643208d.tar.xz
ipxe-1f3a37e342ff110a451afcdf15c75a90e643208d.zip
[pci] Cache ECAM mapping errors
When an error occurs during ECAM configuration space mapping, preserve the error within the existing cached mapping (instead of invalidating the cached mapping) in order to avoid flooding the debug log with repeated identical mapping errors. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/ecam.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/ecam.h b/src/include/ipxe/ecam.h
index 683d613a..ff08aee5 100644
--- a/src/include/ipxe/ecam.h
+++ b/src/include/ipxe/ecam.h
@@ -50,6 +50,8 @@ struct ecam_mapping {
struct pci_range range;
/** MMIO base address */
void *regs;
+ /** Mapping result */
+ int rc;
};
extern struct pci_api ecam_api;