synx_debugfs_util.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #ifndef __SYNX_DEBUGFS_UTIL_H__
  6. #define __SYNX_DEBUGFS_UTIL_H__
  7. #include "synx_api.h"
  8. #include "synx_private.h"
  9. #define GLOBAL_HANDLE_STARTING_ID (1048577)
  10. /* DMA FENCE print function */
  11. void synx_debugfs_util_print_dma_fence(char **cur, char **end);
  12. /* CSL FENCE print function */
  13. void synx_debugfs_util_print_csl_fence(char **cur, char **end);
  14. /* GLOBAL & LOCAL MAP print function */
  15. void synx_debugfs_util_print_hash_table(char **cur, char **end, bool flag);
  16. /* GLOBAL SHARED MEMORY print function */
  17. void synx_debugfs_util_print_global_shared_memory(char **cur, char **end);
  18. /* CLIENT MAP print function */
  19. void synx_debugfs_util_print_client_table(char **cur, char **end);
  20. /* Function to get SYNX State Name */
  21. char *synx_debugfs_util_get_state_name(u32 status);
  22. /* Function for loading content of the help option for debugfs v2 */
  23. void synx_debugfs_util_load_help_content(char **cur, char **end);
  24. /* Function to check entry of the global shared memory is valid or not */
  25. bool synx_debugfs_util_is_valid_global_shared_memory_entry(struct synx_global_coredata *entry,
  26. u32 idx);
  27. #endif /* __SYNX_DEBUGFS_UTIL_H__ */