https://github.com/halide/Halide
Raw File
Tip revision: 0e2b4449f97e18bc05d126745ad7b63def63807e authored by Alex Reinking on 11 July 2022, 20:42:01 UTC
source reorg
Tip revision: 0e2b444
hexagon_dma_pool.h
#ifndef _HEXAGON_DMA_POOL_H_
#define _HEXAGON_DMA_POOL_H_

#ifdef COMPILING_HALIDE_RUNTIME
// Guard this with COMPILING_HALIDE_RUNTIME so that apps/hexagon_dma
// can include this file without getting runtime_internal.h
#include "runtime_internal.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif

WEAK void *halide_hexagon_allocate_dma_resource(void *user_context);

WEAK void *halide_hexagon_allocate_from_dma_pool(void *user_context, void *virtual_engine_id);

WEAK int halide_hexagon_free_to_dma_pool(void *user_context, void *dma_engine, void *virtual_engine_id);

WEAK int halide_hexagon_free_dma_resource(void *user_context, void *virtual_engine_id);

WEAK void *halide_locked_cache_malloc(void *user_context, size_t size);

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);

#ifdef __cplusplus
}
#endif

#endif
back to top