summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Bassel <lbassel@quicinc.com>2009-06-17 14:27:39 -0700
committerShylender Gaddamwar <c_shylen@quicinc.com>2009-06-24 18:15:11 -0700
commit698640969d734ef3c90e19beb79a1343b1bbd241 (patch)
tree0ea840b1e2dfbc5c61a3b77b421489db8a5b957e
parentc83cf4229cec58e0bf2665f3b040bc2998b20471 (diff)
downloadbionic-698640969d734ef3c90e19beb79a1343b1bbd241.zip
bionic-698640969d734ef3c90e19beb79a1343b1bbd241.tar.gz
bionic-698640969d734ef3c90e19beb79a1343b1bbd241.tar.bz2
Bionic: sync kernel changes in android_pmem.h to bionic
Signed-off-by: Larry Bassel <lbassel@quicinc.com>
-rw-r--r--libc/kernel/common/linux/android_pmem.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/android_pmem.h b/libc/kernel/common/linux/android_pmem.h
index 858857e..230310e 100644
--- a/libc/kernel/common/linux/android_pmem.h
+++ b/libc/kernel/common/linux/android_pmem.h
@@ -23,6 +23,12 @@ struct pmem_region {
unsigned long len;
};
+struct pmem_addr {
+ unsigned long vaddr;
+ unsigned long offset;
+ unsigned long length;
+};
+
#define PMEM_IOCTL_MAGIC 'p'
#define PMEM_GET_PHYS _IOW(PMEM_IOCTL_MAGIC, 1, struct pmem_region *)
#define PMEM_MAP _IOW(PMEM_IOCTL_MAGIC, 2, struct pmem_region *)
@@ -39,6 +45,10 @@ struct pmem_region {
#define HW3D_GRANT_GPU _IOW(PMEM_IOCTL_MAGIC, 9, unsigned int)
#define HW3D_WAIT_IRQ _IOW(PMEM_IOCTL_MAGIC,10, unsigned int)
+#define PMEM_CLEAN_INV_CACHES _IOW(PMEM_IOCTL_MAGIC, 11, unsigned int)
+#define PMEM_CLEAN_CACHES _IOW(PMEM_IOCTL_MAGIC, 12, unsigned int)
+#define PMEM_INV_CACHES _IOW(PMEM_IOCTL_MAGIC, 13, unsigned int)
+
struct android_pmem_platform_data;
struct pmem_file_operations {
int (*mmap) (struct file *, struct vm_area_struct *);