mbox series

[0/1] linux-user: Add drm ioctls for userland graphics drivers

Message ID 20230927175408.495872-1-tanxiongchuan@isrc.iscas.ac.cn
Headers show
Series linux-user: Add drm ioctls for userland graphics drivers | expand

Message

Xiongchuan Tan Sept. 27, 2023, 5:52 p.m. UTC
This patch adds more Direct Rendering Manager ioctls to support
userland OpenGL and Vulkan drivers, in addition to existing
DRM_IOCTL_VERSION.

More device-specific ioctls are needed though, but they share the same
range from 0x40 to 0x9f. Adding these would break the current
DRM_IOCTL_I915_GETPARAM. I'm unsure about whether a generic
implementation is possible.

Xiongchuan Tan (1):
  linux-user: Add drm ioctls for graphics drivers

 linux-user/ioctls.h        | 26 +++++++++++++++
 linux-user/syscall_defs.h  | 15 ++++++++-
 linux-user/syscall_types.h | 68 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 108 insertions(+), 1 deletion(-)