1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 /* Copyright (c) 2020, The Linux Foundation. All rights reserved. */ 4 /* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ 5 6 #ifndef __QAIC_DEBUGFS_H__ 7 #define __QAIC_DEBUGFS_H__ 8 9 #include <drm/drm_file.h> 10 11 #ifdef CONFIG_DEBUG_FS 12 int qaic_bootlog_register(void); 13 void qaic_bootlog_unregister(void); 14 void qaic_debugfs_init(struct qaic_drm_device *qddev); 15 #else 16 static inline int qaic_bootlog_register(void) { return 0; } 17 static inline void qaic_bootlog_unregister(void) {} 18 static inline void qaic_debugfs_init(struct qaic_drm_device *qddev) {} 19 #endif /* CONFIG_DEBUG_FS */ 20 #endif /* __QAIC_DEBUGFS_H__ */ 21