]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[pci] Move ECAM pci_can_probe() definition to correct header file
authorMichael Brown <mcb30@ipxe.org>
Tue, 11 Nov 2025 13:13:54 +0000 (13:13 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 11 Nov 2025 13:13:54 +0000 (13:13 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/ecam.h
src/include/ipxe/ecam_io.h

index f656083f79191a508c6a6ef3bddf1d5a0289edb7..ff08aee5a5c9357204832b7093f5655522af6ad2 100644 (file)
@@ -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 */
index 4fb24db33639c702ae614a8a22a3a241c5a4065e..788ba9b9aff712702b1616b9e922ced6a635fe8d 100644 (file)
@@ -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 */