diff options
| author | Michael Brown | 2025-10-14 19:37:39 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-10-14 19:38:08 +0200 |
| commit | 3538e9c39a3f59a7bad70d4ebff44e7dbe2fe2b9 (patch) | |
| tree | 9443fbb62828d150f57258e6602ac9f144de3086 /src/include | |
| parent | [ena] Use pci_bar_set() to place device within bridge memory window (diff) | |
| download | ipxe-3538e9c39a3f59a7bad70d4ebff44e7dbe2fe2b9.tar.gz ipxe-3538e9c39a3f59a7bad70d4ebff44e7dbe2fe2b9.tar.xz ipxe-3538e9c39a3f59a7bad70d4ebff44e7dbe2fe2b9.zip | |
[pci] Record prefetchable memory window for PCI bridges
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/pci.h | 6 | ||||
| -rw-r--r-- | src/include/ipxe/pcibridge.h | 4 |
2 files changed, 9 insertions, 1 deletions
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; }; |
