Lines Matching full:sof
8 #include <sof/common.h>
9 #include <sof/lib/mm_heap.h>
10 #include <sof/lib/cache.h>
11 #include <sof/lib/cpu.h>
12 #include <sof/lib/memory.h>
13 #include <sof/platform.h>
14 #include <sof/sof.h>
131 void platform_init_memmap(struct sof *sof) in platform_init_memmap() argument
136 sof->memory_map = cache_to_uncache(&memmap); in platform_init_memmap()
139 sof->memory_map->system[0].heap = (uintptr_t)&_system_heap; in platform_init_memmap()
140 sof->memory_map->system[0].size = HEAP_SYSTEM_M_SIZE; in platform_init_memmap()
141 sof->memory_map->system[0].info.free = HEAP_SYSTEM_M_SIZE; in platform_init_memmap()
142 sof->memory_map->system[0].caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_EXT | in platform_init_memmap()
146 sof->memory_map->system_runtime[0].blocks = in platform_init_memmap()
148 sof->memory_map->system_runtime[0].map = in platform_init_memmap()
150 sof->memory_map->system_runtime[0].heap = in platform_init_memmap()
152 sof->memory_map->system_runtime[0].size = HEAP_SYS_RUNTIME_M_SIZE; in platform_init_memmap()
153 sof->memory_map->system_runtime[0].info.free = HEAP_SYS_RUNTIME_M_SIZE; in platform_init_memmap()
154 sof->memory_map->system_runtime[0].caps = SOF_MEM_CAPS_RAM | in platform_init_memmap()
161 sof->memory_map->system[i].heap = in platform_init_memmap()
164 sof->memory_map->system[i].size = HEAP_SYSTEM_S_SIZE; in platform_init_memmap()
165 sof->memory_map->system[i].info.free = HEAP_SYSTEM_S_SIZE; in platform_init_memmap()
166 sof->memory_map->system[i].caps = SOF_MEM_CAPS_RAM | in platform_init_memmap()
170 sof->memory_map->system_runtime[i].blocks = in platform_init_memmap()
172 sof->memory_map->system_runtime[i].map = in platform_init_memmap()
174 sof->memory_map->system_runtime[i].heap = in platform_init_memmap()
177 sof->memory_map->system_runtime[i].size = in platform_init_memmap()
179 sof->memory_map->system_runtime[i].info.free = in platform_init_memmap()
181 sof->memory_map->system_runtime[i].caps = SOF_MEM_CAPS_RAM | in platform_init_memmap()
188 sof->memory_map->runtime_shared[0].blocks = ARRAY_SIZE(rt_shared_heap_map); in platform_init_memmap()
189 sof->memory_map->runtime_shared[0].map = uncached_block_map(rt_shared_heap_map); in platform_init_memmap()
190 sof->memory_map->runtime_shared[0].heap = in platform_init_memmap()
192 sof->memory_map->runtime_shared[0].size = HEAP_RUNTIME_SHARED_SIZE; in platform_init_memmap()
193 sof->memory_map->runtime_shared[0].info.free = HEAP_RUNTIME_SHARED_SIZE; in platform_init_memmap()
194 sof->memory_map->runtime_shared[0].caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_EXT | in platform_init_memmap()
198 sof->memory_map->system_shared[0].heap = cache_to_uncache((uintptr_t)&_system_shared_heap); in platform_init_memmap()
199 sof->memory_map->system_shared[0].size = HEAP_SYSTEM_SHARED_SIZE; in platform_init_memmap()
200 sof->memory_map->system_shared[0].info.free = HEAP_SYSTEM_SHARED_SIZE; in platform_init_memmap()
201 sof->memory_map->system_shared[0].caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_EXT | in platform_init_memmap()
207 sof->memory_map->runtime[0].blocks = ARRAY_SIZE(rt_heap_map); in platform_init_memmap()
208 sof->memory_map->runtime[0].map = uncached_block_map(rt_heap_map); in platform_init_memmap()
209 sof->memory_map->runtime[0].heap = (uintptr_t)&_module_heap; in platform_init_memmap()
210 sof->memory_map->runtime[0].size = HEAP_RUNTIME_SIZE; in platform_init_memmap()
211 sof->memory_map->runtime[0].info.free = HEAP_RUNTIME_SIZE; in platform_init_memmap()
212 sof->memory_map->runtime[0].caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_EXT | in platform_init_memmap()
216 sof->memory_map->buffer[0].blocks = ARRAY_SIZE(buf_heap_map); in platform_init_memmap()
217 sof->memory_map->buffer[0].map = uncached_block_map(buf_heap_map); in platform_init_memmap()
218 sof->memory_map->buffer[0].heap = (uintptr_t)&_buffer_heap; in platform_init_memmap()
219 sof->memory_map->buffer[0].size = HEAP_BUFFER_SIZE; in platform_init_memmap()
220 sof->memory_map->buffer[0].info.free = HEAP_BUFFER_SIZE; in platform_init_memmap()
221 sof->memory_map->buffer[0].caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_HP | in platform_init_memmap()
225 sof->memory_map->buffer[1].blocks = ARRAY_SIZE(lp_buf_heap_map); in platform_init_memmap()
226 sof->memory_map->buffer[1].map = uncached_block_map(lp_buf_heap_map); in platform_init_memmap()
227 sof->memory_map->buffer[1].heap = HEAP_LP_BUFFER_BASE; in platform_init_memmap()
228 sof->memory_map->buffer[1].size = HEAP_LP_BUFFER_SIZE; in platform_init_memmap()
229 sof->memory_map->buffer[1].info.free = HEAP_LP_BUFFER_SIZE; in platform_init_memmap()
230 sof->memory_map->buffer[1].caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_LP | in platform_init_memmap()
234 sof->memory_map->total.free = HEAP_SYSTEM_T_SIZE + in platform_init_memmap()