aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/compat_ioctl.c10
-rw-r--r--include/linux/compat_ioctl.h24
2 files changed, 22 insertions, 12 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index 27ca1aa30562..a91f2628c981 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -2438,13 +2438,17 @@ HANDLE_IOCTL(0x1260, broken_blkgetsize)
2438HANDLE_IOCTL(BLKFRAGET, w_long) 2438HANDLE_IOCTL(BLKFRAGET, w_long)
2439HANDLE_IOCTL(BLKSECTGET, w_long) 2439HANDLE_IOCTL(BLKSECTGET, w_long)
2440HANDLE_IOCTL(BLKPG, blkpg_ioctl_trans) 2440HANDLE_IOCTL(BLKPG, blkpg_ioctl_trans)
2441HANDLE_IOCTL(HDIO_GET_KEEPSETTINGS, hdio_ioctl_trans)
2442HANDLE_IOCTL(HDIO_GET_UNMASKINTR, hdio_ioctl_trans) 2441HANDLE_IOCTL(HDIO_GET_UNMASKINTR, hdio_ioctl_trans)
2443HANDLE_IOCTL(HDIO_GET_DMA, hdio_ioctl_trans)
2444HANDLE_IOCTL(HDIO_GET_32BIT, hdio_ioctl_trans)
2445HANDLE_IOCTL(HDIO_GET_MULTCOUNT, hdio_ioctl_trans) 2442HANDLE_IOCTL(HDIO_GET_MULTCOUNT, hdio_ioctl_trans)
2443HANDLE_IOCTL(HDIO_GET_KEEPSETTINGS, hdio_ioctl_trans)
2444HANDLE_IOCTL(HDIO_GET_32BIT, hdio_ioctl_trans)
2446HANDLE_IOCTL(HDIO_GET_NOWERR, hdio_ioctl_trans) 2445HANDLE_IOCTL(HDIO_GET_NOWERR, hdio_ioctl_trans)
2446HANDLE_IOCTL(HDIO_GET_DMA, hdio_ioctl_trans)
2447HANDLE_IOCTL(HDIO_GET_NICE, hdio_ioctl_trans) 2447HANDLE_IOCTL(HDIO_GET_NICE, hdio_ioctl_trans)
2448HANDLE_IOCTL(HDIO_GET_WCACHE, hdio_ioctl_trans)
2449HANDLE_IOCTL(HDIO_GET_ACOUSTIC, hdio_ioctl_trans)
2450HANDLE_IOCTL(HDIO_GET_ADDRESS, hdio_ioctl_trans)
2451HANDLE_IOCTL(HDIO_GET_BUSSTATE, hdio_ioctl_trans)
2448HANDLE_IOCTL(FDSETPRM32, fd_ioctl_trans) 2452HANDLE_IOCTL(FDSETPRM32, fd_ioctl_trans)
2449HANDLE_IOCTL(FDDEFPRM32, fd_ioctl_trans) 2453HANDLE_IOCTL(FDDEFPRM32, fd_ioctl_trans)
2450HANDLE_IOCTL(FDGETPRM32, fd_ioctl_trans) 2454HANDLE_IOCTL(FDGETPRM32, fd_ioctl_trans)
diff --git a/include/linux/compat_ioctl.h b/include/linux/compat_ioctl.h
index 4e1663d7691e..cfdb4f6a89d4 100644
--- a/include/linux/compat_ioctl.h
+++ b/include/linux/compat_ioctl.h
@@ -61,17 +61,23 @@ COMPATIBLE_IOCTL(FIGETBSZ)
61 * Some need translations, these do not. 61 * Some need translations, these do not.
62 */ 62 */
63COMPATIBLE_IOCTL(HDIO_GET_IDENTITY) 63COMPATIBLE_IOCTL(HDIO_GET_IDENTITY)
64COMPATIBLE_IOCTL(HDIO_SET_DMA)
65COMPATIBLE_IOCTL(HDIO_SET_UNMASKINTR)
66COMPATIBLE_IOCTL(HDIO_SET_NOWERR)
67COMPATIBLE_IOCTL(HDIO_SET_32BIT)
68COMPATIBLE_IOCTL(HDIO_SET_MULTCOUNT)
69COMPATIBLE_IOCTL(HDIO_DRIVE_CMD)
70COMPATIBLE_IOCTL(HDIO_DRIVE_TASK) 64COMPATIBLE_IOCTL(HDIO_DRIVE_TASK)
71COMPATIBLE_IOCTL(HDIO_SET_PIO_MODE) 65COMPATIBLE_IOCTL(HDIO_DRIVE_CMD)
72COMPATIBLE_IOCTL(HDIO_SET_NICE) 66ULONG_IOCTL(HDIO_SET_MULTCOUNT)
73COMPATIBLE_IOCTL(HDIO_SET_KEEPSETTINGS) 67ULONG_IOCTL(HDIO_SET_UNMASKINTR)
68ULONG_IOCTL(HDIO_SET_KEEPSETTINGS)
69ULONG_IOCTL(HDIO_SET_32BIT)
70ULONG_IOCTL(HDIO_SET_NOWERR)
71ULONG_IOCTL(HDIO_SET_DMA)
72ULONG_IOCTL(HDIO_SET_PIO_MODE)
73ULONG_IOCTL(HDIO_SET_NICE)
74ULONG_IOCTL(HDIO_SET_WCACHE)
75ULONG_IOCTL(HDIO_SET_ACOUSTIC)
76ULONG_IOCTL(HDIO_SET_BUSSTATE)
77ULONG_IOCTL(HDIO_SET_ADDRESS)
74COMPATIBLE_IOCTL(HDIO_SCAN_HWIF) 78COMPATIBLE_IOCTL(HDIO_SCAN_HWIF)
79/* 0x330 is reserved -- it used to be HDIO_GETGEO_BIG */
80COMPATIBLE_IOCTL(0x330)
75/* 0x02 -- Floppy ioctls */ 81/* 0x02 -- Floppy ioctls */
76COMPATIBLE_IOCTL(FDMSGON) 82COMPATIBLE_IOCTL(FDMSGON)
77COMPATIBLE_IOCTL(FDMSGOFF) 83COMPATIBLE_IOCTL(FDMSGOFF)