diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index b4bfb3ab6e0a73d78b1e488d900983091057df69..68f248d63fdeb0898bb4532a8b065fa203c58f3a 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -51,6 +51,8 @@ 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(BLKROSET, IOC_W, MK_PTR(TYPE_INT)) IOCTL(BLKROGET, IOC_R, MK_PTR(TYPE_INT)) IOCTL(BLKRRPART, 0, TYPE_NULL) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index a442683b6d27af923fdcbe0d9e94cd7a2bb83b89..4dbc66333dbacfd5104b6b59e6a02360e051e7fa 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -212,6 +212,9 @@ struct target_pollfd { short revents; /* returned events */ }; +/* virtual terminal ioctls */ +#define TARGET_KDGKBTYPE 0x4b33 + /* Networking ioctls */ #define TARGET_SIOCADDRT 0x890B /* add routing table entry */ #define TARGET_SIOCDELRT 0x890C /* delete routing table entry */