cvp_comm_def.h 868 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _MSM_COMM_DEF_H_
  6. #define _MSM_COMM_DEF_H_
  7. #include <linux/types.h>
  8. #include <linux/gunyah/gh_rm_drv.h>
  9. enum op_mode {
  10. OP_NORMAL,
  11. OP_DRAINING,
  12. OP_FLUSH,
  13. OP_INVALID,
  14. };
  15. enum queue_state {
  16. QUEUE_INIT,
  17. QUEUE_ACTIVE = 1,
  18. QUEUE_START,
  19. QUEUE_STOP,
  20. QUEUE_INVALID,
  21. };
  22. #ifdef CONFIG_EVA_TVM
  23. #else /* LA target starts here */
  24. #ifdef CONFIG_EVA_KALAMA
  25. #define CVP_SYNX_ENABLED 1
  26. #define CVP_MMRM_ENABLED 1
  27. #define CVP_FASTRPC_ENABLED 1
  28. #endif /* End of CONFIG_EVA_KALAMA */
  29. #ifdef CONFIG_EVA_PINEAPPLE
  30. #define CVP_MMRM_ENABLED 1
  31. #define CVP_SYNX_ENABLED 1
  32. #define CVP_FASTRPC_ENABLED 1
  33. #endif /* End of CONFIG_EVA_PINEAPPLE */
  34. #ifdef CONFIG_EVA_WAIPIO
  35. #define CVP_MINIDUMP_ENABLED 1
  36. #endif
  37. #endif /* End CONFIG_EVA_TVM */
  38. #endif