gpu: ion: Add compatibility with future changes

Several changes are pending to be pulled in which are
not compatible with our changes. Specifically, a new
field to the allocation ioctl is added and the ioctl
numbers for cache flushing need to be changed.
Add these changes now until full changes can be pulled
in the future.

Change-Id: I9540495e25c7b6c414a6e3719f66f2cd9f78c585
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
This commit is contained in:
Ajay Dudani
2012-08-29 18:02:11 -07:00
committed by Iliyan Malchev
parent 261d92cf1b
commit 7196637a6e
2 changed files with 6 additions and 6 deletions

View File

@@ -826,7 +826,7 @@ struct ion_flag_data {
* descriptor obtained from ION_IOC_SHARE and returns the struct with the handle * descriptor obtained from ION_IOC_SHARE and returns the struct with the handle
* filed set to the corresponding opaque handle. * filed set to the corresponding opaque handle.
*/ */
#define ION_IOC_IMPORT _IOWR(ION_IOC_MAGIC, 5, int) #define ION_IOC_IMPORT _IOWR(ION_IOC_MAGIC, 5, struct ion_fd_data)
/** /**
* DOC: ION_IOC_CUSTOM - call architecture specific ion ioctl * DOC: ION_IOC_CUSTOM - call architecture specific ion ioctl
@@ -842,21 +842,21 @@ struct ion_flag_data {
* *
* Clean the caches of the handle specified. * Clean the caches of the handle specified.
*/ */
#define ION_IOC_CLEAN_CACHES _IOWR(ION_IOC_MAGIC, 7, \ #define ION_IOC_CLEAN_CACHES _IOWR(ION_IOC_MAGIC, 20, \
struct ion_flush_data) struct ion_flush_data)
/** /**
* DOC: ION_MSM_IOC_INV_CACHES - invalidate the caches * DOC: ION_MSM_IOC_INV_CACHES - invalidate the caches
* *
* Invalidate the caches of the handle specified. * Invalidate the caches of the handle specified.
*/ */
#define ION_IOC_INV_CACHES _IOWR(ION_IOC_MAGIC, 8, \ #define ION_IOC_INV_CACHES _IOWR(ION_IOC_MAGIC, 21, \
struct ion_flush_data) struct ion_flush_data)
/** /**
* DOC: ION_MSM_IOC_CLEAN_CACHES - clean and invalidate the caches * DOC: ION_MSM_IOC_CLEAN_CACHES - clean and invalidate the caches
* *
* Clean and invalidate the caches of the handle specified. * Clean and invalidate the caches of the handle specified.
*/ */
#define ION_IOC_CLEAN_INV_CACHES _IOWR(ION_IOC_MAGIC, 9, \ #define ION_IOC_CLEAN_INV_CACHES _IOWR(ION_IOC_MAGIC, 22, \
struct ion_flush_data) struct ion_flush_data)
/** /**
@@ -865,6 +865,6 @@ struct ion_flag_data {
* Gets the flags of the current handle which indicate cachability, * Gets the flags of the current handle which indicate cachability,
* secure state etc. * secure state etc.
*/ */
#define ION_IOC_GET_FLAGS _IOWR(ION_IOC_MAGIC, 10, \ #define ION_IOC_GET_FLAGS _IOWR(ION_IOC_MAGIC, 23, \
struct ion_flag_data) struct ion_flag_data)
#endif /* _LINUX_ION_H */ #endif /* _LINUX_ION_H */

View File

@@ -17,6 +17,6 @@
#ifndef _LINUX_MSM_ION_H #ifndef _LINUX_MSM_ION_H
#define _LINUX_MSM_ION_H #define _LINUX_MSM_ION_H
#include <linux/legacy_ion.h> #include <linux/ion.h>
#endif #endif