/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2014-2020. All rights reserved. * Description: malloc.h * Author: SmartMedia_BSP * Create: 2014-06-04 */ #ifndef MALLOCH #define MALLOCH #include void malloc_init(uint32 start, uint32 len); void *malloc(uint32 bytes); /* not thread safe */ void *memalign(uint32 alignment, uint32 bytes); void free(void *ptr); void show_memnode(unsigned int); void dump_malloc(void); void devmalloc_init(uint32 start, uint32 len); void *devmalloc(uint32 bytes); void devfree(void *mem); void *devmemalign(uint32 alignment, uint32 bytes); void resmalloc_init(uint32 start, uint32 len); void *resmalloc(uint32 bytes); void *resmemalign(uint32 alignment, uint32 bytes); void resfree(void *ptr); void show_resmemnode(unsigned int cnt); #endif /* MALLOCH */