/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2020-2020. All rights reserved. * Description: memlib * Author: SmartMedia_BSP * Create: 2020-06-04 */ #ifndef MEM_LIB_H #define MEM_LIB_H #include void memlib_init(struct list *listhead, unsigned int base, unsigned int size); void *memlib_malloc(struct list *listhead, unsigned int bytes); void *memlib_memalign(struct list *listhead, unsigned int alignment, unsigned int bytes); void memlib_free(struct list *listhead, void *ptr); void memlib_show_memnode(struct list *listhead, unsigned int cnt); #endif