Halide 14.0.0
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#ifdef COMPILING_HALIDE_RUNTIME
5// Guard this with COMPILING_HALIDE_RUNTIME so that apps/hexagon_dma
6// can include this file without getting runtime_internal.h
7#include "runtime_internal.h"
8#endif
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
15
16WEAK void *halide_hexagon_allocate_from_dma_pool(void *user_context, void *virtual_engine_id);
17
18WEAK int halide_hexagon_free_to_dma_pool(void *user_context, void *dma_engine, void *virtual_engine_id);
19
20WEAK int halide_hexagon_free_dma_resource(void *user_context, void *virtual_engine_id);
21
22WEAK void *halide_locked_cache_malloc(void *user_context, size_t size);
23
24WEAK void halide_locked_cache_free(void *user_context, void *ptr);
25
26WEAK int halide_hexagon_allocate_l2_pool(void *user_context);
27
28WEAK int halide_hexagon_free_l2_pool(void *user_context);
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif
WEAK void * halide_locked_cache_malloc(void *user_context, size_t size)
WEAK int halide_hexagon_free_dma_resource(void *user_context, void *virtual_engine_id)
WEAK void * halide_hexagon_allocate_from_dma_pool(void *user_context, void *virtual_engine_id)
WEAK void * halide_hexagon_allocate_dma_resource(void *user_context)
WEAK int halide_hexagon_free_to_dma_pool(void *user_context, void *dma_engine, void *virtual_engine_id)
WEAK void halide_locked_cache_free(void *user_context, void *ptr)
WEAK int halide_hexagon_allocate_l2_pool(void *user_context)
WEAK int halide_hexagon_free_l2_pool(void *user_context)
#define WEAK