[pci] Record prefetchable memory window for PCI bridges

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-10-14 18:37:39 +01:00
parent 04a61c413d
commit 3538e9c39a
3 changed files with 32 additions and 6 deletions

View File

@@ -151,7 +151,11 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
/** Memory base and limit */
#define PCI_MEM_BASE 0x20
#define PCI_MEM_LIMIT 0x22
#define PCI_MEM_MASK 0x000f
#define PCI_MEM_MASK 0x000fUL
#define PCI_PREFMEM_BASE 0x24
#define PCI_PREFMEM_LIMIT 0x26
#define PCI_PREFMEM_BASE_HI 0x28
#define PCI_PREFMEM_LIMIT_HI 0x2c
/** Construct PCI class
*

View File

@@ -34,6 +34,10 @@ struct pci_bridge {
uint32_t membase;
/** Memory limit */
uint32_t memlimit;
/** Prefetchable memory base */
uint64_t prefmembase;
/** Prefetchable memory limit */
uint64_t prefmemlimit;
/** List of bridges */
struct list_head list;
};