Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: include/linux/msm_kgsl.h

Issue 668184: msm_kgsl: Implement the old version of the KGSL_SHAREDMEM_FROM_PMEM ioctl. (Closed)
Patch Set: Respond to review. Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « drivers/char/msm_kgsl/kgsl.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2002,2007-2009, Code Aurora Forum. All rights reserved. 1 /* Copyright (c) 2002,2007-2009, Code Aurora Forum. All rights reserved.
2 * 2 *
3 * Redistribution and use in source and binary forms, with or without 3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are met: 4 * modification, are permitted provided that the following conditions are met:
5 * * Redistributions of source code must retain the above copyright 5 * * Redistributions of source code must retain the above copyright
6 * notice, this list of conditions and the following disclaimer. 6 * notice, this list of conditions and the following disclaimer.
7 * * Redistributions in binary form must reproduce the above copyright 7 * * Redistributions in binary form must reproduce the above copyright
8 * notice, this list of conditions and the following disclaimer in the 8 * notice, this list of conditions and the following disclaimer in the
9 * documentation and/or other materials provided with the distribution. 9 * documentation and/or other materials provided with the distribution.
10 * * Neither the name of Code Aurora nor 10 * * Neither the name of Code Aurora nor
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 struct kgsl_sharedmem_from_pmem { 226 struct kgsl_sharedmem_from_pmem {
227 int pmem_fd; 227 int pmem_fd;
228 unsigned int gpuaddr; /*output param */ 228 unsigned int gpuaddr; /*output param */
229 unsigned int len; 229 unsigned int len;
230 unsigned int offset; 230 unsigned int offset;
231 }; 231 };
232 232
233 #define IOCTL_KGSL_SHAREDMEM_FROM_PMEM \ 233 #define IOCTL_KGSL_SHAREDMEM_FROM_PMEM \
234 _IOWR(KGSL_IOC_TYPE, 0x20, struct kgsl_sharedmem_from_pmem) 234 _IOWR(KGSL_IOC_TYPE, 0x20, struct kgsl_sharedmem_from_pmem)
235 235
236 /* Support the old SHAREDMEM_FROM_PMEM ioctl. */
237 struct kgsl_sharedmem_from_pmem_old {
238 int pmem_fd;
239 unsigned int gpuaddr; /*output param */
240 };
241
242 #define IOCTL_KGSL_SHAREDMEM_FROM_PMEM_OLD \
243 _IOWR(KGSL_IOC_TYPE, 0x20, struct kgsl_sharedmem_from_pmem_old)
244
236 /* remove memory from the GPU's address space */ 245 /* remove memory from the GPU's address space */
237 struct kgsl_sharedmem_free { 246 struct kgsl_sharedmem_free {
238 unsigned int gpuaddr; 247 unsigned int gpuaddr;
239 }; 248 };
240 249
241 #define IOCTL_KGSL_SHAREDMEM_FREE \ 250 #define IOCTL_KGSL_SHAREDMEM_FREE \
242 _IOW(KGSL_IOC_TYPE, 0x21, struct kgsl_sharedmem_free) 251 _IOW(KGSL_IOC_TYPE, 0x21, struct kgsl_sharedmem_free)
243 252
244 253
245 struct kgsl_gmem_desc { 254 struct kgsl_gmem_desc {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 305
297 #ifdef __KERNEL__ 306 #ifdef __KERNEL__
298 #ifdef CONFIG_MSM_KGSL_DRM 307 #ifdef CONFIG_MSM_KGSL_DRM
299 int kgsl_gem_obj_addr(int drm_fd, int handle, unsigned long *start, 308 int kgsl_gem_obj_addr(int drm_fd, int handle, unsigned long *start,
300 unsigned long *len); 309 unsigned long *len);
301 #else 310 #else
302 #define kgsl_gem_obj_addr(...) 0 311 #define kgsl_gem_obj_addr(...) 0
303 #endif 312 #endif
304 #endif 313 #endif
305 #endif /* _MSM_KGSL_H */ 314 #endif /* _MSM_KGSL_H */
OLDNEW
« no previous file with comments | « drivers/char/msm_kgsl/kgsl.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698