summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/pci.h
diff options
context:
space:
mode:
authorSimon Rettberg2026-01-28 12:53:53 +0100
committerSimon Rettberg2026-01-28 12:53:53 +0100
commit8e82785c584dc13e20f9229decb95bd17bbe9cd1 (patch)
treea8b359e59196be5b2e3862bed189107f4bc9975f /src/include/ipxe/pci.h
parentMerge branch 'master' into openslx (diff)
parent[prefix] Make unlzma.S compatible with 386 class CPUs (diff)
downloadipxe-openslx.tar.gz
ipxe-openslx.tar.xz
ipxe-openslx.zip
Merge branch 'master' into openslxopenslx
Diffstat (limited to 'src/include/ipxe/pci.h')
-rw-r--r--src/include/ipxe/pci.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/include/ipxe/pci.h b/src/include/ipxe/pci.h
index 8c6d9e4e2..44095afe2 100644
--- a/src/include/ipxe/pci.h
+++ b/src/include/ipxe/pci.h
@@ -8,6 +8,7 @@
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+FILE_SECBOOT ( PERMITTED );
#include <stdint.h>
#include <ipxe/device.h>
@@ -151,7 +152,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
*
@@ -314,6 +319,9 @@ struct pci_driver {
extern void adjust_pci_device ( struct pci_device *pci );
extern unsigned long pci_bar_start ( struct pci_device *pci,
unsigned int reg );
+extern void pci_bar_set ( struct pci_device *pci, unsigned int reg,
+ unsigned long start );
+extern unsigned long pci_bar_size ( struct pci_device *pci, unsigned int reg );
extern int pci_read_config ( struct pci_device *pci );
extern int pci_find_next ( struct pci_device *pci, uint32_t *busdevfn );
extern int pci_find_driver ( struct pci_device *pci );
@@ -322,7 +330,6 @@ extern void pci_remove ( struct pci_device *pci );
extern int pci_find_capability ( struct pci_device *pci, int capability );
extern int pci_find_next_capability ( struct pci_device *pci,
int pos, int capability );
-extern unsigned long pci_bar_size ( struct pci_device *pci, unsigned int reg );
extern void pci_reset ( struct pci_device *pci, unsigned int exp );
/**