mpi_dsp.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /******************************************************************************
  2. Copyright (C), 2001-2017, Hisilicon Tech. Co., Ltd.
  3. ******************************************************************************
  4. File Name : mpi_dsp.h
  5. Version : Initial Draft
  6. Author : Hisilicon multimedia software (SVP) group
  7. Created : 2017/10/17
  8. Description :
  9. History :
  10. 1.Date : 2017/10/17
  11. Author :
  12. Modification: Created file
  13. ******************************************************************************/
  14. #ifndef _HI_MPI_DSP_H_
  15. #define _HI_MPI_DSP_H_
  16. #ifdef __cplusplus
  17. #if __cplusplus
  18. extern "C"{
  19. #endif
  20. #endif /* End of #ifdef __cplusplus */
  21. #include "hi_dsp.h"
  22. /*****************************************************************************
  23. * Prototype : HI_MPI_SVP_DSP_LoadBin
  24. * Description : Load DSP Bin
  25. *
  26. * Parameters : const HI_CHAR *pszBinFileName Bin file.
  27. * SVP_DSP_MEM_TYPE_E enMemType DSP memory type.
  28. *
  29. *
  30. *
  31. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  32. * Spec :
  33. *
  34. * History:
  35. *
  36. * 1. Date : 2017-10-17
  37. * Author :
  38. * Modification : Created function
  39. *
  40. ****************************************************************************/
  41. HI_S32 HI_MPI_SVP_DSP_LoadBin(const HI_CHAR *pszBinFileName,SVP_DSP_MEM_TYPE_E enMemType);
  42. /*****************************************************************************
  43. * Prototype : HI_MPI_SVP_DSP_EnableCore
  44. * Description : Enable DSP Core
  45. *
  46. * Parameters : SVP_DSP_ID_E enDspId DSP Core ID.
  47. *
  48. *
  49. *
  50. *
  51. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  52. * Spec :
  53. *
  54. * History:
  55. *
  56. * 1. Date : 2017-10-17
  57. * Author :
  58. * Modification : Created function
  59. *
  60. ****************************************************************************/
  61. HI_S32 HI_MPI_SVP_DSP_EnableCore(SVP_DSP_ID_E enDspId);
  62. /*****************************************************************************
  63. * Prototype : HI_MPI_SVP_DSP_DisableCore
  64. * Description : Disable DSP Core
  65. *
  66. * Parameters : SVP_DSP_ID_E enDspId DSP Core ID.
  67. *
  68. *
  69. *
  70. *
  71. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  72. * Spec :
  73. *
  74. * History:
  75. *
  76. * 1. Date : 2017-10-17
  77. * Author :
  78. * Modification : Created function
  79. *
  80. ****************************************************************************/
  81. HI_S32 HI_MPI_SVP_DSP_DisableCore(SVP_DSP_ID_E enDspId);
  82. /*****************************************************************************
  83. * Prototype : HI_MPI_SVP_DSP_RPC
  84. * Description : Remote process control
  85. *
  86. * Parameters : SVP_DSP_HANDLE *phHandle Handle
  87. * const SVP_DSP_MESSAGE_S *pstMsg Message
  88. * SVP_DSP_ID_E enDspId DSP Core ID.
  89. * SVP_DSP_PRI_E enPri Priority
  90. *
  91. *
  92. *
  93. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  94. * Spec :
  95. *
  96. * History:
  97. *
  98. * 1. Date : 2017-10-17
  99. * Author :
  100. * Modification : Created function
  101. *
  102. ****************************************************************************/
  103. HI_S32 HI_MPI_SVP_DSP_RPC(SVP_DSP_HANDLE *phHandle,const SVP_DSP_MESSAGE_S *pstMsg,
  104. SVP_DSP_ID_E enDspId,SVP_DSP_PRI_E enPri);
  105. /*****************************************************************************
  106. * Prototype : HI_MPI_SVP_DSP_Query
  107. * Description : This API is used to query the status of a called function by using the returned hHandle of the function.
  108. In block mode, the system waits until the task is finish or query timeout.
  109. In non-block mode, the current status is queried and no action is taken.
  110. * Parameters : SVP_DSP_ID_E enDspId DSP Core ID.
  111. * SVP_DSP_HANDLE hHandle Handle.
  112. * HI_BOOL *pbFinish Returned status
  113. * HI_BOOL bBlock Flag indicating the block mode or non-block mode
  114. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  115. * Spec :
  116. * History:
  117. *
  118. * 1. Date : 2017-10-17
  119. * Author :
  120. * Modification : Created function
  121. *
  122. *****************************************************************************/
  123. HI_S32 HI_MPI_SVP_DSP_Query(SVP_DSP_ID_E enDspId,SVP_DSP_HANDLE hHandle,HI_BOOL *pbFinish,HI_BOOL bBlock);
  124. /*****************************************************************************
  125. * Prototype : HI_MPI_SVP_DSP_PowerOn
  126. * Description : Enable DSP Core
  127. *
  128. * Parameters : SVP_DSP_ID_E enDspId DSP Core ID.
  129. *
  130. *
  131. *
  132. *
  133. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  134. * Spec :
  135. *
  136. * History:
  137. *
  138. * 1. Date : 2017-10-17
  139. * Author :
  140. * Modification : Created function
  141. *
  142. ****************************************************************************/
  143. HI_S32 HI_MPI_SVP_DSP_PowerOn(SVP_DSP_ID_E enDspId);
  144. /*****************************************************************************
  145. * Prototype : HI_MPI_SVP_DSP_PowerOff
  146. * Description : Disable DSP Core
  147. *
  148. * Parameters : SVP_DSP_ID_E enDspId DSP Core ID.
  149. *
  150. *
  151. *
  152. *
  153. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  154. * Spec :
  155. *
  156. * History:
  157. *
  158. * 1. Date : 2017-10-17
  159. * Author :
  160. * Modification : Created function
  161. *
  162. ****************************************************************************/
  163. HI_S32 HI_MPI_SVP_DSP_PowerOff(SVP_DSP_ID_E enDspId);
  164. #ifdef __cplusplus
  165. #if __cplusplus
  166. }
  167. #endif
  168. #endif
  169. #endif/*_HI_MPI_DSP_H_*/