hyperion.ng
meson_ion.h
1 /*
2  * include/linux/amlogic/dev_ion.h
3  *
4  * Copyright (C) 2014 Amlogic, Inc.
5  *
6  * This software is licensed under the terms of the GNU General Public
7  * License version 2, as published by the Free Software Foundation, and
8  * may be copied, distributed, and modified under those terms.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  */
16 
17 #ifndef __LINUX_AMLOGIC_ION_H__
18 #define __LINUX_AMLOGIC_ION_H__
19 
20 //#include <linux/types.h>
21 //#include <ion/ion.h>
22 
27 #define ION_IOC_MESON_PHYS_ADDR 8
28 
30  int handle;
31  unsigned int phys_addr;
32  unsigned int size;
33 };
34 
35 
36 #if 0
37 
43 struct ion_client *meson_ion_client_create(unsigned int heap_mask,
44  const char *name);
45 
55 int meson_ion_share_fd_to_phys(struct ion_client *client,
56  int share_fd, ion_phys_addr_t *addr, size_t *len);
57 #endif
58 
59 #endif
60 
Definition: meson_ion.h:29