From 0221cfcd719f7f37566048e2a90cdfa5c3136148 Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 10 May 2003 12:38:16 +0000 Subject: [PATCH] more console ioctls git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@139 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/ioctls.h | 6 +++++- linux-user/syscall_defs.h | 4 ++++ linux-user/syscall_types.h | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 68f248d..dc1a378 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -51,7 +51,11 @@ IOCTL(TIOCMIWAIT, 0, TYPE_INT) IOCTL(TIOCGICOUNT, IOC_R, MK_PTR(MK_STRUCT(STRUCT_serial_icounter_struct))) - IOCTL(KDGKBTYPE, IOC_W, MK_PTR(TYPE_CHAR)) + IOCTL(KIOCSOUND, 0, TYPE_INT) + IOCTL(KDMKTONE, 0, TYPE_INT) + IOCTL(KDGKBTYPE, IOC_R, MK_PTR(TYPE_CHAR)) + IOCTL(KDGKBENT, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_kbentry))) + IOCTL(KDGKBSENT, IOC_RW, TYPE_PTRVOID) 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 4dbc663..bad9bd8 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -213,7 +213,11 @@ struct target_pollfd { }; /* virtual terminal ioctls */ +#define TARGET_KIOCSOUND 0x4B2F /* start sound generation (0 for off) */ +#define TARGET_KDMKTONE 0x4B30 /* generate tone */ #define TARGET_KDGKBTYPE 0x4b33 +#define TARGET_KDGKBENT 0x4B46 /* gets one entry in translation table */ +#define TARGET_KDGKBSENT 0x4B48 /* gets one function key string entry */ /* Networking ioctls */ #define TARGET_SIOCADDRT 0x890B /* add routing table entry */ diff --git a/linux-user/syscall_types.h b/linux-user/syscall_types.h index e9ec148..093a122 100644 --- a/linux-user/syscall_types.h +++ b/linux-user/syscall_types.h @@ -64,3 +64,6 @@ STRUCT(hd_geometry, STRUCT(dirent, TYPE_LONG, TYPE_LONG, TYPE_SHORT, MK_ARRAY(TYPE_CHAR, 256)) + +STRUCT(kbentry, + TYPE_CHAR, TYPE_CHAR, TYPE_SHORT) -- 1.7.9.5