diff options
author | Linux Build Service Account <lnxbuild@qualcomm.com> | 2010-08-03 16:26:42 -0700 |
---|---|---|
committer | QuIC Gerrit Code Review <code-review@quicinc.com> | 2010-08-03 16:26:42 -0700 |
commit | ac51a6183c4388dab525a5f943fce571ab8bf697 (patch) | |
tree | 00a72111effd155d23a7c0f3a546955e02c835b7 | |
parent | 7e532b3e3be7baae07584475a3e2e383a6be35d2 (diff) | |
parent | 129eaae94866fef2793277cfc4096526a95e3d39 (diff) | |
download | bionic-ac51a6183c4388dab525a5f943fce571ab8bf697.zip bionic-ac51a6183c4388dab525a5f943fce571ab8bf697.tar.gz bionic-ac51a6183c4388dab525a5f943fce571ab8bf697.tar.bz2 |
Merge "Add new ioctl IOCTL_USER_MEM_MAP" into froyoQ8650DTBCANLYA2030M7630AABBQVLZA301204M7630AABBQMLZA2510
-rw-r--r-- | libc/kernel/common/linux/msm_kgsl.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/msm_kgsl.h b/libc/kernel/common/linux/msm_kgsl.h index 2cd9e4b..acdfb0f 100644 --- a/libc/kernel/common/linux/msm_kgsl.h +++ b/libc/kernel/common/linux/msm_kgsl.h @@ -31,6 +31,12 @@ enum kgsl_deviceid { KGSL_DEVICE_MAX = 0x00000002 }; +enum kgsl_user_mem_type { + KGSL_USER_MEM_TYPE_PMEM = 0x00000000, + KGSL_USER_MEM_TYPE_ASHMEM = 0x00000001, + KGSL_USER_MEM_TYPE_ADDR = 0x00000002 +}; + struct kgsl_devinfo { unsigned int device_id; @@ -144,6 +150,18 @@ struct kgsl_drawctxt_destroy { #define IOCTL_KGSL_DRAWCTXT_DESTROY _IOW(KGSL_IOC_TYPE, 0x14, struct kgsl_drawctxt_destroy) +struct kgsl_map_user_mem { + int fd; + unsigned int gpuaddr; + unsigned int len; + unsigned int offset; + unsigned int hostptr; + enum kgsl_user_mem_type memtype; + unsigned int reserved; +}; + +#define IOCTL_KGSL_MAP_USER_MEM _IOWR(KGSL_IOC_TYPE, 0x15, struct kgsl_map_user_mem) + struct kgsl_sharedmem_from_pmem { int pmem_fd; unsigned int gpuaddr; |