diff options
author | Sunita Nadampalli | 2014-11-14 11:50:08 -0600 |
---|---|---|
committer | Sunita Nadampalli | 2014-11-14 11:50:08 -0600 |
commit | 5693201c37da9070928a751d79cbfed6bb8dd051 (patch) | |
tree | f604218e7f0c87438bcc0bab44455b2b3f8d4507 /libdce.h | |
parent | 830a4d36e8c6e9eb2ac97f9a1472e04b71832987 (diff) | |
download | hardware-ti-libdce-5693201c37da9070928a751d79cbfed6bb8dd051.tar.gz hardware-ti-libdce-5693201c37da9070928a751d79cbfed6bb8dd051.tar.xz hardware-ti-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.h | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -105,12 +105,26 @@ void dsp_dce_free(void *ptr); | |||
105 | void *dce_init(void); | 105 | void *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 | */ |
112 | void dce_deinit(void *dev); | 112 | void 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 | */ | ||
119 | int 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 | */ | ||
126 | void 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 |