# collect ioctl's used in i915 backend grep -Hrn -A 2 drmIo *|grep -Po 'DRM_[A-Z_0-9]*'|sort -u # Generate switch statement: :'<,'>s/\(DRM_.*)/case \1: return "\1";/g # list as of 2.4.65 DRM_IOCTL_GEM_CLOSE DRM_IOCTL_GEM_FLINK DRM_IOCTL_GEM_OPEN DRM_IOCTL_I915_GEM_BUSY DRM_IOCTL_I915_GEM_CONTEXT_CREATE DRM_IOCTL_I915_GEM_CONTEXT_DESTROY DRM_IOCTL_I915_GEM_CREATE DRM_IOCTL_I915_GEM_EXECBUFFER DRM_IOCTL_I915_GEM_EXECBUFFER2 DRM_IOCTL_I915_GEM_GET_APERTURE DRM_IOCTL_I915_GEM_GET_TILING DRM_IOCTL_I915_GEM_MADVISE DRM_IOCTL_I915_GEM_MMAP DRM_IOCTL_I915_GEM_MMAP_GTT DRM_IOCTL_I915_GEM_PIN DRM_IOCTL_I915_GEM_PREAD DRM_IOCTL_I915_GEM_PWRITE DRM_IOCTL_I915_GEM_SET_DOMAIN DRM_IOCTL_I915_GEM_SW_FINISH DRM_IOCTL_I915_GEM_UNPIN DRM_IOCTL_I915_GEM_USERPTR DRM_IOCTL_I915_GEM_WAIT DRM_IOCTL_I915_GETPARAM DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID DRM_IOCTL_I915_GET_RESET_STATS DRM_IOCTL_I915_REG_READ # used in 2.4.95 DRM_IOCTL_I915_GEM_EXECBUFFER2_WR # ioctl used by Mesa when running ioq3 on Linux DRM_IOCTL_GEM_CLOSE (40086409) DRM_IOCTL_I915_GEM_BUSY (c0086457) DRM_IOCTL_I915_GEM_CONTEXT_CREATE (c008646d) DRM_IOCTL_I915_GEM_CONTEXT_DESTROY (4008646e) DRM_IOCTL_I915_GEM_CREATE (c010645b) DRM_IOCTL_I915_GEM_EXECBUFFER2 (40406469) DRM_IOCTL_I915_GEM_GET_APERTURE (80106463) DRM_IOCTL_I915_GEM_MADVISE (c00c6466) DRM_IOCTL_I915_GEM_MMAP (c028645e) DRM_IOCTL_I915_GEM_MMAP_GTT (c0106464) DRM_IOCTL_I915_GEM_PWRITE (4020645d) DRM_IOCTL_I915_GEM_SET_DOMAIN (400c645f) DRM_IOCTL_I915_GEM_THROTTLE (6458) DRM_IOCTL_I915_GEM_WAIT (c010646c) DRM_IOCTL_I915_GETPARAM (c0106446) DRM_IOCTL_I915_GET_RESET_STATS (c0186472) DRM_IOCTL_I915_REG_READ (c0106471) DRM_IOCTL_PRIME_HANDLE_TO_FD (c00c642d) # vs. ioctl on Genode DRM_IOCTL_GEM_CLOSE DRM_IOCTL_GEM_FLINK DRM_IOCTL_I915_GEM_BUSY DRM_IOCTL_I915_GEM_CONTEXT_CREATE DRM_IOCTL_I915_GEM_CREATE DRM_IOCTL_I915_GEM_EXECBUFFER2 DRM_IOCTL_I915_GEM_GET_APERTURE DRM_IOCTL_I915_GEM_MADVISE DRM_IOCTL_I915_GEM_MMAP DRM_IOCTL_I915_GEM_MMAP_GTT DRM_IOCTL_I915_GEM_PWRITE DRM_IOCTL_I915_GEM_SET_DOMAIN DRM_IOCTL_I915_GEM_SET_TILING DRM_IOCTL_I915_GEM_SW_FINISH DRM_IOCTL_I915_GEM_THROTTLE DRM_IOCTL_I915_GETPARAM DRM_IOCTL_I915_GET_RESET_STATS DRM_IOCTL_I915_REG_READ ⇒ where is DRM_IOCTL_I915_GEM_WAIT? # Used https://android.googlesource.com/platform/system/sepolicy # public/ioctl_defines to correlated request values.