https://github.com/halide/Halide
Raw File
Tip revision: 3e8143a7c26c551fbf69e372c2123bc84dbb2c7d authored by Steven Johnson on 03 May 2022, 23:55:53 UTC
WIP
Tip revision: 3e8143a
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