1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2025 Intel Corporation 4 */ 5 #ifndef _XE_CONFIGFS_H_ 6 #define _XE_CONFIGFS_H_ 7 8 #include <linux/types.h> 9 10 struct pci_dev; 11 12 #if IS_ENABLED(CONFIG_CONFIGFS_FS) 13 int xe_configfs_init(void); 14 void xe_configfs_exit(void); 15 bool xe_configfs_get_survivability_mode(struct pci_dev *pdev); 16 void xe_configfs_clear_survivability_mode(struct pci_dev *pdev); 17 #else 18 static inline int xe_configfs_init(void) { return 0; }; 19 static inline void xe_configfs_exit(void) {}; 20 static inline bool xe_configfs_get_survivability_mode(struct pci_dev *pdev) { return false; }; 21 static inline void xe_configfs_clear_survivability_mode(struct pci_dev *pdev) {}; 22 #endif 23 24 #endif 25