summary refs log tree commit diff stats
path: root/linux-user/syscall_defs.h
diff options
context:
space:
mode:
authorChen Gang <chengang@emindsoft.com.cn>2020-08-02 21:39:38 +0800
committerLaurent Vivier <laurent@vivier.eu>2020-08-27 12:29:49 +0200
commit913b03c2640bcf62c978386aa69a8c6099fa9424 (patch)
tree70a0d7d6c5deb2f786df6eb2cf867499853f3f91 /linux-user/syscall_defs.h
parentb09d64064bd1ea5e5c37b2d5089e1cc3f65801b2 (diff)
downloadfocaccia-qemu-913b03c2640bcf62c978386aa69a8c6099fa9424.tar.gz
focaccia-qemu-913b03c2640bcf62c978386aa69a8c6099fa9424.zip
linux-user: syscall: ioctls: support DRM_IOCTL_I915_GETPARAM
Another DRM_IOCTL_I915 patches will be sent next.

Signed-off-by: Chen Gang <chengang@emindsoft.com.cn>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200802133938.12055-1-chengang@emindsoft.com.cn>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/syscall_defs.h')
-rw-r--r--linux-user/syscall_defs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 9aa3bd724f..a6abc7e70b 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -1177,6 +1177,9 @@ struct target_rtc_pll_info {
 /* drm ioctls */
 #define TARGET_DRM_IOCTL_VERSION      TARGET_IOWRU('d', 0x00)
 
+/* drm i915 ioctls */
+#define TARGET_DRM_IOCTL_I915_GETPARAM              TARGET_IOWRU('d', 0x46)
+
 /* from asm/termbits.h */
 
 #define TARGET_NCC 8
@@ -2620,6 +2623,11 @@ struct target_drm_version {
     abi_ulong desc;
 };
 
+struct target_drm_i915_getparam {
+    int param;
+    abi_ulong value;
+};
+
 #include "socket.h"
 
 #include "errno_defs.h"