aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libdce_linux.c')
-rw-r--r--libdce_linux.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/libdce_linux.c b/libdce_linux.c
index 6fc2124..0a86905 100644
--- a/libdce_linux.c
+++ b/libdce_linux.c
@@ -133,10 +133,23 @@ EXIT:
133 } 133 }
134 return (eError); 134 return (eError);
135} 135}
136/*These two are duplicate of above two functions 136
137 These have been added temporarily since there is no 137/*Memory Management mirror APIs for DSP remoteproc targets*/
138 other way to get the core index.These have been 138void *dsp_dce_alloc(int sz)
139 added to avoid modifying the current apis */ 139{
140 /*
141 Beware: The last argument is a bit field. As of now only core ID
142 is considered to be there in the last 4 bits of the word.
143 */
144 return (memplugin_alloc(sz, 1, MEM_TILER_1D, 0, DSP));
145}
146
147void dsp_dce_free(void *ptr)
148{
149 memplugin_free(ptr);
150}
151
152
140int dsp_dce_buf_lock(int num, size_t *handle) 153int dsp_dce_buf_lock(int num, size_t *handle)
141{ 154{
142 int i; 155 int i;