summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/linux
diff options
context:
space:
mode:
authorMichael Brown2025-11-25 00:09:53 +0100
committerMichael Brown2025-11-25 00:16:32 +0100
commit9c1ac48bcff1a623cc5422fb57c540d910ac9734 (patch)
treece2ba3ad677bdd4e30e26f5f5cac4f64a7567188 /src/include/ipxe/linux
parent[pci] Use linker tables for runtime selectable PCI APIs (diff)
downloadipxe-9c1ac48bcff1a623cc5422fb57c540d910ac9734.tar.gz
ipxe-9c1ac48bcff1a623cc5422fb57c540d910ac9734.tar.xz
ipxe-9c1ac48bcff1a623cc5422fb57c540d910ac9734.zip
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/linux')
-rw-r--r--src/include/ipxe/linux/linux_pci.h3
1 files changed, 2 insertions, 1 deletions
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;
}