Halide  17.0.2
Halide compiler and libraries
hexagon_dma_pool.h
Go to the documentation of this file.
1 #ifndef _HEXAGON_DMA_POOL_H_
2 #define _HEXAGON_DMA_POOL_H_
3 
4 #include "HalideRuntime.h"
5 
6 #ifdef COMPILING_HALIDE_RUNTIME
7 // Guard this with COMPILING_HALIDE_RUNTIME so that apps/hexagon_dma
8 // can include this file without getting runtime_internal.h
9 #include "runtime_internal.h"
10 #endif
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 WEAK void *halide_hexagon_allocate_dma_resource(void *user_context);
17 
18 WEAK void *halide_hexagon_allocate_from_dma_pool(void *user_context, void *virtual_engine_id);
19 
20 WEAK int halide_hexagon_free_to_dma_pool(void *user_context, void *dma_engine, void *virtual_engine_id);
21 
22 WEAK int halide_hexagon_free_dma_resource(void *user_context, void *virtual_engine_id);
23 
24 WEAK void *halide_locked_cache_malloc(void *user_context, size_t size);
25 
26 WEAK void halide_locked_cache_free(void *user_context, void *ptr);
27 
28 WEAK int halide_hexagon_allocate_l2_pool(void *user_context);
29 
30 WEAK int halide_hexagon_free_l2_pool(void *user_context);
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif
WEAK int halide_hexagon_allocate_l2_pool(void *user_context)
WEAK void * halide_hexagon_allocate_dma_resource(void *user_context)
#define WEAK
WEAK int halide_hexagon_free_dma_resource(void *user_context, void *virtual_engine_id)
WEAK void halide_locked_cache_free(void *user_context, void *ptr)
This file declares the routines used by Halide internally in its runtime.
WEAK int halide_hexagon_free_l2_pool(void *user_context)
WEAK void * halide_locked_cache_malloc(void *user_context, size_t size)
WEAK int halide_hexagon_free_to_dma_pool(void *user_context, void *dma_engine, void *virtual_engine_id)
WEAK void * halide_hexagon_allocate_from_dma_pool(void *user_context, void *virtual_engine_id)