-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathve_alloc.h
29 lines (27 loc) · 958 Bytes
/
ve_alloc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Cedarx framework.
* Copyright (c) 2008-2015 Allwinner Technology Co. Ltd.
* Copyright (c) 2014 BZ Chen <[email protected]>
*
* This file is part of Cedarx.
*
* Cedarx is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
* kind, whether express or implied; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*/
#ifndef VE_ALLOC_H
#define VE_ALLOC_H
int ve_alloc_open();
int ve_alloc_close();
long ve_alloc_alloc(int size);
int ve_alloc_free(void * pbuf);
long ve_alloc_vir2phy(void * pbuf);
long ve_alloc_phy2vir(void * pbuf);
void ve_flush_cache(void* startAddr, int size);
#endif