qaic_debugfs.h 673 B

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