From: Michael Brown Date: Tue, 11 Nov 2025 13:13:54 +0000 (+0000) Subject: [pci] Move ECAM pci_can_probe() definition to correct header file X-Git-Tag: rolling/bin~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df7f59d47a36ff7fa9813910679e8f00bf302c53;p=thirdparty%2Fipxe.git [pci] Move ECAM pci_can_probe() definition to correct header file Signed-off-by: Michael Brown --- 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 */