From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh0kQ-0006aE-Q3 for qemu-devel@nongnu.org; Wed, 13 Jul 2011 10:49:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qh0kL-0007qy-Oq for qemu-devel@nongnu.org; Wed, 13 Jul 2011 10:49:10 -0400 Received: from afflict.kos.to ([92.243.29.197]:47327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh0kL-0007qm-5W for qemu-devel@nongnu.org; Wed, 13 Jul 2011 10:49:05 -0400 From: riku.voipio@iki.fi Date: Wed, 13 Jul 2011 17:48:42 +0300 Message-Id: <774750c088192112df1623610dc35d9e03983d49.1310568214.git.riku.voipio@linaro.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 03/15] linux-user: Add support for more VT ioctls List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?C=C3=A9dric=20VINCENT?= , Riku Voipio From: C=C3=A9dric VINCENT DirectFB-1.0 uses at least two of the four added ioctls, and the two others were added for completeness. This patch was validated with the program "vlock -all/-new". Signed-off-by: C=C3=A9dric VINCENT Cc: Riku Voipio Signed-off-by: Riku Voipio --- linux-user/ioctls.h | 4 ++++ linux-user/syscall_defs.h | 4 ++++ linux-user/syscall_types.h | 7 +++++++ 3 files changed, 15 insertions(+), 0 deletions(-) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 68418e4..7bc1c48 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -336,3 +336,7 @@ IOCTL(VT_WAITACTIVE, 0, TYPE_INT) IOCTL(VT_LOCKSWITCH, 0, TYPE_INT) IOCTL(VT_UNLOCKSWITCH, 0, TYPE_INT) + IOCTL(VT_GETMODE, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_vt_mode))) + IOCTL(VT_SETMODE, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_vt_mode))) + IOCTL(VT_RELDISP, 0, TYPE_INT) + IOCTL(VT_DISALLOCATE, 0, TYPE_INT) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 2b74547..4a59b36 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -940,6 +940,10 @@ struct target_pollfd { #define TARGET_VT_WAITACTIVE 0x5607 #define TARGET_VT_LOCKSWITCH 0x560b #define TARGET_VT_UNLOCKSWITCH 0x560c +#define TARGET_VT_GETMODE 0x5601 +#define TARGET_VT_SETMODE 0x5602 +#define TARGET_VT_RELDISP 0x5605 +#define TARGET_VT_DISALLOCATE 0x5608 =20 /* from asm/termbits.h */ =20 diff --git a/linux-user/syscall_types.h b/linux-user/syscall_types.h index 0e67cd8..94b0ce0 100644 --- a/linux-user/syscall_types.h +++ b/linux-user/syscall_types.h @@ -166,6 +166,13 @@ STRUCT(vt_stat, TYPE_SHORT, /* v_signal */ TYPE_SHORT) /* v_state */ =20 +STRUCT(vt_mode, + TYPE_CHAR, /* mode */ + TYPE_CHAR, /* waitv */ + TYPE_SHORT, /* relsig */ + TYPE_SHORT, /* acqsig */ + TYPE_SHORT) /* frsig */ + STRUCT(fiemap_extent, TYPE_ULONGLONG, /* fe_logical */ TYPE_ULONGLONG, /* fe_physical */ --=20 1.7.4.1