diff options
author | Christoph Hellwig <hch@lst.de> | 2007-05-08 03:29:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:09 -0400 |
commit | 644fd4f5de9ca147daeb6dc5f844b44ec3d58b47 (patch) | |
tree | d9bd9c9bc6c02077e5f2d19556377a30c31cd0c9 /fs/compat_ioctl.c | |
parent | 884f2810b15b6bb489c9dca5013aafbea2f19fba (diff) |
merge compat_ioctl.h into compat_ioctl.c
Now that there is no arch-specific compat ioctl handling left there is not
point in having a separate copat_ioctl.h, so merge it into compat_ioctl.c
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r-- | fs/compat_ioctl.c | 829 |
1 files changed, 828 insertions, 1 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index c870364b0b47..a0c3d2044e84 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
@@ -2405,7 +2405,834 @@ lp_timeout_trans(unsigned int fd, unsigned int cmd, unsigned long arg) | |||
2405 | #define IGNORE_IOCTL(cmd) COMPATIBLE_IOCTL(cmd) | 2405 | #define IGNORE_IOCTL(cmd) COMPATIBLE_IOCTL(cmd) |
2406 | 2406 | ||
2407 | struct ioctl_trans ioctl_start[] = { | 2407 | struct ioctl_trans ioctl_start[] = { |
2408 | #include <linux/compat_ioctl.h> | 2408 | /* compatible ioctls first */ |
2409 | COMPATIBLE_IOCTL(0x4B50) /* KDGHWCLK - not in the kernel, but don't complain */ | ||
2410 | COMPATIBLE_IOCTL(0x4B51) /* KDSHWCLK - not in the kernel, but don't complain */ | ||
2411 | |||
2412 | /* Big T */ | ||
2413 | COMPATIBLE_IOCTL(TCGETA) | ||
2414 | COMPATIBLE_IOCTL(TCSETA) | ||
2415 | COMPATIBLE_IOCTL(TCSETAW) | ||
2416 | COMPATIBLE_IOCTL(TCSETAF) | ||
2417 | COMPATIBLE_IOCTL(TCSBRK) | ||
2418 | ULONG_IOCTL(TCSBRKP) | ||
2419 | COMPATIBLE_IOCTL(TCXONC) | ||
2420 | COMPATIBLE_IOCTL(TCFLSH) | ||
2421 | COMPATIBLE_IOCTL(TCGETS) | ||
2422 | COMPATIBLE_IOCTL(TCSETS) | ||
2423 | COMPATIBLE_IOCTL(TCSETSW) | ||
2424 | COMPATIBLE_IOCTL(TCSETSF) | ||
2425 | COMPATIBLE_IOCTL(TIOCLINUX) | ||
2426 | COMPATIBLE_IOCTL(TIOCSBRK) | ||
2427 | COMPATIBLE_IOCTL(TIOCCBRK) | ||
2428 | ULONG_IOCTL(TIOCMIWAIT) | ||
2429 | COMPATIBLE_IOCTL(TIOCGICOUNT) | ||
2430 | /* Little t */ | ||
2431 | COMPATIBLE_IOCTL(TIOCGETD) | ||
2432 | COMPATIBLE_IOCTL(TIOCSETD) | ||
2433 | COMPATIBLE_IOCTL(TIOCEXCL) | ||
2434 | COMPATIBLE_IOCTL(TIOCNXCL) | ||
2435 | COMPATIBLE_IOCTL(TIOCCONS) | ||
2436 | COMPATIBLE_IOCTL(TIOCGSOFTCAR) | ||
2437 | COMPATIBLE_IOCTL(TIOCSSOFTCAR) | ||
2438 | COMPATIBLE_IOCTL(TIOCSWINSZ) | ||
2439 | COMPATIBLE_IOCTL(TIOCGWINSZ) | ||
2440 | COMPATIBLE_IOCTL(TIOCMGET) | ||
2441 | COMPATIBLE_IOCTL(TIOCMBIC) | ||
2442 | COMPATIBLE_IOCTL(TIOCMBIS) | ||
2443 | COMPATIBLE_IOCTL(TIOCMSET) | ||
2444 | COMPATIBLE_IOCTL(TIOCPKT) | ||
2445 | COMPATIBLE_IOCTL(TIOCNOTTY) | ||
2446 | COMPATIBLE_IOCTL(TIOCSTI) | ||
2447 | COMPATIBLE_IOCTL(TIOCOUTQ) | ||
2448 | COMPATIBLE_IOCTL(TIOCSPGRP) | ||
2449 | COMPATIBLE_IOCTL(TIOCGPGRP) | ||
2450 | ULONG_IOCTL(TIOCSCTTY) | ||
2451 | COMPATIBLE_IOCTL(TIOCGPTN) | ||
2452 | COMPATIBLE_IOCTL(TIOCSPTLCK) | ||
2453 | COMPATIBLE_IOCTL(TIOCSERGETLSR) | ||
2454 | /* Little f */ | ||
2455 | COMPATIBLE_IOCTL(FIOCLEX) | ||
2456 | COMPATIBLE_IOCTL(FIONCLEX) | ||
2457 | COMPATIBLE_IOCTL(FIOASYNC) | ||
2458 | COMPATIBLE_IOCTL(FIONBIO) | ||
2459 | COMPATIBLE_IOCTL(FIONREAD) /* This is also TIOCINQ */ | ||
2460 | /* 0x00 */ | ||
2461 | COMPATIBLE_IOCTL(FIBMAP) | ||
2462 | COMPATIBLE_IOCTL(FIGETBSZ) | ||
2463 | /* 0x03 -- HD/IDE ioctl's used by hdparm and friends. | ||
2464 | * Some need translations, these do not. | ||
2465 | */ | ||
2466 | COMPATIBLE_IOCTL(HDIO_GET_IDENTITY) | ||
2467 | COMPATIBLE_IOCTL(HDIO_DRIVE_TASK) | ||
2468 | COMPATIBLE_IOCTL(HDIO_DRIVE_CMD) | ||
2469 | ULONG_IOCTL(HDIO_SET_MULTCOUNT) | ||
2470 | ULONG_IOCTL(HDIO_SET_UNMASKINTR) | ||
2471 | ULONG_IOCTL(HDIO_SET_KEEPSETTINGS) | ||
2472 | ULONG_IOCTL(HDIO_SET_32BIT) | ||
2473 | ULONG_IOCTL(HDIO_SET_NOWERR) | ||
2474 | ULONG_IOCTL(HDIO_SET_DMA) | ||
2475 | ULONG_IOCTL(HDIO_SET_PIO_MODE) | ||
2476 | ULONG_IOCTL(HDIO_SET_NICE) | ||
2477 | ULONG_IOCTL(HDIO_SET_WCACHE) | ||
2478 | ULONG_IOCTL(HDIO_SET_ACOUSTIC) | ||
2479 | ULONG_IOCTL(HDIO_SET_BUSSTATE) | ||
2480 | ULONG_IOCTL(HDIO_SET_ADDRESS) | ||
2481 | COMPATIBLE_IOCTL(HDIO_SCAN_HWIF) | ||
2482 | /* 0x330 is reserved -- it used to be HDIO_GETGEO_BIG */ | ||
2483 | COMPATIBLE_IOCTL(0x330) | ||
2484 | /* 0x02 -- Floppy ioctls */ | ||
2485 | COMPATIBLE_IOCTL(FDMSGON) | ||
2486 | COMPATIBLE_IOCTL(FDMSGOFF) | ||
2487 | COMPATIBLE_IOCTL(FDSETEMSGTRESH) | ||
2488 | COMPATIBLE_IOCTL(FDFLUSH) | ||
2489 | COMPATIBLE_IOCTL(FDWERRORCLR) | ||
2490 | COMPATIBLE_IOCTL(FDSETMAXERRS) | ||
2491 | COMPATIBLE_IOCTL(FDGETMAXERRS) | ||
2492 | COMPATIBLE_IOCTL(FDGETDRVTYP) | ||
2493 | COMPATIBLE_IOCTL(FDEJECT) | ||
2494 | COMPATIBLE_IOCTL(FDCLRPRM) | ||
2495 | COMPATIBLE_IOCTL(FDFMTBEG) | ||
2496 | COMPATIBLE_IOCTL(FDFMTEND) | ||
2497 | COMPATIBLE_IOCTL(FDRESET) | ||
2498 | COMPATIBLE_IOCTL(FDTWADDLE) | ||
2499 | COMPATIBLE_IOCTL(FDFMTTRK) | ||
2500 | COMPATIBLE_IOCTL(FDRAWCMD) | ||
2501 | /* 0x12 */ | ||
2502 | #ifdef CONFIG_BLOCK | ||
2503 | COMPATIBLE_IOCTL(BLKRASET) | ||
2504 | COMPATIBLE_IOCTL(BLKROSET) | ||
2505 | COMPATIBLE_IOCTL(BLKROGET) | ||
2506 | COMPATIBLE_IOCTL(BLKRRPART) | ||
2507 | COMPATIBLE_IOCTL(BLKFLSBUF) | ||
2508 | COMPATIBLE_IOCTL(BLKSECTSET) | ||
2509 | COMPATIBLE_IOCTL(BLKSSZGET) | ||
2510 | COMPATIBLE_IOCTL(BLKTRACESTART) | ||
2511 | COMPATIBLE_IOCTL(BLKTRACESTOP) | ||
2512 | COMPATIBLE_IOCTL(BLKTRACESETUP) | ||
2513 | COMPATIBLE_IOCTL(BLKTRACETEARDOWN) | ||
2514 | ULONG_IOCTL(BLKRASET) | ||
2515 | ULONG_IOCTL(BLKFRASET) | ||
2516 | #endif | ||
2517 | /* RAID */ | ||
2518 | COMPATIBLE_IOCTL(RAID_VERSION) | ||
2519 | COMPATIBLE_IOCTL(GET_ARRAY_INFO) | ||
2520 | COMPATIBLE_IOCTL(GET_DISK_INFO) | ||
2521 | COMPATIBLE_IOCTL(PRINT_RAID_DEBUG) | ||
2522 | COMPATIBLE_IOCTL(RAID_AUTORUN) | ||
2523 | COMPATIBLE_IOCTL(CLEAR_ARRAY) | ||
2524 | COMPATIBLE_IOCTL(ADD_NEW_DISK) | ||
2525 | ULONG_IOCTL(HOT_REMOVE_DISK) | ||
2526 | COMPATIBLE_IOCTL(SET_ARRAY_INFO) | ||
2527 | COMPATIBLE_IOCTL(SET_DISK_INFO) | ||
2528 | COMPATIBLE_IOCTL(WRITE_RAID_INFO) | ||
2529 | COMPATIBLE_IOCTL(UNPROTECT_ARRAY) | ||
2530 | COMPATIBLE_IOCTL(PROTECT_ARRAY) | ||
2531 | ULONG_IOCTL(HOT_ADD_DISK) | ||
2532 | ULONG_IOCTL(SET_DISK_FAULTY) | ||
2533 | COMPATIBLE_IOCTL(RUN_ARRAY) | ||
2534 | COMPATIBLE_IOCTL(STOP_ARRAY) | ||
2535 | COMPATIBLE_IOCTL(STOP_ARRAY_RO) | ||
2536 | COMPATIBLE_IOCTL(RESTART_ARRAY_RW) | ||
2537 | COMPATIBLE_IOCTL(GET_BITMAP_FILE) | ||
2538 | ULONG_IOCTL(SET_BITMAP_FILE) | ||
2539 | /* DM */ | ||
2540 | COMPATIBLE_IOCTL(DM_VERSION_32) | ||
2541 | COMPATIBLE_IOCTL(DM_REMOVE_ALL_32) | ||
2542 | COMPATIBLE_IOCTL(DM_LIST_DEVICES_32) | ||
2543 | COMPATIBLE_IOCTL(DM_DEV_CREATE_32) | ||
2544 | COMPATIBLE_IOCTL(DM_DEV_REMOVE_32) | ||
2545 | COMPATIBLE_IOCTL(DM_DEV_RENAME_32) | ||
2546 | COMPATIBLE_IOCTL(DM_DEV_SUSPEND_32) | ||
2547 | COMPATIBLE_IOCTL(DM_DEV_STATUS_32) | ||
2548 | COMPATIBLE_IOCTL(DM_DEV_WAIT_32) | ||
2549 | COMPATIBLE_IOCTL(DM_TABLE_LOAD_32) | ||
2550 | COMPATIBLE_IOCTL(DM_TABLE_CLEAR_32) | ||
2551 | COMPATIBLE_IOCTL(DM_TABLE_DEPS_32) | ||
2552 | COMPATIBLE_IOCTL(DM_TABLE_STATUS_32) | ||
2553 | COMPATIBLE_IOCTL(DM_LIST_VERSIONS_32) | ||
2554 | COMPATIBLE_IOCTL(DM_TARGET_MSG_32) | ||
2555 | COMPATIBLE_IOCTL(DM_DEV_SET_GEOMETRY_32) | ||
2556 | COMPATIBLE_IOCTL(DM_VERSION) | ||
2557 | COMPATIBLE_IOCTL(DM_REMOVE_ALL) | ||
2558 | COMPATIBLE_IOCTL(DM_LIST_DEVICES) | ||
2559 | COMPATIBLE_IOCTL(DM_DEV_CREATE) | ||
2560 | COMPATIBLE_IOCTL(DM_DEV_REMOVE) | ||
2561 | COMPATIBLE_IOCTL(DM_DEV_RENAME) | ||
2562 | COMPATIBLE_IOCTL(DM_DEV_SUSPEND) | ||
2563 | COMPATIBLE_IOCTL(DM_DEV_STATUS) | ||
2564 | COMPATIBLE_IOCTL(DM_DEV_WAIT) | ||
2565 | COMPATIBLE_IOCTL(DM_TABLE_LOAD) | ||
2566 | COMPATIBLE_IOCTL(DM_TABLE_CLEAR) | ||
2567 | COMPATIBLE_IOCTL(DM_TABLE_DEPS) | ||
2568 | COMPATIBLE_IOCTL(DM_TABLE_STATUS) | ||
2569 | COMPATIBLE_IOCTL(DM_LIST_VERSIONS) | ||
2570 | COMPATIBLE_IOCTL(DM_TARGET_MSG) | ||
2571 | COMPATIBLE_IOCTL(DM_DEV_SET_GEOMETRY) | ||
2572 | /* Big K */ | ||
2573 | COMPATIBLE_IOCTL(PIO_FONT) | ||
2574 | COMPATIBLE_IOCTL(GIO_FONT) | ||
2575 | ULONG_IOCTL(KDSIGACCEPT) | ||
2576 | COMPATIBLE_IOCTL(KDGETKEYCODE) | ||
2577 | COMPATIBLE_IOCTL(KDSETKEYCODE) | ||
2578 | ULONG_IOCTL(KIOCSOUND) | ||
2579 | ULONG_IOCTL(KDMKTONE) | ||
2580 | COMPATIBLE_IOCTL(KDGKBTYPE) | ||
2581 | ULONG_IOCTL(KDSETMODE) | ||
2582 | COMPATIBLE_IOCTL(KDGETMODE) | ||
2583 | ULONG_IOCTL(KDSKBMODE) | ||
2584 | COMPATIBLE_IOCTL(KDGKBMODE) | ||
2585 | ULONG_IOCTL(KDSKBMETA) | ||
2586 | COMPATIBLE_IOCTL(KDGKBMETA) | ||
2587 | COMPATIBLE_IOCTL(KDGKBENT) | ||
2588 | COMPATIBLE_IOCTL(KDSKBENT) | ||
2589 | COMPATIBLE_IOCTL(KDGKBSENT) | ||
2590 | COMPATIBLE_IOCTL(KDSKBSENT) | ||
2591 | COMPATIBLE_IOCTL(KDGKBDIACR) | ||
2592 | COMPATIBLE_IOCTL(KDSKBDIACR) | ||
2593 | COMPATIBLE_IOCTL(KDKBDREP) | ||
2594 | COMPATIBLE_IOCTL(KDGKBLED) | ||
2595 | ULONG_IOCTL(KDSKBLED) | ||
2596 | COMPATIBLE_IOCTL(KDGETLED) | ||
2597 | ULONG_IOCTL(KDSETLED) | ||
2598 | COMPATIBLE_IOCTL(GIO_SCRNMAP) | ||
2599 | COMPATIBLE_IOCTL(PIO_SCRNMAP) | ||
2600 | COMPATIBLE_IOCTL(GIO_UNISCRNMAP) | ||
2601 | COMPATIBLE_IOCTL(PIO_UNISCRNMAP) | ||
2602 | COMPATIBLE_IOCTL(PIO_FONTRESET) | ||
2603 | COMPATIBLE_IOCTL(PIO_UNIMAPCLR) | ||
2604 | /* Big S */ | ||
2605 | COMPATIBLE_IOCTL(SCSI_IOCTL_GET_IDLUN) | ||
2606 | COMPATIBLE_IOCTL(SCSI_IOCTL_DOORLOCK) | ||
2607 | COMPATIBLE_IOCTL(SCSI_IOCTL_DOORUNLOCK) | ||
2608 | COMPATIBLE_IOCTL(SCSI_IOCTL_TEST_UNIT_READY) | ||
2609 | COMPATIBLE_IOCTL(SCSI_IOCTL_GET_BUS_NUMBER) | ||
2610 | COMPATIBLE_IOCTL(SCSI_IOCTL_SEND_COMMAND) | ||
2611 | COMPATIBLE_IOCTL(SCSI_IOCTL_PROBE_HOST) | ||
2612 | COMPATIBLE_IOCTL(SCSI_IOCTL_GET_PCI) | ||
2613 | /* Big T */ | ||
2614 | COMPATIBLE_IOCTL(TUNSETNOCSUM) | ||
2615 | COMPATIBLE_IOCTL(TUNSETDEBUG) | ||
2616 | COMPATIBLE_IOCTL(TUNSETPERSIST) | ||
2617 | COMPATIBLE_IOCTL(TUNSETOWNER) | ||
2618 | /* Big V */ | ||
2619 | COMPATIBLE_IOCTL(VT_SETMODE) | ||
2620 | COMPATIBLE_IOCTL(VT_GETMODE) | ||
2621 | COMPATIBLE_IOCTL(VT_GETSTATE) | ||
2622 | COMPATIBLE_IOCTL(VT_OPENQRY) | ||
2623 | ULONG_IOCTL(VT_ACTIVATE) | ||
2624 | ULONG_IOCTL(VT_WAITACTIVE) | ||
2625 | ULONG_IOCTL(VT_RELDISP) | ||
2626 | ULONG_IOCTL(VT_DISALLOCATE) | ||
2627 | COMPATIBLE_IOCTL(VT_RESIZE) | ||
2628 | COMPATIBLE_IOCTL(VT_RESIZEX) | ||
2629 | COMPATIBLE_IOCTL(VT_LOCKSWITCH) | ||
2630 | COMPATIBLE_IOCTL(VT_UNLOCKSWITCH) | ||
2631 | COMPATIBLE_IOCTL(VT_GETHIFONTMASK) | ||
2632 | /* Little p (/dev/rtc, /dev/envctrl, etc.) */ | ||
2633 | COMPATIBLE_IOCTL(RTC_AIE_ON) | ||
2634 | COMPATIBLE_IOCTL(RTC_AIE_OFF) | ||
2635 | COMPATIBLE_IOCTL(RTC_UIE_ON) | ||
2636 | COMPATIBLE_IOCTL(RTC_UIE_OFF) | ||
2637 | COMPATIBLE_IOCTL(RTC_PIE_ON) | ||
2638 | COMPATIBLE_IOCTL(RTC_PIE_OFF) | ||
2639 | COMPATIBLE_IOCTL(RTC_WIE_ON) | ||
2640 | COMPATIBLE_IOCTL(RTC_WIE_OFF) | ||
2641 | COMPATIBLE_IOCTL(RTC_ALM_SET) | ||
2642 | COMPATIBLE_IOCTL(RTC_ALM_READ) | ||
2643 | COMPATIBLE_IOCTL(RTC_RD_TIME) | ||
2644 | COMPATIBLE_IOCTL(RTC_SET_TIME) | ||
2645 | COMPATIBLE_IOCTL(RTC_WKALM_SET) | ||
2646 | COMPATIBLE_IOCTL(RTC_WKALM_RD) | ||
2647 | /* | ||
2648 | * These two are only for the sbus rtc driver, but | ||
2649 | * hwclock tries them on every rtc device first when | ||
2650 | * running on sparc. On other architectures the entries | ||
2651 | * are useless but harmless. | ||
2652 | */ | ||
2653 | COMPATIBLE_IOCTL(_IOR('p', 20, int[7])) /* RTCGET */ | ||
2654 | COMPATIBLE_IOCTL(_IOW('p', 21, int[7])) /* RTCSET */ | ||
2655 | /* Little m */ | ||
2656 | COMPATIBLE_IOCTL(MTIOCTOP) | ||
2657 | /* Socket level stuff */ | ||
2658 | COMPATIBLE_IOCTL(FIOQSIZE) | ||
2659 | COMPATIBLE_IOCTL(FIOSETOWN) | ||
2660 | COMPATIBLE_IOCTL(SIOCSPGRP) | ||
2661 | COMPATIBLE_IOCTL(FIOGETOWN) | ||
2662 | COMPATIBLE_IOCTL(SIOCGPGRP) | ||
2663 | COMPATIBLE_IOCTL(SIOCATMARK) | ||
2664 | COMPATIBLE_IOCTL(SIOCSIFLINK) | ||
2665 | COMPATIBLE_IOCTL(SIOCSIFENCAP) | ||
2666 | COMPATIBLE_IOCTL(SIOCGIFENCAP) | ||
2667 | COMPATIBLE_IOCTL(SIOCSIFNAME) | ||
2668 | COMPATIBLE_IOCTL(SIOCSARP) | ||
2669 | COMPATIBLE_IOCTL(SIOCGARP) | ||
2670 | COMPATIBLE_IOCTL(SIOCDARP) | ||
2671 | COMPATIBLE_IOCTL(SIOCSRARP) | ||
2672 | COMPATIBLE_IOCTL(SIOCGRARP) | ||
2673 | COMPATIBLE_IOCTL(SIOCDRARP) | ||
2674 | COMPATIBLE_IOCTL(SIOCADDDLCI) | ||
2675 | COMPATIBLE_IOCTL(SIOCDELDLCI) | ||
2676 | COMPATIBLE_IOCTL(SIOCGMIIPHY) | ||
2677 | COMPATIBLE_IOCTL(SIOCGMIIREG) | ||
2678 | COMPATIBLE_IOCTL(SIOCSMIIREG) | ||
2679 | COMPATIBLE_IOCTL(SIOCGIFVLAN) | ||
2680 | COMPATIBLE_IOCTL(SIOCSIFVLAN) | ||
2681 | COMPATIBLE_IOCTL(SIOCBRADDBR) | ||
2682 | COMPATIBLE_IOCTL(SIOCBRDELBR) | ||
2683 | /* SG stuff */ | ||
2684 | COMPATIBLE_IOCTL(SG_SET_TIMEOUT) | ||
2685 | COMPATIBLE_IOCTL(SG_GET_TIMEOUT) | ||
2686 | COMPATIBLE_IOCTL(SG_EMULATED_HOST) | ||
2687 | ULONG_IOCTL(SG_SET_TRANSFORM) | ||
2688 | COMPATIBLE_IOCTL(SG_GET_TRANSFORM) | ||
2689 | COMPATIBLE_IOCTL(SG_SET_RESERVED_SIZE) | ||
2690 | COMPATIBLE_IOCTL(SG_GET_RESERVED_SIZE) | ||
2691 | COMPATIBLE_IOCTL(SG_GET_SCSI_ID) | ||
2692 | COMPATIBLE_IOCTL(SG_SET_FORCE_LOW_DMA) | ||
2693 | COMPATIBLE_IOCTL(SG_GET_LOW_DMA) | ||
2694 | COMPATIBLE_IOCTL(SG_SET_FORCE_PACK_ID) | ||
2695 | COMPATIBLE_IOCTL(SG_GET_PACK_ID) | ||
2696 | COMPATIBLE_IOCTL(SG_GET_NUM_WAITING) | ||
2697 | COMPATIBLE_IOCTL(SG_SET_DEBUG) | ||
2698 | COMPATIBLE_IOCTL(SG_GET_SG_TABLESIZE) | ||
2699 | COMPATIBLE_IOCTL(SG_GET_COMMAND_Q) | ||
2700 | COMPATIBLE_IOCTL(SG_SET_COMMAND_Q) | ||
2701 | COMPATIBLE_IOCTL(SG_GET_VERSION_NUM) | ||
2702 | COMPATIBLE_IOCTL(SG_NEXT_CMD_LEN) | ||
2703 | COMPATIBLE_IOCTL(SG_SCSI_RESET) | ||
2704 | COMPATIBLE_IOCTL(SG_GET_REQUEST_TABLE) | ||
2705 | COMPATIBLE_IOCTL(SG_SET_KEEP_ORPHAN) | ||
2706 | COMPATIBLE_IOCTL(SG_GET_KEEP_ORPHAN) | ||
2707 | /* PPP stuff */ | ||
2708 | COMPATIBLE_IOCTL(PPPIOCGFLAGS) | ||
2709 | COMPATIBLE_IOCTL(PPPIOCSFLAGS) | ||
2710 | COMPATIBLE_IOCTL(PPPIOCGASYNCMAP) | ||
2711 | COMPATIBLE_IOCTL(PPPIOCSASYNCMAP) | ||
2712 | COMPATIBLE_IOCTL(PPPIOCGUNIT) | ||
2713 | COMPATIBLE_IOCTL(PPPIOCGRASYNCMAP) | ||
2714 | COMPATIBLE_IOCTL(PPPIOCSRASYNCMAP) | ||
2715 | COMPATIBLE_IOCTL(PPPIOCGMRU) | ||
2716 | COMPATIBLE_IOCTL(PPPIOCSMRU) | ||
2717 | COMPATIBLE_IOCTL(PPPIOCSMAXCID) | ||
2718 | COMPATIBLE_IOCTL(PPPIOCGXASYNCMAP) | ||
2719 | COMPATIBLE_IOCTL(PPPIOCSXASYNCMAP) | ||
2720 | COMPATIBLE_IOCTL(PPPIOCXFERUNIT) | ||
2721 | /* PPPIOCSCOMPRESS is translated */ | ||
2722 | COMPATIBLE_IOCTL(PPPIOCGNPMODE) | ||
2723 | COMPATIBLE_IOCTL(PPPIOCSNPMODE) | ||
2724 | COMPATIBLE_IOCTL(PPPIOCGDEBUG) | ||
2725 | COMPATIBLE_IOCTL(PPPIOCSDEBUG) | ||
2726 | /* PPPIOCSPASS is translated */ | ||
2727 | /* PPPIOCSACTIVE is translated */ | ||
2728 | /* PPPIOCGIDLE is translated */ | ||
2729 | COMPATIBLE_IOCTL(PPPIOCNEWUNIT) | ||
2730 | COMPATIBLE_IOCTL(PPPIOCATTACH) | ||
2731 | COMPATIBLE_IOCTL(PPPIOCDETACH) | ||
2732 | COMPATIBLE_IOCTL(PPPIOCSMRRU) | ||
2733 | COMPATIBLE_IOCTL(PPPIOCCONNECT) | ||
2734 | COMPATIBLE_IOCTL(PPPIOCDISCONN) | ||
2735 | COMPATIBLE_IOCTL(PPPIOCATTCHAN) | ||
2736 | COMPATIBLE_IOCTL(PPPIOCGCHAN) | ||
2737 | /* PPPOX */ | ||
2738 | COMPATIBLE_IOCTL(PPPOEIOCSFWD) | ||
2739 | COMPATIBLE_IOCTL(PPPOEIOCDFWD) | ||
2740 | /* LP */ | ||
2741 | COMPATIBLE_IOCTL(LPGETSTATUS) | ||
2742 | /* ppdev */ | ||
2743 | COMPATIBLE_IOCTL(PPSETMODE) | ||
2744 | COMPATIBLE_IOCTL(PPRSTATUS) | ||
2745 | COMPATIBLE_IOCTL(PPRCONTROL) | ||
2746 | COMPATIBLE_IOCTL(PPWCONTROL) | ||
2747 | COMPATIBLE_IOCTL(PPFCONTROL) | ||
2748 | COMPATIBLE_IOCTL(PPRDATA) | ||
2749 | COMPATIBLE_IOCTL(PPWDATA) | ||
2750 | COMPATIBLE_IOCTL(PPCLAIM) | ||
2751 | COMPATIBLE_IOCTL(PPRELEASE) | ||
2752 | COMPATIBLE_IOCTL(PPYIELD) | ||
2753 | COMPATIBLE_IOCTL(PPEXCL) | ||
2754 | COMPATIBLE_IOCTL(PPDATADIR) | ||
2755 | COMPATIBLE_IOCTL(PPNEGOT) | ||
2756 | COMPATIBLE_IOCTL(PPWCTLONIRQ) | ||
2757 | COMPATIBLE_IOCTL(PPCLRIRQ) | ||
2758 | COMPATIBLE_IOCTL(PPSETPHASE) | ||
2759 | COMPATIBLE_IOCTL(PPGETMODES) | ||
2760 | COMPATIBLE_IOCTL(PPGETMODE) | ||
2761 | COMPATIBLE_IOCTL(PPGETPHASE) | ||
2762 | COMPATIBLE_IOCTL(PPGETFLAGS) | ||
2763 | COMPATIBLE_IOCTL(PPSETFLAGS) | ||
2764 | /* CDROM stuff */ | ||
2765 | COMPATIBLE_IOCTL(CDROMPAUSE) | ||
2766 | COMPATIBLE_IOCTL(CDROMRESUME) | ||
2767 | COMPATIBLE_IOCTL(CDROMPLAYMSF) | ||
2768 | COMPATIBLE_IOCTL(CDROMPLAYTRKIND) | ||
2769 | COMPATIBLE_IOCTL(CDROMREADTOCHDR) | ||
2770 | COMPATIBLE_IOCTL(CDROMREADTOCENTRY) | ||
2771 | COMPATIBLE_IOCTL(CDROMSTOP) | ||
2772 | COMPATIBLE_IOCTL(CDROMSTART) | ||
2773 | COMPATIBLE_IOCTL(CDROMEJECT) | ||
2774 | COMPATIBLE_IOCTL(CDROMVOLCTRL) | ||
2775 | COMPATIBLE_IOCTL(CDROMSUBCHNL) | ||
2776 | ULONG_IOCTL(CDROMEJECT_SW) | ||
2777 | COMPATIBLE_IOCTL(CDROMMULTISESSION) | ||
2778 | COMPATIBLE_IOCTL(CDROM_GET_MCN) | ||
2779 | COMPATIBLE_IOCTL(CDROMRESET) | ||
2780 | COMPATIBLE_IOCTL(CDROMVOLREAD) | ||
2781 | COMPATIBLE_IOCTL(CDROMSEEK) | ||
2782 | COMPATIBLE_IOCTL(CDROMPLAYBLK) | ||
2783 | COMPATIBLE_IOCTL(CDROMCLOSETRAY) | ||
2784 | ULONG_IOCTL(CDROM_SET_OPTIONS) | ||
2785 | ULONG_IOCTL(CDROM_CLEAR_OPTIONS) | ||
2786 | ULONG_IOCTL(CDROM_SELECT_SPEED) | ||
2787 | ULONG_IOCTL(CDROM_SELECT_DISC) | ||
2788 | ULONG_IOCTL(CDROM_MEDIA_CHANGED) | ||
2789 | ULONG_IOCTL(CDROM_DRIVE_STATUS) | ||
2790 | COMPATIBLE_IOCTL(CDROM_DISC_STATUS) | ||
2791 | COMPATIBLE_IOCTL(CDROM_CHANGER_NSLOTS) | ||
2792 | ULONG_IOCTL(CDROM_LOCKDOOR) | ||
2793 | ULONG_IOCTL(CDROM_DEBUG) | ||
2794 | COMPATIBLE_IOCTL(CDROM_GET_CAPABILITY) | ||
2795 | /* Ignore cdrom.h about these next 5 ioctls, they absolutely do | ||
2796 | * not take a struct cdrom_read, instead they take a struct cdrom_msf | ||
2797 | * which is compatible. | ||
2798 | */ | ||
2799 | COMPATIBLE_IOCTL(CDROMREADMODE2) | ||
2800 | COMPATIBLE_IOCTL(CDROMREADMODE1) | ||
2801 | COMPATIBLE_IOCTL(CDROMREADRAW) | ||
2802 | COMPATIBLE_IOCTL(CDROMREADCOOKED) | ||
2803 | COMPATIBLE_IOCTL(CDROMREADALL) | ||
2804 | /* DVD ioctls */ | ||
2805 | COMPATIBLE_IOCTL(DVD_READ_STRUCT) | ||
2806 | COMPATIBLE_IOCTL(DVD_WRITE_STRUCT) | ||
2807 | COMPATIBLE_IOCTL(DVD_AUTH) | ||
2808 | /* pktcdvd */ | ||
2809 | COMPATIBLE_IOCTL(PACKET_CTRL_CMD) | ||
2810 | /* Big A */ | ||
2811 | /* sparc only */ | ||
2812 | /* Big Q for sound/OSS */ | ||
2813 | COMPATIBLE_IOCTL(SNDCTL_SEQ_RESET) | ||
2814 | COMPATIBLE_IOCTL(SNDCTL_SEQ_SYNC) | ||
2815 | COMPATIBLE_IOCTL(SNDCTL_SYNTH_INFO) | ||
2816 | COMPATIBLE_IOCTL(SNDCTL_SEQ_CTRLRATE) | ||
2817 | COMPATIBLE_IOCTL(SNDCTL_SEQ_GETOUTCOUNT) | ||
2818 | COMPATIBLE_IOCTL(SNDCTL_SEQ_GETINCOUNT) | ||
2819 | COMPATIBLE_IOCTL(SNDCTL_SEQ_PERCMODE) | ||
2820 | COMPATIBLE_IOCTL(SNDCTL_FM_LOAD_INSTR) | ||
2821 | COMPATIBLE_IOCTL(SNDCTL_SEQ_TESTMIDI) | ||
2822 | COMPATIBLE_IOCTL(SNDCTL_SEQ_RESETSAMPLES) | ||
2823 | COMPATIBLE_IOCTL(SNDCTL_SEQ_NRSYNTHS) | ||
2824 | COMPATIBLE_IOCTL(SNDCTL_SEQ_NRMIDIS) | ||
2825 | COMPATIBLE_IOCTL(SNDCTL_MIDI_INFO) | ||
2826 | COMPATIBLE_IOCTL(SNDCTL_SEQ_THRESHOLD) | ||
2827 | COMPATIBLE_IOCTL(SNDCTL_SYNTH_MEMAVL) | ||
2828 | COMPATIBLE_IOCTL(SNDCTL_FM_4OP_ENABLE) | ||
2829 | COMPATIBLE_IOCTL(SNDCTL_SEQ_PANIC) | ||
2830 | COMPATIBLE_IOCTL(SNDCTL_SEQ_OUTOFBAND) | ||
2831 | COMPATIBLE_IOCTL(SNDCTL_SEQ_GETTIME) | ||
2832 | COMPATIBLE_IOCTL(SNDCTL_SYNTH_ID) | ||
2833 | COMPATIBLE_IOCTL(SNDCTL_SYNTH_CONTROL) | ||
2834 | COMPATIBLE_IOCTL(SNDCTL_SYNTH_REMOVESAMPLE) | ||
2835 | /* Big T for sound/OSS */ | ||
2836 | COMPATIBLE_IOCTL(SNDCTL_TMR_TIMEBASE) | ||
2837 | COMPATIBLE_IOCTL(SNDCTL_TMR_START) | ||
2838 | COMPATIBLE_IOCTL(SNDCTL_TMR_STOP) | ||
2839 | COMPATIBLE_IOCTL(SNDCTL_TMR_CONTINUE) | ||
2840 | COMPATIBLE_IOCTL(SNDCTL_TMR_TEMPO) | ||
2841 | COMPATIBLE_IOCTL(SNDCTL_TMR_SOURCE) | ||
2842 | COMPATIBLE_IOCTL(SNDCTL_TMR_METRONOME) | ||
2843 | COMPATIBLE_IOCTL(SNDCTL_TMR_SELECT) | ||
2844 | /* Little m for sound/OSS */ | ||
2845 | COMPATIBLE_IOCTL(SNDCTL_MIDI_PRETIME) | ||
2846 | COMPATIBLE_IOCTL(SNDCTL_MIDI_MPUMODE) | ||
2847 | COMPATIBLE_IOCTL(SNDCTL_MIDI_MPUCMD) | ||
2848 | /* Big P for sound/OSS */ | ||
2849 | COMPATIBLE_IOCTL(SNDCTL_DSP_RESET) | ||
2850 | COMPATIBLE_IOCTL(SNDCTL_DSP_SYNC) | ||
2851 | COMPATIBLE_IOCTL(SNDCTL_DSP_SPEED) | ||
2852 | COMPATIBLE_IOCTL(SNDCTL_DSP_STEREO) | ||
2853 | COMPATIBLE_IOCTL(SNDCTL_DSP_GETBLKSIZE) | ||
2854 | COMPATIBLE_IOCTL(SNDCTL_DSP_CHANNELS) | ||
2855 | COMPATIBLE_IOCTL(SOUND_PCM_WRITE_FILTER) | ||
2856 | COMPATIBLE_IOCTL(SNDCTL_DSP_POST) | ||
2857 | COMPATIBLE_IOCTL(SNDCTL_DSP_SUBDIVIDE) | ||
2858 | COMPATIBLE_IOCTL(SNDCTL_DSP_SETFRAGMENT) | ||
2859 | COMPATIBLE_IOCTL(SNDCTL_DSP_GETFMTS) | ||
2860 | COMPATIBLE_IOCTL(SNDCTL_DSP_SETFMT) | ||
2861 | COMPATIBLE_IOCTL(SNDCTL_DSP_GETOSPACE) | ||
2862 | COMPATIBLE_IOCTL(SNDCTL_DSP_GETISPACE) | ||
2863 | COMPATIBLE_IOCTL(SNDCTL_DSP_NONBLOCK) | ||
2864 | COMPATIBLE_IOCTL(SNDCTL_DSP_GETCAPS) | ||
2865 | COMPATIBLE_IOCTL(SNDCTL_DSP_GETTRIGGER) | ||
2866 | COMPATIBLE_IOCTL(SNDCTL_DSP_SETTRIGGER) | ||
2867 | COMPATIBLE_IOCTL(SNDCTL_DSP_GETIPTR) | ||
2868 | COMPATIBLE_IOCTL(SNDCTL_DSP_GETOPTR) | ||
2869 | /* SNDCTL_DSP_MAPINBUF, XXX needs translation */ | ||
2870 | /* SNDCTL_DSP_MAPOUTBUF, XXX needs translation */ | ||
2871 | COMPATIBLE_IOCTL(SNDCTL_DSP_SETSYNCRO) | ||
2872 | COMPATIBLE_IOCTL(SNDCTL_DSP_SETDUPLEX) | ||
2873 | COMPATIBLE_IOCTL(SNDCTL_DSP_GETODELAY) | ||
2874 | COMPATIBLE_IOCTL(SNDCTL_DSP_PROFILE) | ||
2875 | COMPATIBLE_IOCTL(SOUND_PCM_READ_RATE) | ||
2876 | COMPATIBLE_IOCTL(SOUND_PCM_READ_CHANNELS) | ||
2877 | COMPATIBLE_IOCTL(SOUND_PCM_READ_BITS) | ||
2878 | COMPATIBLE_IOCTL(SOUND_PCM_READ_FILTER) | ||
2879 | /* Big C for sound/OSS */ | ||
2880 | COMPATIBLE_IOCTL(SNDCTL_COPR_RESET) | ||
2881 | COMPATIBLE_IOCTL(SNDCTL_COPR_LOAD) | ||
2882 | COMPATIBLE_IOCTL(SNDCTL_COPR_RDATA) | ||
2883 | COMPATIBLE_IOCTL(SNDCTL_COPR_RCODE) | ||
2884 | COMPATIBLE_IOCTL(SNDCTL_COPR_WDATA) | ||
2885 | COMPATIBLE_IOCTL(SNDCTL_COPR_WCODE) | ||
2886 | COMPATIBLE_IOCTL(SNDCTL_COPR_RUN) | ||
2887 | COMPATIBLE_IOCTL(SNDCTL_COPR_HALT) | ||
2888 | COMPATIBLE_IOCTL(SNDCTL_COPR_SENDMSG) | ||
2889 | COMPATIBLE_IOCTL(SNDCTL_COPR_RCVMSG) | ||
2890 | /* Big M for sound/OSS */ | ||
2891 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_VOLUME) | ||
2892 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_BASS) | ||
2893 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_TREBLE) | ||
2894 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_SYNTH) | ||
2895 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_PCM) | ||
2896 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_SPEAKER) | ||
2897 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_LINE) | ||
2898 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_MIC) | ||
2899 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_CD) | ||
2900 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_IMIX) | ||
2901 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_ALTPCM) | ||
2902 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_RECLEV) | ||
2903 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_IGAIN) | ||
2904 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_OGAIN) | ||
2905 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_LINE1) | ||
2906 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_LINE2) | ||
2907 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_LINE3) | ||
2908 | COMPATIBLE_IOCTL(MIXER_READ(SOUND_MIXER_DIGITAL1)) | ||
2909 | COMPATIBLE_IOCTL(MIXER_READ(SOUND_MIXER_DIGITAL2)) | ||
2910 | COMPATIBLE_IOCTL(MIXER_READ(SOUND_MIXER_DIGITAL3)) | ||
2911 | COMPATIBLE_IOCTL(MIXER_READ(SOUND_MIXER_PHONEIN)) | ||
2912 | COMPATIBLE_IOCTL(MIXER_READ(SOUND_MIXER_PHONEOUT)) | ||
2913 | COMPATIBLE_IOCTL(MIXER_READ(SOUND_MIXER_VIDEO)) | ||
2914 | COMPATIBLE_IOCTL(MIXER_READ(SOUND_MIXER_RADIO)) | ||
2915 | COMPATIBLE_IOCTL(MIXER_READ(SOUND_MIXER_MONITOR)) | ||
2916 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_MUTE) | ||
2917 | /* SOUND_MIXER_READ_ENHANCE, same value as READ_MUTE */ | ||
2918 | /* SOUND_MIXER_READ_LOUD, same value as READ_MUTE */ | ||
2919 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_RECSRC) | ||
2920 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_DEVMASK) | ||
2921 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_RECMASK) | ||
2922 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_STEREODEVS) | ||
2923 | COMPATIBLE_IOCTL(SOUND_MIXER_READ_CAPS) | ||
2924 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_VOLUME) | ||
2925 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_BASS) | ||
2926 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_TREBLE) | ||
2927 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_SYNTH) | ||
2928 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_PCM) | ||
2929 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_SPEAKER) | ||
2930 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_LINE) | ||
2931 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_MIC) | ||
2932 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_CD) | ||
2933 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_IMIX) | ||
2934 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_ALTPCM) | ||
2935 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_RECLEV) | ||
2936 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_IGAIN) | ||
2937 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_OGAIN) | ||
2938 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_LINE1) | ||
2939 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_LINE2) | ||
2940 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_LINE3) | ||
2941 | COMPATIBLE_IOCTL(MIXER_WRITE(SOUND_MIXER_DIGITAL1)) | ||
2942 | COMPATIBLE_IOCTL(MIXER_WRITE(SOUND_MIXER_DIGITAL2)) | ||
2943 | COMPATIBLE_IOCTL(MIXER_WRITE(SOUND_MIXER_DIGITAL3)) | ||
2944 | COMPATIBLE_IOCTL(MIXER_WRITE(SOUND_MIXER_PHONEIN)) | ||
2945 | COMPATIBLE_IOCTL(MIXER_WRITE(SOUND_MIXER_PHONEOUT)) | ||
2946 | COMPATIBLE_IOCTL(MIXER_WRITE(SOUND_MIXER_VIDEO)) | ||
2947 | COMPATIBLE_IOCTL(MIXER_WRITE(SOUND_MIXER_RADIO)) | ||
2948 | COMPATIBLE_IOCTL(MIXER_WRITE(SOUND_MIXER_MONITOR)) | ||
2949 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_MUTE) | ||
2950 | /* SOUND_MIXER_WRITE_ENHANCE, same value as WRITE_MUTE */ | ||
2951 | /* SOUND_MIXER_WRITE_LOUD, same value as WRITE_MUTE */ | ||
2952 | COMPATIBLE_IOCTL(SOUND_MIXER_WRITE_RECSRC) | ||
2953 | COMPATIBLE_IOCTL(SOUND_MIXER_INFO) | ||
2954 | COMPATIBLE_IOCTL(SOUND_OLD_MIXER_INFO) | ||
2955 | COMPATIBLE_IOCTL(SOUND_MIXER_ACCESS) | ||
2956 | COMPATIBLE_IOCTL(SOUND_MIXER_AGC) | ||
2957 | COMPATIBLE_IOCTL(SOUND_MIXER_3DSE) | ||
2958 | COMPATIBLE_IOCTL(SOUND_MIXER_PRIVATE1) | ||
2959 | COMPATIBLE_IOCTL(SOUND_MIXER_PRIVATE2) | ||
2960 | COMPATIBLE_IOCTL(SOUND_MIXER_PRIVATE3) | ||
2961 | COMPATIBLE_IOCTL(SOUND_MIXER_PRIVATE4) | ||
2962 | COMPATIBLE_IOCTL(SOUND_MIXER_PRIVATE5) | ||
2963 | COMPATIBLE_IOCTL(SOUND_MIXER_GETLEVELS) | ||
2964 | COMPATIBLE_IOCTL(SOUND_MIXER_SETLEVELS) | ||
2965 | COMPATIBLE_IOCTL(OSS_GETVERSION) | ||
2966 | /* AUTOFS */ | ||
2967 | ULONG_IOCTL(AUTOFS_IOC_READY) | ||
2968 | ULONG_IOCTL(AUTOFS_IOC_FAIL) | ||
2969 | COMPATIBLE_IOCTL(AUTOFS_IOC_CATATONIC) | ||
2970 | COMPATIBLE_IOCTL(AUTOFS_IOC_PROTOVER) | ||
2971 | COMPATIBLE_IOCTL(AUTOFS_IOC_EXPIRE) | ||
2972 | COMPATIBLE_IOCTL(AUTOFS_IOC_EXPIRE_MULTI) | ||
2973 | COMPATIBLE_IOCTL(AUTOFS_IOC_PROTOSUBVER) | ||
2974 | COMPATIBLE_IOCTL(AUTOFS_IOC_ASKREGHOST) | ||
2975 | COMPATIBLE_IOCTL(AUTOFS_IOC_TOGGLEREGHOST) | ||
2976 | COMPATIBLE_IOCTL(AUTOFS_IOC_ASKUMOUNT) | ||
2977 | /* Raw devices */ | ||
2978 | COMPATIBLE_IOCTL(RAW_SETBIND) | ||
2979 | COMPATIBLE_IOCTL(RAW_GETBIND) | ||
2980 | /* SMB ioctls which do not need any translations */ | ||
2981 | COMPATIBLE_IOCTL(SMB_IOC_NEWCONN) | ||
2982 | /* Little a */ | ||
2983 | COMPATIBLE_IOCTL(ATMSIGD_CTRL) | ||
2984 | COMPATIBLE_IOCTL(ATMARPD_CTRL) | ||
2985 | COMPATIBLE_IOCTL(ATMLEC_CTRL) | ||
2986 | COMPATIBLE_IOCTL(ATMLEC_MCAST) | ||
2987 | COMPATIBLE_IOCTL(ATMLEC_DATA) | ||
2988 | COMPATIBLE_IOCTL(ATM_SETSC) | ||
2989 | COMPATIBLE_IOCTL(SIOCSIFATMTCP) | ||
2990 | COMPATIBLE_IOCTL(SIOCMKCLIP) | ||
2991 | COMPATIBLE_IOCTL(ATMARP_MKIP) | ||
2992 | COMPATIBLE_IOCTL(ATMARP_SETENTRY) | ||
2993 | COMPATIBLE_IOCTL(ATMARP_ENCAP) | ||
2994 | COMPATIBLE_IOCTL(ATMTCP_CREATE) | ||
2995 | COMPATIBLE_IOCTL(ATMTCP_REMOVE) | ||
2996 | COMPATIBLE_IOCTL(ATMMPC_CTRL) | ||
2997 | COMPATIBLE_IOCTL(ATMMPC_DATA) | ||
2998 | /* Watchdog */ | ||
2999 | COMPATIBLE_IOCTL(WDIOC_GETSUPPORT) | ||
3000 | COMPATIBLE_IOCTL(WDIOC_GETSTATUS) | ||
3001 | COMPATIBLE_IOCTL(WDIOC_GETBOOTSTATUS) | ||
3002 | COMPATIBLE_IOCTL(WDIOC_GETTEMP) | ||
3003 | COMPATIBLE_IOCTL(WDIOC_SETOPTIONS) | ||
3004 | COMPATIBLE_IOCTL(WDIOC_KEEPALIVE) | ||
3005 | COMPATIBLE_IOCTL(WDIOC_SETTIMEOUT) | ||
3006 | COMPATIBLE_IOCTL(WDIOC_GETTIMEOUT) | ||
3007 | /* Big R */ | ||
3008 | COMPATIBLE_IOCTL(RNDGETENTCNT) | ||
3009 | COMPATIBLE_IOCTL(RNDADDTOENTCNT) | ||
3010 | COMPATIBLE_IOCTL(RNDGETPOOL) | ||
3011 | COMPATIBLE_IOCTL(RNDADDENTROPY) | ||
3012 | COMPATIBLE_IOCTL(RNDZAPENTCNT) | ||
3013 | COMPATIBLE_IOCTL(RNDCLEARPOOL) | ||
3014 | /* Bluetooth */ | ||
3015 | COMPATIBLE_IOCTL(HCIDEVUP) | ||
3016 | COMPATIBLE_IOCTL(HCIDEVDOWN) | ||
3017 | COMPATIBLE_IOCTL(HCIDEVRESET) | ||
3018 | COMPATIBLE_IOCTL(HCIDEVRESTAT) | ||
3019 | COMPATIBLE_IOCTL(HCIGETDEVLIST) | ||
3020 | COMPATIBLE_IOCTL(HCIGETDEVINFO) | ||
3021 | COMPATIBLE_IOCTL(HCIGETCONNLIST) | ||
3022 | COMPATIBLE_IOCTL(HCIGETCONNINFO) | ||
3023 | COMPATIBLE_IOCTL(HCISETRAW) | ||
3024 | COMPATIBLE_IOCTL(HCISETSCAN) | ||
3025 | COMPATIBLE_IOCTL(HCISETAUTH) | ||
3026 | COMPATIBLE_IOCTL(HCISETENCRYPT) | ||
3027 | COMPATIBLE_IOCTL(HCISETPTYPE) | ||
3028 | COMPATIBLE_IOCTL(HCISETLINKPOL) | ||
3029 | COMPATIBLE_IOCTL(HCISETLINKMODE) | ||
3030 | COMPATIBLE_IOCTL(HCISETACLMTU) | ||
3031 | COMPATIBLE_IOCTL(HCISETSCOMTU) | ||
3032 | COMPATIBLE_IOCTL(HCIINQUIRY) | ||
3033 | COMPATIBLE_IOCTL(HCIUARTSETPROTO) | ||
3034 | COMPATIBLE_IOCTL(HCIUARTGETPROTO) | ||
3035 | COMPATIBLE_IOCTL(RFCOMMCREATEDEV) | ||
3036 | COMPATIBLE_IOCTL(RFCOMMRELEASEDEV) | ||
3037 | COMPATIBLE_IOCTL(RFCOMMGETDEVLIST) | ||
3038 | COMPATIBLE_IOCTL(RFCOMMGETDEVINFO) | ||
3039 | COMPATIBLE_IOCTL(RFCOMMSTEALDLC) | ||
3040 | COMPATIBLE_IOCTL(BNEPCONNADD) | ||
3041 | COMPATIBLE_IOCTL(BNEPCONNDEL) | ||
3042 | COMPATIBLE_IOCTL(BNEPGETCONNLIST) | ||
3043 | COMPATIBLE_IOCTL(BNEPGETCONNINFO) | ||
3044 | COMPATIBLE_IOCTL(CMTPCONNADD) | ||
3045 | COMPATIBLE_IOCTL(CMTPCONNDEL) | ||
3046 | COMPATIBLE_IOCTL(CMTPGETCONNLIST) | ||
3047 | COMPATIBLE_IOCTL(CMTPGETCONNINFO) | ||
3048 | COMPATIBLE_IOCTL(HIDPCONNADD) | ||
3049 | COMPATIBLE_IOCTL(HIDPCONNDEL) | ||
3050 | COMPATIBLE_IOCTL(HIDPGETCONNLIST) | ||
3051 | COMPATIBLE_IOCTL(HIDPGETCONNINFO) | ||
3052 | /* CAPI */ | ||
3053 | COMPATIBLE_IOCTL(CAPI_REGISTER) | ||
3054 | COMPATIBLE_IOCTL(CAPI_GET_MANUFACTURER) | ||
3055 | COMPATIBLE_IOCTL(CAPI_GET_VERSION) | ||
3056 | COMPATIBLE_IOCTL(CAPI_GET_SERIAL) | ||
3057 | COMPATIBLE_IOCTL(CAPI_GET_PROFILE) | ||
3058 | COMPATIBLE_IOCTL(CAPI_MANUFACTURER_CMD) | ||
3059 | COMPATIBLE_IOCTL(CAPI_GET_ERRCODE) | ||
3060 | COMPATIBLE_IOCTL(CAPI_INSTALLED) | ||
3061 | COMPATIBLE_IOCTL(CAPI_GET_FLAGS) | ||
3062 | COMPATIBLE_IOCTL(CAPI_SET_FLAGS) | ||
3063 | COMPATIBLE_IOCTL(CAPI_CLR_FLAGS) | ||
3064 | COMPATIBLE_IOCTL(CAPI_NCCI_OPENCOUNT) | ||
3065 | COMPATIBLE_IOCTL(CAPI_NCCI_GETUNIT) | ||
3066 | /* Siemens Gigaset */ | ||
3067 | COMPATIBLE_IOCTL(GIGASET_REDIR) | ||
3068 | COMPATIBLE_IOCTL(GIGASET_CONFIG) | ||
3069 | COMPATIBLE_IOCTL(GIGASET_BRKCHARS) | ||
3070 | COMPATIBLE_IOCTL(GIGASET_VERSION) | ||
3071 | /* Misc. */ | ||
3072 | COMPATIBLE_IOCTL(0x41545900) /* ATYIO_CLKR */ | ||
3073 | COMPATIBLE_IOCTL(0x41545901) /* ATYIO_CLKW */ | ||
3074 | COMPATIBLE_IOCTL(PCIIOC_CONTROLLER) | ||
3075 | COMPATIBLE_IOCTL(PCIIOC_MMAP_IS_IO) | ||
3076 | COMPATIBLE_IOCTL(PCIIOC_MMAP_IS_MEM) | ||
3077 | COMPATIBLE_IOCTL(PCIIOC_WRITE_COMBINE) | ||
3078 | /* USB */ | ||
3079 | COMPATIBLE_IOCTL(USBDEVFS_RESETEP) | ||
3080 | COMPATIBLE_IOCTL(USBDEVFS_SETINTERFACE) | ||
3081 | COMPATIBLE_IOCTL(USBDEVFS_SETCONFIGURATION) | ||
3082 | COMPATIBLE_IOCTL(USBDEVFS_GETDRIVER) | ||
3083 | COMPATIBLE_IOCTL(USBDEVFS_DISCARDURB) | ||
3084 | COMPATIBLE_IOCTL(USBDEVFS_CLAIMINTERFACE) | ||
3085 | COMPATIBLE_IOCTL(USBDEVFS_RELEASEINTERFACE) | ||
3086 | COMPATIBLE_IOCTL(USBDEVFS_CONNECTINFO) | ||
3087 | COMPATIBLE_IOCTL(USBDEVFS_HUB_PORTINFO) | ||
3088 | COMPATIBLE_IOCTL(USBDEVFS_RESET) | ||
3089 | COMPATIBLE_IOCTL(USBDEVFS_SUBMITURB32) | ||
3090 | COMPATIBLE_IOCTL(USBDEVFS_REAPURB32) | ||
3091 | COMPATIBLE_IOCTL(USBDEVFS_REAPURBNDELAY32) | ||
3092 | COMPATIBLE_IOCTL(USBDEVFS_CLEAR_HALT) | ||
3093 | /* MTD */ | ||
3094 | COMPATIBLE_IOCTL(MEMGETINFO) | ||
3095 | COMPATIBLE_IOCTL(MEMERASE) | ||
3096 | COMPATIBLE_IOCTL(MEMLOCK) | ||
3097 | COMPATIBLE_IOCTL(MEMUNLOCK) | ||
3098 | COMPATIBLE_IOCTL(MEMGETREGIONCOUNT) | ||
3099 | COMPATIBLE_IOCTL(MEMGETREGIONINFO) | ||
3100 | COMPATIBLE_IOCTL(MEMGETBADBLOCK) | ||
3101 | COMPATIBLE_IOCTL(MEMSETBADBLOCK) | ||
3102 | /* NBD */ | ||
3103 | ULONG_IOCTL(NBD_SET_SOCK) | ||
3104 | ULONG_IOCTL(NBD_SET_BLKSIZE) | ||
3105 | ULONG_IOCTL(NBD_SET_SIZE) | ||
3106 | COMPATIBLE_IOCTL(NBD_DO_IT) | ||
3107 | COMPATIBLE_IOCTL(NBD_CLEAR_SOCK) | ||
3108 | COMPATIBLE_IOCTL(NBD_CLEAR_QUE) | ||
3109 | COMPATIBLE_IOCTL(NBD_PRINT_DEBUG) | ||
3110 | ULONG_IOCTL(NBD_SET_SIZE_BLOCKS) | ||
3111 | COMPATIBLE_IOCTL(NBD_DISCONNECT) | ||
3112 | /* i2c */ | ||
3113 | COMPATIBLE_IOCTL(I2C_SLAVE) | ||
3114 | COMPATIBLE_IOCTL(I2C_SLAVE_FORCE) | ||
3115 | COMPATIBLE_IOCTL(I2C_TENBIT) | ||
3116 | COMPATIBLE_IOCTL(I2C_PEC) | ||
3117 | COMPATIBLE_IOCTL(I2C_RETRIES) | ||
3118 | COMPATIBLE_IOCTL(I2C_TIMEOUT) | ||
3119 | /* wireless */ | ||
3120 | COMPATIBLE_IOCTL(SIOCSIWCOMMIT) | ||
3121 | COMPATIBLE_IOCTL(SIOCGIWNAME) | ||
3122 | COMPATIBLE_IOCTL(SIOCSIWNWID) | ||
3123 | COMPATIBLE_IOCTL(SIOCGIWNWID) | ||
3124 | COMPATIBLE_IOCTL(SIOCSIWFREQ) | ||
3125 | COMPATIBLE_IOCTL(SIOCGIWFREQ) | ||
3126 | COMPATIBLE_IOCTL(SIOCSIWMODE) | ||
3127 | COMPATIBLE_IOCTL(SIOCGIWMODE) | ||
3128 | COMPATIBLE_IOCTL(SIOCSIWSENS) | ||
3129 | COMPATIBLE_IOCTL(SIOCGIWSENS) | ||
3130 | COMPATIBLE_IOCTL(SIOCSIWRANGE) | ||
3131 | COMPATIBLE_IOCTL(SIOCSIWPRIV) | ||
3132 | COMPATIBLE_IOCTL(SIOCGIWPRIV) | ||
3133 | COMPATIBLE_IOCTL(SIOCSIWSTATS) | ||
3134 | COMPATIBLE_IOCTL(SIOCGIWSTATS) | ||
3135 | COMPATIBLE_IOCTL(SIOCSIWAP) | ||
3136 | COMPATIBLE_IOCTL(SIOCGIWAP) | ||
3137 | COMPATIBLE_IOCTL(SIOCSIWSCAN) | ||
3138 | COMPATIBLE_IOCTL(SIOCSIWRATE) | ||
3139 | COMPATIBLE_IOCTL(SIOCGIWRATE) | ||
3140 | COMPATIBLE_IOCTL(SIOCSIWRTS) | ||
3141 | COMPATIBLE_IOCTL(SIOCGIWRTS) | ||
3142 | COMPATIBLE_IOCTL(SIOCSIWFRAG) | ||
3143 | COMPATIBLE_IOCTL(SIOCGIWFRAG) | ||
3144 | COMPATIBLE_IOCTL(SIOCSIWTXPOW) | ||
3145 | COMPATIBLE_IOCTL(SIOCGIWTXPOW) | ||
3146 | COMPATIBLE_IOCTL(SIOCSIWRETRY) | ||
3147 | COMPATIBLE_IOCTL(SIOCGIWRETRY) | ||
3148 | COMPATIBLE_IOCTL(SIOCSIWPOWER) | ||
3149 | COMPATIBLE_IOCTL(SIOCGIWPOWER) | ||
3150 | /* hiddev */ | ||
3151 | COMPATIBLE_IOCTL(HIDIOCGVERSION) | ||
3152 | COMPATIBLE_IOCTL(HIDIOCAPPLICATION) | ||
3153 | COMPATIBLE_IOCTL(HIDIOCGDEVINFO) | ||
3154 | COMPATIBLE_IOCTL(HIDIOCGSTRING) | ||
3155 | COMPATIBLE_IOCTL(HIDIOCINITREPORT) | ||
3156 | COMPATIBLE_IOCTL(HIDIOCGREPORT) | ||
3157 | COMPATIBLE_IOCTL(HIDIOCSREPORT) | ||
3158 | COMPATIBLE_IOCTL(HIDIOCGREPORTINFO) | ||
3159 | COMPATIBLE_IOCTL(HIDIOCGFIELDINFO) | ||
3160 | COMPATIBLE_IOCTL(HIDIOCGUSAGE) | ||
3161 | COMPATIBLE_IOCTL(HIDIOCSUSAGE) | ||
3162 | COMPATIBLE_IOCTL(HIDIOCGUCODE) | ||
3163 | COMPATIBLE_IOCTL(HIDIOCGFLAG) | ||
3164 | COMPATIBLE_IOCTL(HIDIOCSFLAG) | ||
3165 | COMPATIBLE_IOCTL(HIDIOCGCOLLECTIONINDEX) | ||
3166 | COMPATIBLE_IOCTL(HIDIOCGCOLLECTIONINFO) | ||
3167 | /* dvb */ | ||
3168 | COMPATIBLE_IOCTL(AUDIO_STOP) | ||
3169 | COMPATIBLE_IOCTL(AUDIO_PLAY) | ||
3170 | COMPATIBLE_IOCTL(AUDIO_PAUSE) | ||
3171 | COMPATIBLE_IOCTL(AUDIO_CONTINUE) | ||
3172 | COMPATIBLE_IOCTL(AUDIO_SELECT_SOURCE) | ||
3173 | COMPATIBLE_IOCTL(AUDIO_SET_MUTE) | ||
3174 | COMPATIBLE_IOCTL(AUDIO_SET_AV_SYNC) | ||
3175 | COMPATIBLE_IOCTL(AUDIO_SET_BYPASS_MODE) | ||
3176 | COMPATIBLE_IOCTL(AUDIO_CHANNEL_SELECT) | ||
3177 | COMPATIBLE_IOCTL(AUDIO_GET_STATUS) | ||
3178 | COMPATIBLE_IOCTL(AUDIO_GET_CAPABILITIES) | ||
3179 | COMPATIBLE_IOCTL(AUDIO_CLEAR_BUFFER) | ||
3180 | COMPATIBLE_IOCTL(AUDIO_SET_ID) | ||
3181 | COMPATIBLE_IOCTL(AUDIO_SET_MIXER) | ||
3182 | COMPATIBLE_IOCTL(AUDIO_SET_STREAMTYPE) | ||
3183 | COMPATIBLE_IOCTL(AUDIO_SET_EXT_ID) | ||
3184 | COMPATIBLE_IOCTL(AUDIO_SET_ATTRIBUTES) | ||
3185 | COMPATIBLE_IOCTL(AUDIO_SET_KARAOKE) | ||
3186 | COMPATIBLE_IOCTL(DMX_START) | ||
3187 | COMPATIBLE_IOCTL(DMX_STOP) | ||
3188 | COMPATIBLE_IOCTL(DMX_SET_FILTER) | ||
3189 | COMPATIBLE_IOCTL(DMX_SET_PES_FILTER) | ||
3190 | COMPATIBLE_IOCTL(DMX_SET_BUFFER_SIZE) | ||
3191 | COMPATIBLE_IOCTL(DMX_GET_PES_PIDS) | ||
3192 | COMPATIBLE_IOCTL(DMX_GET_CAPS) | ||
3193 | COMPATIBLE_IOCTL(DMX_SET_SOURCE) | ||
3194 | COMPATIBLE_IOCTL(DMX_GET_STC) | ||
3195 | COMPATIBLE_IOCTL(FE_GET_INFO) | ||
3196 | COMPATIBLE_IOCTL(FE_DISEQC_RESET_OVERLOAD) | ||
3197 | COMPATIBLE_IOCTL(FE_DISEQC_SEND_MASTER_CMD) | ||
3198 | COMPATIBLE_IOCTL(FE_DISEQC_RECV_SLAVE_REPLY) | ||
3199 | COMPATIBLE_IOCTL(FE_DISEQC_SEND_BURST) | ||
3200 | COMPATIBLE_IOCTL(FE_SET_TONE) | ||
3201 | COMPATIBLE_IOCTL(FE_SET_VOLTAGE) | ||
3202 | COMPATIBLE_IOCTL(FE_ENABLE_HIGH_LNB_VOLTAGE) | ||
3203 | COMPATIBLE_IOCTL(FE_READ_STATUS) | ||
3204 | COMPATIBLE_IOCTL(FE_READ_BER) | ||
3205 | COMPATIBLE_IOCTL(FE_READ_SIGNAL_STRENGTH) | ||
3206 | COMPATIBLE_IOCTL(FE_READ_SNR) | ||
3207 | COMPATIBLE_IOCTL(FE_READ_UNCORRECTED_BLOCKS) | ||
3208 | COMPATIBLE_IOCTL(FE_SET_FRONTEND) | ||
3209 | COMPATIBLE_IOCTL(FE_GET_FRONTEND) | ||
3210 | COMPATIBLE_IOCTL(FE_GET_EVENT) | ||
3211 | COMPATIBLE_IOCTL(FE_DISHNETWORK_SEND_LEGACY_CMD) | ||
3212 | COMPATIBLE_IOCTL(VIDEO_STOP) | ||
3213 | COMPATIBLE_IOCTL(VIDEO_PLAY) | ||
3214 | COMPATIBLE_IOCTL(VIDEO_FREEZE) | ||
3215 | COMPATIBLE_IOCTL(VIDEO_CONTINUE) | ||
3216 | COMPATIBLE_IOCTL(VIDEO_SELECT_SOURCE) | ||
3217 | COMPATIBLE_IOCTL(VIDEO_SET_BLANK) | ||
3218 | COMPATIBLE_IOCTL(VIDEO_GET_STATUS) | ||
3219 | COMPATIBLE_IOCTL(VIDEO_SET_DISPLAY_FORMAT) | ||
3220 | COMPATIBLE_IOCTL(VIDEO_FAST_FORWARD) | ||
3221 | COMPATIBLE_IOCTL(VIDEO_SLOWMOTION) | ||
3222 | COMPATIBLE_IOCTL(VIDEO_GET_CAPABILITIES) | ||
3223 | COMPATIBLE_IOCTL(VIDEO_CLEAR_BUFFER) | ||
3224 | COMPATIBLE_IOCTL(VIDEO_SET_ID) | ||
3225 | COMPATIBLE_IOCTL(VIDEO_SET_STREAMTYPE) | ||
3226 | COMPATIBLE_IOCTL(VIDEO_SET_FORMAT) | ||
3227 | COMPATIBLE_IOCTL(VIDEO_SET_SYSTEM) | ||
3228 | COMPATIBLE_IOCTL(VIDEO_SET_HIGHLIGHT) | ||
3229 | COMPATIBLE_IOCTL(VIDEO_SET_SPU) | ||
3230 | COMPATIBLE_IOCTL(VIDEO_GET_NAVI) | ||
3231 | COMPATIBLE_IOCTL(VIDEO_SET_ATTRIBUTES) | ||
3232 | COMPATIBLE_IOCTL(VIDEO_GET_SIZE) | ||
3233 | COMPATIBLE_IOCTL(VIDEO_GET_FRAME_RATE) | ||
3234 | |||
3235 | /* now things that need handlers */ | ||
2409 | HANDLE_IOCTL(MEMREADOOB32, mtd_rw_oob) | 3236 | HANDLE_IOCTL(MEMREADOOB32, mtd_rw_oob) |
2410 | HANDLE_IOCTL(MEMWRITEOOB32, mtd_rw_oob) | 3237 | HANDLE_IOCTL(MEMWRITEOOB32, mtd_rw_oob) |
2411 | #ifdef CONFIG_NET | 3238 | #ifdef CONFIG_NET |