From 9c1ac48bcff1a623cc5422fb57c540d910ac9734 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 24 Nov 2025 23:09:53 +0000 Subject: [pci] Allow probing permission to vary by range Make pci_can_probe() part of the runtime selectable PCI I/O API, and defer this check to the per-range API. Signed-off-by: Michael Brown --- src/include/ipxe/linux/linux_pci.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/ipxe/linux') diff --git a/src/include/ipxe/linux/linux_pci.h b/src/include/ipxe/linux/linux_pci.h index 2b19e13c3..f9cd98819 100644 --- a/src/include/ipxe/linux/linux_pci.h +++ b/src/include/ipxe/linux/linux_pci.h @@ -25,10 +25,11 @@ extern int linux_pci_write ( struct pci_device *pci, unsigned long where, /** * Check if PCI bus probing is allowed * + * @v pci PCI device * @ret ok Bus probing is allowed */ static inline __always_inline int -PCIAPI_INLINE ( linux, pci_can_probe ) ( void ) { +PCIAPI_INLINE ( linux, pci_can_probe ) ( struct pci_device *pci __unused ) { return 1; } -- cgit v1.2.3-55-g7522