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,
37 #define ION_HEAP(bit) (1 << (bit))
39 struct ion_phys_data {
40 ion_user_handle_t handle;
45 #define ION_IOC_ROCKCHIP_MAGIC 'R'
48 * Get phys addr of the handle specified.
50 #define ION_IOC_GET_PHYS _IOWR(ION_IOC_ROCKCHIP_MAGIC, 0, \