linux-user: syscall: ioctls: support DRM_IOCTL_VERSION

Another DRM_IOCTL_* commands will be done later.

Signed-off-by: Chen Gang <chengang@emindsoft.com.cn>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200605013221.22828-1-chengang@emindsoft.com.cn>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Chen Gang 2020-06-05 09:32:21 +08:00 committed by Laurent Vivier
parent d43624c400
commit e865b97ff4
5 changed files with 139 additions and 0 deletions

View file

@ -1167,6 +1167,9 @@ struct target_rtc_pll_info {
#define TARGET_DM_TARGET_MSG TARGET_IOWRU(0xfd, 0x0e)
#define TARGET_DM_DEV_SET_GEOMETRY TARGET_IOWRU(0xfd, 0x0f)
/* drm ioctls */
#define TARGET_DRM_IOCTL_VERSION TARGET_IOWRU('d', 0x00)
/* from asm/termbits.h */
#define TARGET_NCC 8
@ -2598,6 +2601,18 @@ struct target_mq_attr {
abi_long mq_curmsgs;
};
struct target_drm_version {
int version_major;
int version_minor;
int version_patchlevel;
abi_ulong name_len;
abi_ulong name;
abi_ulong date_len;
abi_ulong date;
abi_ulong desc_len;
abi_ulong desc;
};
#include "socket.h"
#include "errno_defs.h"