You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
594 B
18 lines
594 B
/*
|
|
* 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 <hlist.h>
|
|
|
|
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 |