aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunita Nadampalli2014-11-14 11:50:08 -0600
committerSunita Nadampalli2014-11-14 11:50:08 -0600
commit5693201c37da9070928a751d79cbfed6bb8dd051 (patch)
treef604218e7f0c87438bcc0bab44455b2b3f8d4507 /libdce.h
parent830a4d36e8c6e9eb2ac97f9a1472e04b71832987 (diff)
downloadrepo-libdce-5693201c37da9070928a751d79cbfed6bb8dd051.tar.gz
repo-libdce-5693201c37da9070928a751d79cbfed6bb8dd051.tar.xz
repo-libdce-5693201c37da9070928a751d79cbfed6bb8dd051.zip
libdce: Changes to make dce_ipc_init/deinit external
dce_ipc_init and dce_ipc_deinit are required by android memplugin even before DCE engine open happens. This is required to use MmRpc interface for DRM/GEM buffer locking. Change-Id: Ia11af04658c367242c33ab8acffaa4b522aa0716 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Diffstat (limited to 'libdce.h')
-rw-r--r--libdce.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/libdce.h b/libdce.h
index b62bd86..de16f0d 100644
--- a/libdce.h
+++ b/libdce.h
@@ -105,12 +105,26 @@ void dsp_dce_free(void *ptr);
105void *dce_init(void); 105void *dce_init(void);
106 106
107/*===============================================================*/ 107/*===============================================================*/
108/** dce_deinit : Deinitialize DCE. Only Linux applications are expected to call. 108/** dce_deinit : Deinitialize DCE . Only Linux applications are expected to call.
109 * 109 *
110 * @ param dev [in] : Pointer to omap_device structure. 110 * @ param dev [in] : Pointer to omap_device structure.
111 */ 111 */
112void dce_deinit(void *dev); 112void dce_deinit(void *dev);
113 113
114
115/** dce_ipc_init : Initialize DCE IPC. this is required to setup mmRpc link.
116 *
117 * @ return : Error code.
118 */
119int dce_ipc_init(int core);
120
121/*===============================================================*/
122/** dce_ipc_deinit : Deinitialize DCE IPC.
123 *
124 * @ param dev [in] : Core ID and engine Table Idx, or -1 if no engine exists
125 */
126void dce_ipc_deinit(int core, int tableIdx);
127
114/************************ Input/Output Buffer Lock/Unlock APIs ************************/ 128/************************ Input/Output Buffer Lock/Unlock APIs ************************/
115/*=====================================================================================*/ 129/*=====================================================================================*/
116/** dce_buf_lock : Pin or lock Tiler Buffers which would be used by the IVAHD codec 130/** dce_buf_lock : Pin or lock Tiler Buffers which would be used by the IVAHD codec