upload android base code part4
This commit is contained in:
parent
b9e30e05b1
commit
78ea2404cd
23455 changed files with 5250148 additions and 0 deletions
36
android/hardware/aw/camera/include/sunxi_physmem.h
Normal file
36
android/hardware/aw/camera/include/sunxi_physmem.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* include/linux/sunxi_physmem.h
|
||||
* (C) Copyright 2010-2015
|
||||
* Reuuimlla Technology Co., Ltd. <www.reuuimllatech.com>
|
||||
* liugang <liugang@reuuimllatech.com>
|
||||
*
|
||||
* sunxi physical memory allocator head file
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __SUNXI_PHYSMEM_H
|
||||
#define __SUNXI_PHYSMEM_H
|
||||
|
||||
#define SUNXI_MEM_ALLOC 1
|
||||
#define SUNXI_MEM_FREE 3 /* cannot be 2, which reserved in linux */
|
||||
#define SUNXI_MEM_GET_REST_SZ 4
|
||||
#define SUNXI_MEM_FLUSH_CACHE 5
|
||||
#define SUNXI_MEM_FLUSH_CACHE_ALL 6
|
||||
|
||||
/* cache range for SUNXI_MEM_FLUSH_CACHE */
|
||||
struct sunmm_cache_range{
|
||||
long start;
|
||||
long end;
|
||||
};
|
||||
|
||||
//bool sunxi_mem_alloc(u32 size, u32* phymem);
|
||||
unsigned int sunxi_mem_alloc(unsigned int size);
|
||||
void sunxi_mem_free(unsigned int phymem);
|
||||
unsigned int sunxi_mem_get_rest_size(void);
|
||||
|
||||
#endif /* __SUNXI_PHYSMEM_H */
|
Loading…
Add table
Add a link
Reference in a new issue