diff options
Diffstat (limited to 'libc/kernel/common/linux/android_pmem.h')
-rw-r--r-- | libc/kernel/common/linux/android_pmem.h | 10 |
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 *); |