aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2007-10-09 07:23:52 -0400
committerJens Axboe <axboe@carl.home.kernel.dk>2007-10-10 03:26:00 -0400
commit7199d4cdd8485f802df3e1bc131245c69009b9a4 (patch)
treed4a0a46192724a2e5ce25beb80cc5de40dcb6c8a /fs
parentf58c4c0a17e500e767473598b3deafaa1d64051d (diff)
compat_ioctl: add compat_blkdev_driver_ioctl()
Handle those blockdev ioctl calls that are compatible directly from the compat_blkdev_ioctl() function, instead of having to go through the compat_ioctl hash lookup. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/compat_ioctl.c83
1 files changed, 0 insertions, 83 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index 6be121868c60..16d681c331f9 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -2477,47 +2477,8 @@ COMPATIBLE_IOCTL(FIONREAD) /* This is also TIOCINQ */
2477/* 0x00 */ 2477/* 0x00 */
2478COMPATIBLE_IOCTL(FIBMAP) 2478COMPATIBLE_IOCTL(FIBMAP)
2479COMPATIBLE_IOCTL(FIGETBSZ) 2479COMPATIBLE_IOCTL(FIGETBSZ)
2480/* 0x03 -- HD/IDE ioctl's used by hdparm and friends.
2481 * Some need translations, these do not.
2482 */
2483COMPATIBLE_IOCTL(HDIO_GET_IDENTITY)
2484COMPATIBLE_IOCTL(HDIO_DRIVE_TASK)
2485COMPATIBLE_IOCTL(HDIO_DRIVE_CMD)
2486ULONG_IOCTL(HDIO_SET_MULTCOUNT)
2487ULONG_IOCTL(HDIO_SET_UNMASKINTR)
2488ULONG_IOCTL(HDIO_SET_KEEPSETTINGS)
2489ULONG_IOCTL(HDIO_SET_32BIT)
2490ULONG_IOCTL(HDIO_SET_NOWERR)
2491ULONG_IOCTL(HDIO_SET_DMA)
2492ULONG_IOCTL(HDIO_SET_PIO_MODE)
2493ULONG_IOCTL(HDIO_SET_NICE)
2494ULONG_IOCTL(HDIO_SET_WCACHE)
2495ULONG_IOCTL(HDIO_SET_ACOUSTIC)
2496ULONG_IOCTL(HDIO_SET_BUSSTATE)
2497ULONG_IOCTL(HDIO_SET_ADDRESS)
2498COMPATIBLE_IOCTL(HDIO_SCAN_HWIF)
2499/* 0x330 is reserved -- it used to be HDIO_GETGEO_BIG */
2500COMPATIBLE_IOCTL(0x330)
2501/* 0x02 -- Floppy ioctls */
2502COMPATIBLE_IOCTL(FDMSGON)
2503COMPATIBLE_IOCTL(FDMSGOFF)
2504COMPATIBLE_IOCTL(FDSETEMSGTRESH)
2505COMPATIBLE_IOCTL(FDFLUSH)
2506COMPATIBLE_IOCTL(FDWERRORCLR)
2507COMPATIBLE_IOCTL(FDSETMAXERRS)
2508COMPATIBLE_IOCTL(FDGETMAXERRS)
2509COMPATIBLE_IOCTL(FDGETDRVTYP)
2510COMPATIBLE_IOCTL(FDEJECT)
2511COMPATIBLE_IOCTL(FDCLRPRM)
2512COMPATIBLE_IOCTL(FDFMTBEG)
2513COMPATIBLE_IOCTL(FDFMTEND)
2514COMPATIBLE_IOCTL(FDRESET)
2515COMPATIBLE_IOCTL(FDTWADDLE)
2516COMPATIBLE_IOCTL(FDFMTTRK)
2517COMPATIBLE_IOCTL(FDRAWCMD)
2518/* 0x12 */ 2480/* 0x12 */
2519#ifdef CONFIG_BLOCK 2481#ifdef CONFIG_BLOCK
2520COMPATIBLE_IOCTL(BLKSECTSET)
2521COMPATIBLE_IOCTL(BLKTRACESTART) 2482COMPATIBLE_IOCTL(BLKTRACESTART)
2522COMPATIBLE_IOCTL(BLKTRACESTOP) 2483COMPATIBLE_IOCTL(BLKTRACESTOP)
2523COMPATIBLE_IOCTL(BLKTRACESETUP) 2484COMPATIBLE_IOCTL(BLKTRACESETUP)
@@ -2770,50 +2731,6 @@ COMPATIBLE_IOCTL(PPGETMODE)
2770COMPATIBLE_IOCTL(PPGETPHASE) 2731COMPATIBLE_IOCTL(PPGETPHASE)
2771COMPATIBLE_IOCTL(PPGETFLAGS) 2732COMPATIBLE_IOCTL(PPGETFLAGS)
2772COMPATIBLE_IOCTL(PPSETFLAGS) 2733COMPATIBLE_IOCTL(PPSETFLAGS)
2773/* CDROM stuff */
2774COMPATIBLE_IOCTL(CDROMPAUSE)
2775COMPATIBLE_IOCTL(CDROMRESUME)
2776COMPATIBLE_IOCTL(CDROMPLAYMSF)
2777COMPATIBLE_IOCTL(CDROMPLAYTRKIND)
2778COMPATIBLE_IOCTL(CDROMREADTOCHDR)
2779COMPATIBLE_IOCTL(CDROMREADTOCENTRY)
2780COMPATIBLE_IOCTL(CDROMSTOP)
2781COMPATIBLE_IOCTL(CDROMSTART)
2782COMPATIBLE_IOCTL(CDROMEJECT)
2783COMPATIBLE_IOCTL(CDROMVOLCTRL)
2784COMPATIBLE_IOCTL(CDROMSUBCHNL)
2785ULONG_IOCTL(CDROMEJECT_SW)
2786COMPATIBLE_IOCTL(CDROMMULTISESSION)
2787COMPATIBLE_IOCTL(CDROM_GET_MCN)
2788COMPATIBLE_IOCTL(CDROMRESET)
2789COMPATIBLE_IOCTL(CDROMVOLREAD)
2790COMPATIBLE_IOCTL(CDROMSEEK)
2791COMPATIBLE_IOCTL(CDROMPLAYBLK)
2792COMPATIBLE_IOCTL(CDROMCLOSETRAY)
2793ULONG_IOCTL(CDROM_SET_OPTIONS)
2794ULONG_IOCTL(CDROM_CLEAR_OPTIONS)
2795ULONG_IOCTL(CDROM_SELECT_SPEED)
2796ULONG_IOCTL(CDROM_SELECT_DISC)
2797ULONG_IOCTL(CDROM_MEDIA_CHANGED)
2798ULONG_IOCTL(CDROM_DRIVE_STATUS)
2799COMPATIBLE_IOCTL(CDROM_DISC_STATUS)
2800COMPATIBLE_IOCTL(CDROM_CHANGER_NSLOTS)
2801ULONG_IOCTL(CDROM_LOCKDOOR)
2802ULONG_IOCTL(CDROM_DEBUG)
2803COMPATIBLE_IOCTL(CDROM_GET_CAPABILITY)
2804/* Ignore cdrom.h about these next 5 ioctls, they absolutely do
2805 * not take a struct cdrom_read, instead they take a struct cdrom_msf
2806 * which is compatible.
2807 */
2808COMPATIBLE_IOCTL(CDROMREADMODE2)
2809COMPATIBLE_IOCTL(CDROMREADMODE1)
2810COMPATIBLE_IOCTL(CDROMREADRAW)
2811COMPATIBLE_IOCTL(CDROMREADCOOKED)
2812COMPATIBLE_IOCTL(CDROMREADALL)
2813/* DVD ioctls */
2814COMPATIBLE_IOCTL(DVD_READ_STRUCT)
2815COMPATIBLE_IOCTL(DVD_WRITE_STRUCT)
2816COMPATIBLE_IOCTL(DVD_AUTH)
2817/* pktcdvd */ 2734/* pktcdvd */
2818COMPATIBLE_IOCTL(PACKET_CTRL_CMD) 2735COMPATIBLE_IOCTL(PACKET_CTRL_CMD)
2819/* Big A */ 2736/* Big A */