diff options
-rw-r--r-- | fs/compat_ioctl.c | 10 | ||||
-rw-r--r-- | include/linux/compat_ioctl.h | 24 |
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) | |||
2438 | HANDLE_IOCTL(BLKFRAGET, w_long) | 2438 | HANDLE_IOCTL(BLKFRAGET, w_long) |
2439 | HANDLE_IOCTL(BLKSECTGET, w_long) | 2439 | HANDLE_IOCTL(BLKSECTGET, w_long) |
2440 | HANDLE_IOCTL(BLKPG, blkpg_ioctl_trans) | 2440 | HANDLE_IOCTL(BLKPG, blkpg_ioctl_trans) |
2441 | HANDLE_IOCTL(HDIO_GET_KEEPSETTINGS, hdio_ioctl_trans) | ||
2442 | HANDLE_IOCTL(HDIO_GET_UNMASKINTR, hdio_ioctl_trans) | 2441 | HANDLE_IOCTL(HDIO_GET_UNMASKINTR, hdio_ioctl_trans) |
2443 | HANDLE_IOCTL(HDIO_GET_DMA, hdio_ioctl_trans) | ||
2444 | HANDLE_IOCTL(HDIO_GET_32BIT, hdio_ioctl_trans) | ||
2445 | HANDLE_IOCTL(HDIO_GET_MULTCOUNT, hdio_ioctl_trans) | 2442 | HANDLE_IOCTL(HDIO_GET_MULTCOUNT, hdio_ioctl_trans) |
2443 | HANDLE_IOCTL(HDIO_GET_KEEPSETTINGS, hdio_ioctl_trans) | ||
2444 | HANDLE_IOCTL(HDIO_GET_32BIT, hdio_ioctl_trans) | ||
2446 | HANDLE_IOCTL(HDIO_GET_NOWERR, hdio_ioctl_trans) | 2445 | HANDLE_IOCTL(HDIO_GET_NOWERR, hdio_ioctl_trans) |
2446 | HANDLE_IOCTL(HDIO_GET_DMA, hdio_ioctl_trans) | ||
2447 | HANDLE_IOCTL(HDIO_GET_NICE, hdio_ioctl_trans) | 2447 | HANDLE_IOCTL(HDIO_GET_NICE, hdio_ioctl_trans) |
2448 | HANDLE_IOCTL(HDIO_GET_WCACHE, hdio_ioctl_trans) | ||
2449 | HANDLE_IOCTL(HDIO_GET_ACOUSTIC, hdio_ioctl_trans) | ||
2450 | HANDLE_IOCTL(HDIO_GET_ADDRESS, hdio_ioctl_trans) | ||
2451 | HANDLE_IOCTL(HDIO_GET_BUSSTATE, hdio_ioctl_trans) | ||
2448 | HANDLE_IOCTL(FDSETPRM32, fd_ioctl_trans) | 2452 | HANDLE_IOCTL(FDSETPRM32, fd_ioctl_trans) |
2449 | HANDLE_IOCTL(FDDEFPRM32, fd_ioctl_trans) | 2453 | HANDLE_IOCTL(FDDEFPRM32, fd_ioctl_trans) |
2450 | HANDLE_IOCTL(FDGETPRM32, fd_ioctl_trans) | 2454 | HANDLE_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 | */ |
63 | COMPATIBLE_IOCTL(HDIO_GET_IDENTITY) | 63 | COMPATIBLE_IOCTL(HDIO_GET_IDENTITY) |
64 | COMPATIBLE_IOCTL(HDIO_SET_DMA) | ||
65 | COMPATIBLE_IOCTL(HDIO_SET_UNMASKINTR) | ||
66 | COMPATIBLE_IOCTL(HDIO_SET_NOWERR) | ||
67 | COMPATIBLE_IOCTL(HDIO_SET_32BIT) | ||
68 | COMPATIBLE_IOCTL(HDIO_SET_MULTCOUNT) | ||
69 | COMPATIBLE_IOCTL(HDIO_DRIVE_CMD) | ||
70 | COMPATIBLE_IOCTL(HDIO_DRIVE_TASK) | 64 | COMPATIBLE_IOCTL(HDIO_DRIVE_TASK) |
71 | COMPATIBLE_IOCTL(HDIO_SET_PIO_MODE) | 65 | COMPATIBLE_IOCTL(HDIO_DRIVE_CMD) |
72 | COMPATIBLE_IOCTL(HDIO_SET_NICE) | 66 | ULONG_IOCTL(HDIO_SET_MULTCOUNT) |
73 | COMPATIBLE_IOCTL(HDIO_SET_KEEPSETTINGS) | 67 | ULONG_IOCTL(HDIO_SET_UNMASKINTR) |
68 | ULONG_IOCTL(HDIO_SET_KEEPSETTINGS) | ||
69 | ULONG_IOCTL(HDIO_SET_32BIT) | ||
70 | ULONG_IOCTL(HDIO_SET_NOWERR) | ||
71 | ULONG_IOCTL(HDIO_SET_DMA) | ||
72 | ULONG_IOCTL(HDIO_SET_PIO_MODE) | ||
73 | ULONG_IOCTL(HDIO_SET_NICE) | ||
74 | ULONG_IOCTL(HDIO_SET_WCACHE) | ||
75 | ULONG_IOCTL(HDIO_SET_ACOUSTIC) | ||
76 | ULONG_IOCTL(HDIO_SET_BUSSTATE) | ||
77 | ULONG_IOCTL(HDIO_SET_ADDRESS) | ||
74 | COMPATIBLE_IOCTL(HDIO_SCAN_HWIF) | 78 | COMPATIBLE_IOCTL(HDIO_SCAN_HWIF) |
79 | /* 0x330 is reserved -- it used to be HDIO_GETGEO_BIG */ | ||
80 | COMPATIBLE_IOCTL(0x330) | ||
75 | /* 0x02 -- Floppy ioctls */ | 81 | /* 0x02 -- Floppy ioctls */ |
76 | COMPATIBLE_IOCTL(FDMSGON) | 82 | COMPATIBLE_IOCTL(FDMSGON) |
77 | COMPATIBLE_IOCTL(FDMSGOFF) | 83 | COMPATIBLE_IOCTL(FDMSGOFF) |