hgsl_debugfs.h 799 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. */
  6. #ifndef __HGSL_DEBUGFS_H
  7. #define __HGSL_DEBUGFS_H
  8. #include <linux/device.h>
  9. #include <linux/platform_device.h>
  10. #ifdef CONFIG_DEBUG_FS
  11. int hgsl_debugfs_client_init(struct hgsl_priv *priv);
  12. void hgsl_debugfs_client_release(struct hgsl_priv *priv);
  13. void hgsl_debugfs_init(struct platform_device *pdev);
  14. void hgsl_debugfs_release(struct platform_device *pdev);
  15. #else
  16. static int hgsl_debugfs_client_init(struct hgsl_priv *priv)
  17. {
  18. return 0;
  19. }
  20. void hgsl_debugfs_client_release(struct hgsl_priv *priv)
  21. {
  22. }
  23. void hgsl_debugfs_init(struct platform_device *pdev)
  24. {
  25. }
  26. void hgsl_debugfs_release(struct platform_device *pdev)
  27. {
  28. }
  29. #endif
  30. #endif /* __HGSL_DEBUGFS_H */