linux-user: Add support for FDMSGON and FDMSGOFF ioctls
authorAleksandar Markovic <amarkovic@wavecomp.com>
Wed, 4 Sep 2019 12:59:25 +0000 (14:59 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 11 Sep 2019 06:47:06 +0000 (08:47 +0200)
FDMSGON and FDMSGOFF switch informational messages of floppy drives
on and off.

Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <1567601968-26946-6-git-send-email-aleksandar.markovic@rt-rk.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/ioctls.h
linux-user/syscall_defs.h

index bc19448042204039d15be663b59b16799cf21627..b253469999ee630410965853214425f6dd9d9f70 100644 (file)
      IOCTL(BLKZEROOUT, IOC_W, MK_PTR(MK_ARRAY(TYPE_ULONGLONG, 2)))
 #endif
 
+     IOCTL(FDMSGON, 0, TYPE_NULL)
+     IOCTL(FDMSGOFF, 0, TYPE_NULL)
      IOCTL(FDFLUSH, 0, TYPE_NULL)
 
 #ifdef FIBMAP
index 917202a2035dcdb7cb2e088904c7a70134354cb4..4e33ef396be4b976284505a1addfcf5e47e8dac0 100644 (file)
@@ -890,6 +890,8 @@ struct target_pollfd {
 
 /* From <linux/fd.h> */
 
+#define TARGET_FDMSGON        TARGET_IO(2, 0x45)
+#define TARGET_FDMSGOFF       TARGET_IO(2, 0x46)
 #define TARGET_FDFLUSH        TARGET_IO(2, 0x4b)
 
 #define TARGET_FIBMAP     TARGET_IO(0x00,1)  /* bmap access */