diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-06 17:13:59 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-13 09:35:35 +0100 |
commit | 75c075cb263bf33259d26692b4f093f84276915c (patch) | |
tree | ae83f985a4857f7af50b93ed0925591bd0c2f486 /lib/ioctl_wrappers.h | |
parent | 364efcdf9b1f90ec0befda9b1097434c88a1eb18 (diff) |
lib/ioctl: Document ctx param functions
And move them so that they're grouped with the other context wrappers.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'lib/ioctl_wrappers.h')
-rw-r--r-- | lib/ioctl_wrappers.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h index ad10bd03..ea9f5598 100644 --- a/lib/ioctl_wrappers.h +++ b/lib/ioctl_wrappers.h @@ -97,6 +97,16 @@ int gem_madvise(int fd, uint32_t handle, int state); uint32_t gem_context_create(int fd); void gem_context_destroy(int fd, uint32_t ctx_id); int __gem_context_destroy(int fd, uint32_t ctx_id); +struct local_i915_gem_context_param { + uint32_t context; + uint32_t size; + uint64_t param; +#define LOCAL_CONTEXT_PARAM_BAN_PERIOD 0x1 + uint64_t value; +}; +void gem_context_require_param(int fd, uint64_t param); +void gem_context_get_param(int fd, struct local_i915_gem_context_param *p); +void gem_context_set_param(int fd, struct local_i915_gem_context_param *p); void gem_sw_finish(int fd, uint32_t handle); @@ -125,16 +135,4 @@ int prime_handle_to_fd(int fd, uint32_t handle); uint32_t prime_fd_to_handle(int fd, int dma_buf_fd); off_t prime_get_size(int dma_buf_fd); -struct local_i915_gem_context_param { - uint32_t context; - uint32_t size; - uint64_t param; -#define LOCAL_CONTEXT_PARAM_BAN_PERIOD 0x1 - uint64_t value; -}; - -void gem_context_require_param(int fd, uint64_t param); -void gem_context_get_param(int fd, struct local_i915_gem_context_param *p); -void gem_context_set_param(int fd, struct local_i915_gem_context_param *p); - #endif /* IOCTL_WRAPPERS_H */ |