diff options
author | Shubhraprakash Das <sadas@codeaurora.org> | 2010-07-29 13:39:25 -0600 |
---|---|---|
committer | Shubhraprakash Das <sadas@codeaurora.org> | 2010-07-29 13:39:25 -0600 |
commit | 129eaae94866fef2793277cfc4096526a95e3d39 (patch) | |
tree | e7873f63ad7dde64dc13c4f94cae489e6f306197 | |
parent | 4525d0d8b2d58a0920e18f46c2a6ef1a1b091ed9 (diff) | |
download | bionic-129eaae94866fef2793277cfc4096526a95e3d39.zip bionic-129eaae94866fef2793277cfc4096526a95e3d39.tar.gz bionic-129eaae94866fef2793277cfc4096526a95e3d39.tar.bz2 |
Add new ioctl IOCTL_USER_MEM_MAP
Change-Id: I720bf652812594770ee8f6641cd0a51176622f3a
-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; |