3 * Copyright (C) 2014 ROCKCHIP, Inc.
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 struct ion_phys_data {
26 ion_user_handle_t handle;
31 #define ION_IOC_ROCKCHIP_MAGIC 'R'
33 /* Get phys addr of the handle specified. */
34 #define ION_IOC_GET_PHYS _IOWR(ION_IOC_ROCKCHIP_MAGIC, 0, \
37 extern struct ion_device *rockchip_ion_dev;
39 struct ion_client *rockchip_ion_client_create(const char *name);