[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH for 4.2 v5 08/15] linux-user: Add support for HDIO_G
From: |
Aleksandar Markovic |
Subject: |
[Qemu-devel] [PATCH for 4.2 v5 08/15] linux-user: Add support for HDIO_GET_ACOUSTIC and HDIO_SET_ACOUSTIC ioctls |
Date: |
Thu, 1 Aug 2019 14:21:09 +0200 |
From: Aleksandar Markovic <address@hidden>
Add support for HDIO_GET_ACOUSTIC and HDIO_SET_ACOUSTIC ioctls.
Signed-off-by: Aleksandar Markovic <address@hidden>
---
linux-user/ioctls.h | 2 ++
linux-user/syscall_defs.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index b54a184..c9b82eb 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -436,6 +436,7 @@
IOCTL(HDIO_GET_32BIT, IOC_R, MK_PTR(TYPE_INT))
IOCTL(HDIO_GET_NICE, IOC_R, MK_PTR(TYPE_INT))
IOCTL(HDIO_GET_WCACHE, IOC_R, MK_PTR(TYPE_INT))
+ IOCTL(HDIO_GET_ACOUSTIC, IOC_R, MK_PTR(TYPE_INT))
IOCTL(HDIO_DRIVE_CMD, IOC_R, MK_PTR(TYPE_INT))
IOCTL(HDIO_SET_UNMASKINTR, 0, TYPE_INT)
IOCTL(HDIO_SET_MULTCOUNT, 0, TYPE_INT)
@@ -446,6 +447,7 @@
IOCTL(HDIO_SET_PIO_MODE, 0, TYPE_INT)
IOCTL(HDIO_SET_NICE, 0, TYPE_INT)
IOCTL(HDIO_SET_WCACHE, 0, TYPE_INT)
+ IOCTL(HDIO_SET_ACOUSTIC, 0, TYPE_INT)
IOCTL(VFAT_IOCTL_READDIR_BOTH, IOC_R,
MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_dirent), 2)))
IOCTL(VFAT_IOCTL_READDIR_SHORT, IOC_R,
MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_dirent), 2)))
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index fb42d32..b9d1242 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -1067,6 +1067,7 @@ struct target_format_descr {
#define TARGET_HDIO_GET_NICE 0x030c /* get nice flags */
#define TARGET_HDIO_GET_IDENTITY 0x030d /* get IDE identification info */
#define TARGET_HDIO_GET_WCACHE 0x030e /* get write cache mode on|off */
+#define TARGET_HDIO_GET_ACOUSTIC 0x030f /* get acoustic value */
#define TARGET_HDIO_DRIVE_CMD 0x031f /* execute a special drive
command */
/* hd/ide ctl's that pass (arg) non-ptr values are numbered 0x032n/0x033n */
@@ -1079,6 +1080,7 @@ struct target_format_descr {
#define TARGET_HDIO_SET_PIO_MODE 0x0327 /* reconfig interface to new
speed */
#define TARGET_HDIO_SET_NICE 0x0329 /* set nice flags */
#define TARGET_HDIO_SET_WCACHE 0x032b /* change write cache mode */
+#define TARGET_HDIO_SET_ACOUSTIC 0x032c /* change acoustic behavior */
/* loop ioctls */
#define TARGET_LOOP_SET_FD 0x4C00
--
2.7.4
- [Qemu-devel] [PATCH for 4.2 v5 00/15] linux-user: Misc patches for 4.2, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 06/15] linux-user: Add support for HDIO_GET_NICE and HDIO_SET_NICE ioctls, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 05/15] linux-user: Add support for FDSETEMSGTRESH, FDSETMAXERRS, and FDGETMAXERRS ioctls, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 07/15] linux-user: Add support for HDIO_GET_WCACHE and HDIO_SET_WCACHE ioctls, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 01/15] linux user: Add support for FDFLUSH ioctl, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 02/15] linux-user: Add support for FDMSGON and FDMSGOFF ioctls, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 08/15] linux-user: Add support for HDIO_GET_ACOUSTIC and HDIO_SET_ACOUSTIC ioctls,
Aleksandar Markovic <=
- [Qemu-devel] [PATCH for 4.2 v5 03/15] linux-user: Add support for FDRESET, FDRAWCMD, FDTWADDLE, and FDEJECT ioctls, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 09/15] linux-user: Add support for HDIO_GET_ADDRESS and HDIO_SET_ADDRESS ioctls, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 10/15] linux-user: Add support for HDIO_GET_BUSSTATE and HDIO_SET_BUSSTATE ioctls, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 04/15] linux-user: Add support for FDFMTBEG, FDFMTTRK, and FDFMTEND ioctls, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 11/15] linux-user: Add support for KDGKBMETA and KDSKBMETA ioctls, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 12/15] linux-user: Fix support for KDGKBLED and KDSKBLED ioctls, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 13/15] linux-user: Fix support for KDGETLED and KDSETLED ioctls, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 14/15] linux-user: Add support for RNDRESEEDCRNG ioctl, Aleksandar Markovic, 2019/08/01
- [Qemu-devel] [PATCH for 4.2 v5 15/15] linux-user: Add support for semtimedop() syscall, Aleksandar Markovic, 2019/08/01