From 3538e9c39a3f59a7bad70d4ebff44e7dbe2fe2b9 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 14 Oct 2025 18:37:39 +0100 Subject: [pci] Record prefetchable memory window for PCI bridges Signed-off-by: Michael Brown --- src/include/ipxe/pci.h | 6 +++++- src/include/ipxe/pcibridge.h | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ipxe/pci.h b/src/include/ipxe/pci.h index 6eeabef30..2728cbd45 100644 --- a/src/include/ipxe/pci.h +++ b/src/include/ipxe/pci.h @@ -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 * diff --git a/src/include/ipxe/pcibridge.h b/src/include/ipxe/pcibridge.h index c57a81067..3a278a0ca 100644 --- a/src/include/ipxe/pcibridge.h +++ b/src/include/ipxe/pcibridge.h @@ -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; }; -- cgit v1.2.3-55-g7522