3 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
16 #ifndef _LINUX_ROCKCHIP_ION_H
17 #define _LINUX_ROCKCHIP_ION_H
20 #include "../../drivers/staging/android/ion/ion.h"
22 #include <linux/ion.h>
25 #define ROCKCHIP_ION_VERSION "v1.1"
28 * ion_heap_ids order by ion_heap_type
31 ION_VMALLOC_HEAP_ID = 0,
32 ION_CARVEOUT_HEAP_ID = 2,
36 #define ION_HEAP(bit) (1 << (bit))
38 struct ion_phys_data {
39 ion_user_handle_t handle;
44 #define ION_IOC_ROCKCHIP_MAGIC 'R'
47 * Get phys addr of the handle specified.
49 #define ION_IOC_GET_PHYS _IOWR(ION_IOC_ROCKCHIP_MAGIC, 0, \