Commit 0221cfcd719f7f37566048e2a90cdfa5c3136148

Authored by bellard
1 parent f351077e

more console ioctls


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@139 c046a42c-6fe2-441c-8c8c-71466251a162
linux-user/ioctls.h
... ... @@ -51,7 +51,11 @@
51 51 IOCTL(TIOCMIWAIT, 0, TYPE_INT)
52 52 IOCTL(TIOCGICOUNT, IOC_R, MK_PTR(MK_STRUCT(STRUCT_serial_icounter_struct)))
53 53  
54   - IOCTL(KDGKBTYPE, IOC_W, MK_PTR(TYPE_CHAR))
  54 + IOCTL(KIOCSOUND, 0, TYPE_INT)
  55 + IOCTL(KDMKTONE, 0, TYPE_INT)
  56 + IOCTL(KDGKBTYPE, IOC_R, MK_PTR(TYPE_CHAR))
  57 + IOCTL(KDGKBENT, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_kbentry)))
  58 + IOCTL(KDGKBSENT, IOC_RW, TYPE_PTRVOID)
55 59  
56 60 IOCTL(BLKROSET, IOC_W, MK_PTR(TYPE_INT))
57 61 IOCTL(BLKROGET, IOC_R, MK_PTR(TYPE_INT))
... ...
linux-user/syscall_defs.h
... ... @@ -213,7 +213,11 @@ struct target_pollfd {
213 213 };
214 214  
215 215 /* virtual terminal ioctls */
  216 +#define TARGET_KIOCSOUND 0x4B2F /* start sound generation (0 for off) */
  217 +#define TARGET_KDMKTONE 0x4B30 /* generate tone */
216 218 #define TARGET_KDGKBTYPE 0x4b33
  219 +#define TARGET_KDGKBENT 0x4B46 /* gets one entry in translation table */
  220 +#define TARGET_KDGKBSENT 0x4B48 /* gets one function key string entry */
217 221  
218 222 /* Networking ioctls */
219 223 #define TARGET_SIOCADDRT 0x890B /* add routing table entry */
... ...
linux-user/syscall_types.h
... ... @@ -64,3 +64,6 @@ STRUCT(hd_geometry,
64 64  
65 65 STRUCT(dirent,
66 66 TYPE_LONG, TYPE_LONG, TYPE_SHORT, MK_ARRAY(TYPE_CHAR, 256))
  67 +
  68 +STRUCT(kbentry,
  69 + TYPE_CHAR, TYPE_CHAR, TYPE_SHORT)
... ...