[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/15] linux-user: Add support for KD...LED ioctls
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PATCH 02/15] linux-user: Add support for KD...LED ioctls |
Date: |
Wed, 13 Jul 2011 17:48:41 +0300 |
From: Cédric VINCENT <address@hidden>
DirectFB-1.0 uses at least one of the four added ioctls, and the three
others were added for completeness. This patch was validated with the
program "setleds" and the following Makefile:
SETLEDS_INIT = setleds -v -num -caps -scroll
SETLEDS_TESTS = sh -c ' \
setleds -v +num +caps +scroll; \
setleds -v -num -caps -scroll; \
setleds -v +num -caps -scroll; \
setleds -v +num +caps -scroll; \
setleds -v +num +caps +scroll; \
setleds -v -num +caps +scroll; \
setleds -v -num -caps +scroll; \
setleds -v -num -caps -scroll'
SETLEDS_HOST = setleds
SETLEDS_QEMU = "SETLEDS_QEMU not set"
.PHONY: setleds_tests
setleds_tests:
rm -f setleds.host setleds.target
$(SETLEDS_INIT:setleds=$(SETLEDS_HOST))
$(SETLEDS_TESTS:setleds=$(SETLEDS_HOST)) >> setleds.host
$(SETLEDS_INIT:setleds=$(SETLEDS_QEMU))
$(SETLEDS_TESTS:setleds=$(SETLEDS_QEMU)) >> setleds.target
cmp setleds.host setleds.target
Signed-off-by: Cédric VINCENT <address@hidden>
Cc: Riku Voipio <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
linux-user/ioctls.h | 4 ++++
linux-user/syscall_defs.h | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index 42b3ae3..68418e4 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -59,6 +59,10 @@
IOCTL(KDSKBMODE, 0, TYPE_INT)
IOCTL(KDGKBENT, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_kbentry)))
IOCTL(KDGKBSENT, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_kbsentry)))
+ IOCTL(KDGKBLED, 0, TYPE_INT)
+ IOCTL(KDSKBLED, 0, TYPE_INT)
+ IOCTL(KDGETLED, 0, TYPE_INT)
+ IOCTL(KDSETLED, 0, TYPE_INT)
IOCTL(BLKROSET, IOC_W, MK_PTR(TYPE_INT))
IOCTL(BLKROGET, IOC_R, MK_PTR(TYPE_INT))
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 04c268d..2b74547 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -708,6 +708,10 @@ struct target_pollfd {
#define TARGET_KDSKBMODE 0x4b45
#define TARGET_KDGKBENT 0x4B46 /* gets one entry in
translation table */
#define TARGET_KDGKBSENT 0x4B48 /* gets one function key string entry */
+#define TARGET_KDGKBLED 0x4B64 /* get led flags (not lights) */
+#define TARGET_KDSKBLED 0x4B65 /* set led flags (not lights) */
+#define TARGET_KDGETLED 0x4B31 /* return current led state */
+#define TARGET_KDSETLED 0x4B32 /* set led state [lights, not flags] */
#define TARGET_SIOCATMARK 0x8905
--
1.7.4.1
- [Qemu-devel] [PATCH 00/15] v2: pending linux-user patches, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 03/15] linux-user: Add support for more VT ioctls, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 04/15] linux-user: Add support for even more FB ioctls, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 05/15] linux-user: Add syscall numbers from kernel 2.6.39.2, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 01/15] arm-semi: Provide access to CLI arguments passed through the "-append" option, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 06/15] linux-user: Implement prlimit64 syscall, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 02/15] linux-user: Add support for KD...LED ioctls,
riku . voipio <=
- [Qemu-devel] [PATCH 07/15] linux-user/syscall.c: Enforce pselect6 sigset size restrictions, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 08/15] mips: sigaltstack args, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 09/15] mips: missing syscall returns wrong errno, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 11/15] mips: rlimit incorrectly converts values, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 10/15] mips: null pointer deref should segfault, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 13/15] linux-user: correct syscall 123 on sh4, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 14/15] linux-user: make MIPS and ARM eabi use same argument reordering, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 12/15] mips: rlimit codes are not the same, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 15/15] linux-user/signal.c: Rename s390 target_ucontext fields to fix ia64, riku . voipio, 2011/07/13