From df7f59d47a36ff7fa9813910679e8f00bf302c53 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 11 Nov 2025 13:13:54 +0000 Subject: [PATCH] [pci] Move ECAM pci_can_probe() definition to correct header file Signed-off-by: Michael Brown --- src/include/ipxe/ecam.h | 10 ---------- src/include/ipxe/ecam_io.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/include/ipxe/ecam.h b/src/include/ipxe/ecam.h index f656083f7..ff08aee5a 100644 --- a/src/include/ipxe/ecam.h +++ b/src/include/ipxe/ecam.h @@ -54,16 +54,6 @@ struct ecam_mapping { int rc; }; -/** - * Check if PCI bus probing is allowed - * - * @ret ok Bus probing is allowed - */ -static inline __always_inline int -PCIAPI_INLINE ( ecam, pci_can_probe ) ( void ) { - return 1; -} - extern struct pci_api ecam_api; #endif /* _IPXE_ECAM_H */ diff --git a/src/include/ipxe/ecam_io.h b/src/include/ipxe/ecam_io.h index 4fb24db33..788ba9b9a 100644 --- a/src/include/ipxe/ecam_io.h +++ b/src/include/ipxe/ecam_io.h @@ -136,4 +136,14 @@ PCIAPI_INLINE ( ecam, pci_ioremap ) ( struct pci_device *pci __unused, return ioremap ( bus_addr, len ); } +/** + * Check if PCI bus probing is allowed + * + * @ret ok Bus probing is allowed + */ +static inline __always_inline int +PCIAPI_INLINE ( ecam, pci_can_probe ) ( void ) { + return 1; +} + #endif /* _IPXE_ECAM_IO_H */