OLD | NEW |
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 Loading... |
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 Loading... |
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 */ |
OLD | NEW |