mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 18:38:55 +00:00
32 lines
503 B
C
32 lines
503 B
C
/*
|
|
* Copyright (c) 2022-2023, ArtInChip Technology Co., Ltd
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* author: <qi.xu@artinchip.com>
|
|
* Desc: virtual memory allocator
|
|
*/
|
|
|
|
#ifndef MPP_MEM_H
|
|
#define MPP_MEM_H
|
|
|
|
#include <limits.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void *mpp_alloc(size_t size);
|
|
void mpp_free(void *ptr);
|
|
|
|
unsigned int mpp_phy_alloc(size_t size);
|
|
void mpp_phy_free(unsigned int addr);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* MEM_H */
|