aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPradeep Venkatasubbarao2013-12-05 06:19:48 -0600
committerPradeep Venkatasubbarao2013-12-06 03:01:23 -0600
commitbc0b3b5324462fa7ced293982ecc605d0a8b66ad (patch)
tree2dcd119896e24ade97d96660b1830e1d38980209 /libdce.h
parent9208d0f18664575c0a50420435c19c85ff9740dd (diff)
downloadrepo-libdce-bc0b3b5324462fa7ced293982ecc605d0a8b66ad.tar.gz
repo-libdce-bc0b3b5324462fa7ced293982ecc605d0a8b66ad.tar.xz
repo-libdce-bc0b3b5324462fa7ced293982ecc605d0a8b66ad.zip
[DSP]Added duplicate functions for buffer lock and unlock.
This is required temporarily as there is no other way to get the core index.dce_buf_lock and unlock functions expects MmRpcHandle and now as there are separate handles for DSP and IPU, to avoid modifying these APIs, duplicate functions have been created coreIndex is hardcoded. Added prototypes of dsp specific lock and unlock functions in libdce.h Change-Id: I360632acd061f9e134c38bea009b1ad257e32bb8 Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
Diffstat (limited to 'libdce.h')
-rw-r--r--libdce.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/libdce.h b/libdce.h
index 69ac370..7e91759 100644
--- a/libdce.h
+++ b/libdce.h
@@ -95,7 +95,7 @@ void dce_deinit(void *dev);
95 95
96/************************ Input/Output Buffer Lock/Unlock APIs ************************/ 96/************************ Input/Output Buffer Lock/Unlock APIs ************************/
97/*=====================================================================================*/ 97/*=====================================================================================*/
98/** dce_buf_lock : Pin or lock Tiler Buffers which would be used by the codec 98/** dce_buf_lock : Pin or lock Tiler Buffers which would be used by the IVAHD codec
99 * as reference buffers. API is specific to GLP. 99 * as reference buffers. API is specific to GLP.
100 * 100 *
101 * @ param num [in] : Number of buffers to be locked. 101 * @ param num [in] : Number of buffers to be locked.
@@ -106,13 +106,34 @@ int dce_buf_lock(int num, size_t *handle);
106 106
107/*=====================================================================================*/ 107/*=====================================================================================*/
108/** dce_buf_unlock : Unpin or unlock Tiler Buffers which were locked to be used 108/** dce_buf_unlock : Unpin or unlock Tiler Buffers which were locked to be used
109 * by the codec as reference buffers. API is specific to GLP. 109 * by the IVAHD codec as reference buffers. API is specific to GLP.
110 * 110 *
111 * @ param num [in] : Number of buffers to be locked. 111 * @ param num [in] : Number of buffers to be locked.
112 * @ param handle [in] : Pointer to array of DMA Buf FDs of the buffers to be locked. 112 * @ param handle [in] : Pointer to array of DMA Buf FDs of the buffers to be locked.
113 * @ return : DCE error status is returned. 113 * @ return : DCE error status is returned.
114 */ 114 */
115int dce_buf_unlock(int num, size_t *handle); 115int dce_buf_unlock(int num, size_t *handle);
116/************************ Input/Output Buffer Lock/Unlock APIs ************************/
117/*=====================================================================================*/
118/** dsp_dce_buf_lock : Pin or lock Tiler Buffers which would be used by the DSP codec
119 * as reference buffers. API is specific to GLP.
120 *
121 * @ param num [in] : Number of buffers to be locked.
122 * @ param handle [in] : Pointer to array of DMA Buf FDs of the buffers to be locked.
123 * @ return : DCE error status is returned.
124 */
125int dsp_dce_buf_lock(int num, size_t *handle);
126
127/*=====================================================================================*/
128/** dsp_dce_buf_unlock : Unpin or unlock Tiler Buffers which were locked to be used
129 * by the DSP codec as reference buffers. API is specific to GLP.
130 *
131 * @ param num [in] : Number of buffers to be locked.
132 * @ param handle [in] : Pointer to array of DMA Buf FDs of the buffers to be locked.
133 * @ return : DCE error status is returned.
134 */
135int dsp_dce_buf_unlock(int num, size_t *handle);
136
116 137
117/******************************* OMAPDRM Get/Set FD APIs *******************************/ 138/******************************* OMAPDRM Get/Set FD APIs *******************************/
118/*=====================================================================================*/ 139/*=====================================================================================*/