1 /* emulated ioctl list */ 2 3 IOCTL(TCGETS, IOC_R, MK_PTR(MK_STRUCT(STRUCT_termios))) 4 IOCTL(TCSETS, IOC_W, MK_PTR(MK_STRUCT(STRUCT_termios))) 5 IOCTL(TCSETSF, IOC_W, MK_PTR(MK_STRUCT(STRUCT_termios))) 6 IOCTL(TCSETSW, IOC_W, MK_PTR(MK_STRUCT(STRUCT_termios))) 7 IOCTL(TIOCGWINSZ, IOC_R, MK_PTR(MK_STRUCT(STRUCT_winsize))) 8 IOCTL(TIOCSWINSZ, IOC_W, MK_PTR(MK_STRUCT(STRUCT_winsize))) 9 IOCTL(FIONREAD, IOC_R, MK_PTR(TYPE_INT)) 10 IOCTL(TCGETA, IOC_R, MK_PTR(TYPE_INT)) 11 IOCTL(TCSETA, IOC_W, MK_PTR(TYPE_INT)) 12 IOCTL(TCSETAW, IOC_W, MK_PTR(TYPE_INT)) 13 IOCTL(TCSETAF, IOC_W, MK_PTR(TYPE_INT)) 14 IOCTL(TCSBRK, 0, TYPE_INT) 15 IOCTL(TCSBRKP, 0, TYPE_INT) 16 IOCTL(TCXONC, 0, TYPE_INT) 17 IOCTL(TCFLSH, 0, TYPE_INT) 18 IOCTL(TIOCEXCL, 0, TYPE_NULL) 19 IOCTL(TIOCNXCL, 0, TYPE_NULL) 20 IOCTL(TIOCSCTTY, 0, TYPE_INT) 21 IOCTL(TIOCGPGRP, IOC_R, MK_PTR(TYPE_INT)) 22 IOCTL(TIOCSPGRP, IOC_W, MK_PTR(TYPE_INT)) 23 IOCTL(TIOCGSID, IOC_W, MK_PTR(TYPE_INT)) 24 IOCTL(TIOCOUTQ, IOC_R, MK_PTR(TYPE_INT)) 25 IOCTL(TIOCSTI, IOC_W, MK_PTR(TYPE_INT)) 26 IOCTL(TIOCMGET, IOC_R, MK_PTR(TYPE_INT)) 27 IOCTL(TIOCMBIS, IOC_W, MK_PTR(TYPE_INT)) 28 IOCTL(TIOCMBIC, IOC_W, MK_PTR(TYPE_INT)) 29 IOCTL(TIOCMSET, IOC_W, MK_PTR(TYPE_INT)) 30 IOCTL(TIOCGSOFTCAR, IOC_R, MK_PTR(TYPE_INT)) 31 IOCTL(TIOCSSOFTCAR, IOC_W, MK_PTR(TYPE_INT)) 32 IOCTL(TIOCLINUX, IOC_R | IOC_W, MK_PTR(TYPE_INT)) 33 IOCTL(TIOCCONS, 0, TYPE_NULL) 34 IOCTL(TIOCGSERIAL, IOC_R, MK_PTR(TYPE_INT)) 35 IOCTL(TIOCSSERIAL, IOC_W, MK_PTR(TYPE_INT)) 36 IOCTL(TIOCPKT, IOC_W, MK_PTR(TYPE_INT)) 37 IOCTL(FIONBIO, IOC_W, MK_PTR(TYPE_INT)) 38 IOCTL(TIOCNOTTY, 0, TYPE_NULL) 39 IOCTL(TIOCGETD, IOC_R, MK_PTR(TYPE_INT)) 40 IOCTL(TIOCSETD, IOC_W, MK_PTR(TYPE_INT)) 41 IOCTL(TIOCGPTN, IOC_R, MK_PTR(TYPE_INT)) 42 IOCTL(TIOCSPTLCK, IOC_W, MK_PTR(TYPE_INT)) 43 IOCTL(FIOCLEX, 0, TYPE_NULL) 44 IOCTL(FIONCLEX, 0, TYPE_NULL) 45 IOCTL(FIOASYNC, IOC_W, MK_PTR(TYPE_INT)) 46 IOCTL(TIOCGLCKTRMIOS, IOC_R, MK_PTR(MK_STRUCT(STRUCT_termios))) 47 IOCTL(TIOCSLCKTRMIOS, IOC_W, MK_PTR(MK_STRUCT(STRUCT_termios))) 48 IOCTL(TIOCSERCONFIG, 0, TYPE_NULL) 49 IOCTL(TIOCSERGETLSR, IOC_R, MK_PTR(TYPE_INT)) 50 IOCTL(TIOCSERGETMULTI, IOC_R, MK_PTR(MK_STRUCT(STRUCT_serial_multiport_struct))) 51 IOCTL(TIOCSERSETMULTI, IOC_W, MK_PTR(MK_STRUCT(STRUCT_serial_multiport_struct))) 52 IOCTL(TIOCMIWAIT, 0, TYPE_INT) 53 IOCTL(TIOCGICOUNT, IOC_R, MK_PTR(MK_STRUCT(STRUCT_serial_icounter_struct))) 54 55 IOCTL(KIOCSOUND, 0, TYPE_INT) 56 IOCTL(KDMKTONE, 0, TYPE_INT) 57 IOCTL(KDSETMODE, 0, TYPE_INT) 58 IOCTL(KDGKBTYPE, IOC_R, MK_PTR(TYPE_CHAR)) 59 IOCTL(KDGKBMODE, IOC_R, MK_PTR(TYPE_INT)) 60 IOCTL(KDSKBMODE, 0, TYPE_INT) 61 IOCTL(KDGKBENT, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_kbentry))) 62 IOCTL(KDGKBSENT, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_kbsentry))) 63 IOCTL(KDGKBLED, 0, TYPE_INT) 64 IOCTL(KDSKBLED, 0, TYPE_INT) 65 IOCTL(KDGETLED, 0, TYPE_INT) 66 IOCTL(KDSETLED, 0, TYPE_INT) 67 IOCTL_SPECIAL(KDSIGACCEPT, 0, do_ioctl_kdsigaccept, TYPE_INT) 68 69 IOCTL(BLKROSET, IOC_W, MK_PTR(TYPE_INT)) 70 IOCTL(BLKROGET, IOC_R, MK_PTR(TYPE_INT)) 71 IOCTL(BLKRRPART, 0, TYPE_NULL) 72 IOCTL(BLKGETSIZE, IOC_R, MK_PTR(TYPE_ULONG)) 73 #ifdef BLKGETSIZE64 74 IOCTL(BLKGETSIZE64, IOC_R, MK_PTR(TYPE_ULONGLONG)) 75 #endif 76 IOCTL(BLKFLSBUF, 0, TYPE_NULL) 77 IOCTL(BLKRASET, 0, TYPE_INT) 78 IOCTL(BLKRAGET, IOC_R, MK_PTR(TYPE_LONG)) 79 IOCTL(BLKSSZGET, IOC_R, MK_PTR(TYPE_INT)) 80 IOCTL(BLKBSZGET, IOC_R, MK_PTR(TYPE_INT)) 81 IOCTL_SPECIAL(BLKPG, IOC_W, do_ioctl_blkpg, 82 MK_PTR(MK_STRUCT(STRUCT_blkpg_ioctl_arg))) 83 84 #ifdef BLKDISCARD 85 IOCTL(BLKDISCARD, IOC_W, MK_PTR(MK_ARRAY(TYPE_ULONGLONG, 2))) 86 #endif 87 #ifdef BLKIOMIN 88 IOCTL(BLKIOMIN, IOC_R, MK_PTR(TYPE_INT)) 89 #endif 90 #ifdef BLKIOOPT 91 IOCTL(BLKIOOPT, IOC_R, MK_PTR(TYPE_INT)) 92 #endif 93 #ifdef BLKALIGNOFF 94 IOCTL(BLKALIGNOFF, IOC_R, MK_PTR(TYPE_INT)) 95 #endif 96 #ifdef BLKPBSZGET 97 IOCTL(BLKPBSZGET, IOC_R, MK_PTR(TYPE_INT)) 98 #endif 99 #ifdef BLKDISCARDZEROES 100 IOCTL(BLKDISCARDZEROES, IOC_R, MK_PTR(TYPE_INT)) 101 #endif 102 #ifdef BLKSECDISCARD 103 IOCTL(BLKSECDISCARD, IOC_W, MK_PTR(MK_ARRAY(TYPE_ULONGLONG, 2))) 104 #endif 105 #ifdef BLKROTATIONAL 106 IOCTL(BLKROTATIONAL, IOC_R, MK_PTR(TYPE_SHORT)) 107 #endif 108 #ifdef BLKZEROOUT 109 IOCTL(BLKZEROOUT, IOC_W, MK_PTR(MK_ARRAY(TYPE_ULONGLONG, 2))) 110 #endif 111 112 #ifdef FIBMAP 113 IOCTL(FIBMAP, IOC_W | IOC_R, MK_PTR(TYPE_LONG)) 114 #endif 115 #ifdef FICLONE 116 IOCTL(FICLONE, IOC_W, TYPE_INT) 117 IOCTL(FICLONERANGE, IOC_W, MK_PTR(MK_STRUCT(STRUCT_file_clone_range))) 118 #endif 119 120 #ifdef FIGETBSZ 121 IOCTL(FIGETBSZ, IOC_R, MK_PTR(TYPE_LONG)) 122 #endif 123 #ifdef CONFIG_FIEMAP 124 IOCTL_SPECIAL(FS_IOC_FIEMAP, IOC_W | IOC_R, do_ioctl_fs_ioc_fiemap, 125 MK_PTR(MK_STRUCT(STRUCT_fiemap))) 126 #endif 127 128 IOCTL(FS_IOC_GETFLAGS, IOC_R, MK_PTR(TYPE_INT)) 129 IOCTL(FS_IOC_SETFLAGS, IOC_W, MK_PTR(TYPE_INT)) 130 131 IOCTL(SIOCATMARK, IOC_R, MK_PTR(TYPE_INT)) 132 IOCTL(SIOCGIFNAME, IOC_RW, MK_PTR(TYPE_INT)) 133 IOCTL(SIOCGIFFLAGS, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_short_ifreq))) 134 IOCTL(SIOCSIFFLAGS, IOC_W, MK_PTR(MK_STRUCT(STRUCT_short_ifreq))) 135 IOCTL(SIOCGIFADDR, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 136 IOCTL(SIOCSIFADDR, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 137 IOCTL(SIOCGIFBRDADDR, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 138 IOCTL(SIOCSIFBRDADDR, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 139 IOCTL(SIOCGIFDSTADDR, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 140 IOCTL(SIOCSIFDSTADDR, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 141 IOCTL(SIOCGIFNETMASK, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 142 IOCTL(SIOCSIFNETMASK, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 143 IOCTL(SIOCGIFHWADDR, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 144 IOCTL(SIOCSIFHWADDR, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 145 IOCTL(SIOCGIFTXQLEN, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 146 IOCTL(SIOCSIFTXQLEN, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 147 IOCTL(SIOCGIFMETRIC, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_int_ifreq))) 148 IOCTL(SIOCSIFMETRIC, IOC_W, MK_PTR(MK_STRUCT(STRUCT_int_ifreq))) 149 IOCTL(SIOCGIFMTU, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_int_ifreq))) 150 IOCTL(SIOCSIFMTU, IOC_W, MK_PTR(MK_STRUCT(STRUCT_int_ifreq))) 151 IOCTL(SIOCGIFMAP, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_ifmap_ifreq))) 152 IOCTL(SIOCSIFMAP, IOC_W, MK_PTR(MK_STRUCT(STRUCT_ifmap_ifreq))) 153 IOCTL(SIOCGIFSLAVE, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_char_ifreq))) 154 IOCTL(SIOCSIFSLAVE, IOC_W, MK_PTR(MK_STRUCT(STRUCT_char_ifreq))) 155 IOCTL(SIOCGIFMEM, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_ptr_ifreq))) 156 IOCTL(SIOCSIFMEM, IOC_W, MK_PTR(MK_STRUCT(STRUCT_ptr_ifreq))) 157 IOCTL(SIOCADDMULTI, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 158 IOCTL(SIOCDELMULTI, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) 159 IOCTL(SIOCGIFINDEX, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_int_ifreq))) 160 IOCTL(SIOCSIFLINK, 0, TYPE_NULL) 161 IOCTL_SPECIAL(SIOCGIFCONF, IOC_W | IOC_R, do_ioctl_ifconf, 162 MK_PTR(MK_STRUCT(STRUCT_ifconf))) 163 IOCTL(SIOCGIFENCAP, IOC_RW, MK_PTR(TYPE_INT)) 164 IOCTL(SIOCSIFENCAP, IOC_W, MK_PTR(TYPE_INT)) 165 IOCTL(SIOCDARP, IOC_W, MK_PTR(MK_STRUCT(STRUCT_arpreq))) 166 IOCTL(SIOCSARP, IOC_W, MK_PTR(MK_STRUCT(STRUCT_arpreq))) 167 IOCTL(SIOCGARP, IOC_R, MK_PTR(MK_STRUCT(STRUCT_arpreq))) 168 IOCTL(SIOCDRARP, IOC_W, MK_PTR(MK_STRUCT(STRUCT_arpreq))) 169 IOCTL(SIOCSRARP, IOC_W, MK_PTR(MK_STRUCT(STRUCT_arpreq))) 170 IOCTL(SIOCGRARP, IOC_R, MK_PTR(MK_STRUCT(STRUCT_arpreq))) 171 IOCTL(SIOCGIWNAME, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_char_ifreq))) 172 IOCTL(SIOCGPGRP, IOC_R, MK_PTR(TYPE_INT)) /* pid_t */ 173 IOCTL(SIOCGSTAMP, IOC_R, MK_PTR(MK_STRUCT(STRUCT_timeval))) 174 IOCTL(SIOCGSTAMPNS, IOC_R, MK_PTR(MK_STRUCT(STRUCT_timespec))) 175 176 IOCTL(RNDGETENTCNT, IOC_R, MK_PTR(TYPE_INT)) 177 IOCTL(RNDADDTOENTCNT, IOC_W, MK_PTR(TYPE_INT)) 178 IOCTL(RNDZAPENTCNT, 0, TYPE_NULL) 179 IOCTL(RNDCLEARPOOL, 0, TYPE_NULL) 180 181 IOCTL(CDROMPAUSE, 0, TYPE_NULL) 182 IOCTL(CDROMSTART, 0, TYPE_NULL) 183 IOCTL(CDROMSTOP, 0, TYPE_NULL) 184 IOCTL(CDROMRESUME, 0, TYPE_NULL) 185 IOCTL(CDROMEJECT, 0, TYPE_NULL) 186 IOCTL(CDROMEJECT_SW, 0, TYPE_INT) 187 IOCTL(CDROMCLOSETRAY, 0, TYPE_NULL) 188 IOCTL(CDROMRESET, 0, TYPE_NULL) 189 IOCTL(CDROMPLAYMSF, IOC_W, MK_PTR(TYPE_INT)) 190 IOCTL(CDROMPLAYTRKIND, IOC_W, MK_PTR(TYPE_INT)) 191 IOCTL(CDROMREADTOCHDR, IOC_R, MK_PTR(TYPE_INT)) 192 IOCTL(CDROMREADTOCENTRY, IOC_RW, MK_PTR(TYPE_INT)) 193 IOCTL(CDROMVOLCTRL, IOC_W, MK_PTR(TYPE_INT)) 194 IOCTL(CDROMSUBCHNL, IOC_RW, MK_PTR(TYPE_INT)) 195 /* XXX: incorrect (need specific handling) */ 196 IOCTL(CDROMREADAUDIO, IOC_W, MK_PTR(MK_STRUCT(STRUCT_cdrom_read_audio))) 197 IOCTL(CDROMREADCOOKED, IOC_RW, MK_PTR(TYPE_INT)) 198 IOCTL(CDROMREADRAW, IOC_RW, MK_PTR(TYPE_INT)) 199 IOCTL(CDROMREADMODE1, IOC_RW, MK_PTR(TYPE_INT)) 200 IOCTL(CDROMREADMODE2, IOC_RW, MK_PTR(TYPE_INT)) 201 IOCTL(CDROMREADALL, IOC_RW, MK_PTR(TYPE_INT)) 202 IOCTL(CDROMMULTISESSION, IOC_RW, MK_PTR(TYPE_INT)) 203 IOCTL(CDROM_GET_UPC, IOC_R, MK_PTR(TYPE_INT)) 204 IOCTL(CDROMVOLREAD, IOC_R, MK_PTR(TYPE_INT)) 205 IOCTL(CDROMSEEK, IOC_W, MK_PTR(TYPE_INT)) 206 IOCTL(CDROMPLAYBLK, IOC_W, MK_PTR(TYPE_INT)) 207 IOCTL(CDROM_MEDIA_CHANGED, 0, TYPE_NULL) 208 IOCTL(CDROM_SET_OPTIONS, 0, TYPE_INT) 209 IOCTL(CDROM_CLEAR_OPTIONS, 0, TYPE_INT) 210 IOCTL(CDROM_SELECT_SPEED, 0, TYPE_INT) 211 IOCTL(CDROM_SELECT_DISC, 0, TYPE_INT) 212 IOCTL(CDROM_DRIVE_STATUS, 0, TYPE_NULL) 213 IOCTL(CDROM_DISC_STATUS, 0, TYPE_NULL) 214 IOCTL(CDROMAUDIOBUFSIZ, 0, TYPE_INT) 215 216 #if 0 217 IOCTL(SNDCTL_COPR_HALT, IOC_RW, MK_PTR(TYPE_INT)) 218 IOCTL(SNDCTL_COPR_LOAD, IOC_RW, MK_PTR(TYPE_INT)) 219 IOCTL(SNDCTL_COPR_RCODE, IOC_RW, MK_PTR(TYPE_INT)) 220 IOCTL(SNDCTL_COPR_RCVMSG, IOC_R, MK_PTR(TYPE_INT)) 221 IOCTL(SNDCTL_COPR_RDATA, IOC_RW, MK_PTR(TYPE_INT)) 222 IOCTL(SNDCTL_COPR_RESET, 0, TYPE_NULL) 223 IOCTL(SNDCTL_COPR_RUN, IOC_RW, MK_PTR(TYPE_INT)) 224 IOCTL(SNDCTL_COPR_SENDMSG, IOC_RW, MK_PTR(TYPE_INT)) 225 IOCTL(SNDCTL_COPR_WCODE, IOC_W, MK_PTR(TYPE_INT)) 226 IOCTL(SNDCTL_COPR_WDATA, IOC_W, MK_PTR(TYPE_INT)) 227 #endif 228 IOCTL(SNDCTL_DSP_CHANNELS, IOC_RW, MK_PTR(TYPE_INT)) 229 IOCTL(SNDCTL_DSP_GETBLKSIZE, IOC_RW, MK_PTR(TYPE_INT)) 230 IOCTL(SNDCTL_DSP_GETCAPS, IOC_R, MK_PTR(TYPE_INT)) 231 IOCTL(SNDCTL_DSP_GETFMTS, IOC_R, MK_PTR(TYPE_INT)) 232 IOCTL(SNDCTL_DSP_GETIPTR, IOC_R, MK_PTR(MK_STRUCT(STRUCT_count_info))) 233 IOCTL(SNDCTL_DSP_GETOPTR, IOC_R, MK_PTR(MK_STRUCT(STRUCT_count_info))) 234 IOCTL(SNDCTL_DSP_GETISPACE, IOC_R, MK_PTR(MK_STRUCT(STRUCT_audio_buf_info))) 235 IOCTL(SNDCTL_DSP_GETOSPACE, IOC_R, MK_PTR(MK_STRUCT(STRUCT_audio_buf_info))) 236 IOCTL(SNDCTL_DSP_GETTRIGGER, IOC_R, MK_PTR(TYPE_INT)) 237 IOCTL(SNDCTL_DSP_MAPINBUF, IOC_R, MK_PTR(MK_STRUCT(STRUCT_buffmem_desc))) 238 IOCTL(SNDCTL_DSP_MAPOUTBUF, IOC_R, MK_PTR(MK_STRUCT(STRUCT_buffmem_desc))) 239 IOCTL(SNDCTL_DSP_NONBLOCK, 0, TYPE_NULL) 240 IOCTL(SNDCTL_DSP_POST, 0, TYPE_NULL) 241 IOCTL(SNDCTL_DSP_RESET, 0, TYPE_NULL) 242 IOCTL(SNDCTL_DSP_SETDUPLEX, 0, TYPE_NULL) 243 IOCTL(SNDCTL_DSP_SETFMT, IOC_RW, MK_PTR(TYPE_INT)) 244 IOCTL(SNDCTL_DSP_SETFRAGMENT, IOC_RW, MK_PTR(TYPE_INT)) 245 IOCTL(SNDCTL_DSP_SETSYNCRO, 0, TYPE_NULL) 246 IOCTL(SNDCTL_DSP_SETTRIGGER, IOC_W, MK_PTR(TYPE_INT)) 247 IOCTL(SNDCTL_DSP_SPEED, IOC_RW, MK_PTR(TYPE_INT)) 248 IOCTL(SNDCTL_DSP_STEREO, IOC_RW, MK_PTR(TYPE_INT)) 249 IOCTL(SNDCTL_DSP_SUBDIVIDE, IOC_RW, MK_PTR(TYPE_INT)) 250 IOCTL(SNDCTL_DSP_SYNC, 0, TYPE_NULL) 251 #if 0 252 IOCTL(SNDCTL_FM_4OP_ENABLE, IOC_W, MK_PTR(TYPE_INT)) 253 IOCTL(SNDCTL_FM_LOAD_INSTR, IOC_W, MK_PTR(TYPE_INT)) 254 IOCTL(SNDCTL_MIDI_INFO, IOC_RW, MK_PTR(TYPE_INT)) 255 IOCTL(SNDCTL_MIDI_MPUCMD, IOC_RW, MK_PTR(TYPE_INT)) 256 IOCTL(SNDCTL_MIDI_MPUMODE, IOC_RW, MK_PTR(TYPE_INT)) 257 IOCTL(SNDCTL_MIDI_PRETIME, IOC_RW, MK_PTR(TYPE_INT)) 258 IOCTL(SNDCTL_SEQ_CTRLRATE, IOC_RW, MK_PTR(TYPE_INT)) 259 IOCTL(SNDCTL_SEQ_GETINCOUNT, IOC_R, MK_PTR(TYPE_INT)) 260 IOCTL(SNDCTL_SEQ_GETOUTCOUNT, IOC_R, MK_PTR(TYPE_INT)) 261 IOCTL(SNDCTL_SEQ_NRMIDIS, IOC_R, MK_PTR(TYPE_INT)) 262 IOCTL(SNDCTL_SEQ_NRSYNTHS, IOC_R, MK_PTR(TYPE_INT)) 263 IOCTL(SNDCTL_SEQ_OUTOFBAND, IOC_W, MK_PTR(TYPE_INT)) 264 IOCTL(SNDCTL_SEQ_PANIC, 0, TYPE_NULL) 265 IOCTL(SNDCTL_SEQ_PERCMODE, IOC_W, MK_PTR(TYPE_INT)) 266 IOCTL(SNDCTL_SEQ_RESET, 0, TYPE_NULL) 267 IOCTL(SNDCTL_SEQ_RESETSAMPLES, IOC_W, MK_PTR(TYPE_INT)) 268 IOCTL(SNDCTL_SEQ_SYNC, 0, TYPE_NULL) 269 IOCTL(SNDCTL_SEQ_TESTMIDI, IOC_W, MK_PTR(TYPE_INT)) 270 IOCTL(SNDCTL_SEQ_THRESHOLD, IOC_W, MK_PTR(TYPE_INT)) 271 IOCTL(SNDCTL_SYNTH_INFO, IOC_RW, MK_PTR(TYPE_INT)) 272 IOCTL(SNDCTL_SYNTH_MEMAVL, IOC_RW, MK_PTR(TYPE_INT)) 273 IOCTL(SNDCTL_TMR_CONTINUE, 0, TYPE_NULL) 274 IOCTL(SNDCTL_TMR_METRONOME, IOC_W, MK_PTR(TYPE_INT)) 275 IOCTL(SNDCTL_TMR_SELECT, IOC_W, MK_PTR(TYPE_INT)) 276 IOCTL(SNDCTL_TMR_SOURCE, IOC_RW, MK_PTR(TYPE_INT)) 277 #if 0 278 /* we invalidate these defines because they have a same number as 279 termios ioctls */ 280 IOCTL(SNDCTL_TMR_START, 0, TYPE_NULL) 281 IOCTL(SNDCTL_TMR_STOP, 0, TYPE_NULL) 282 #endif 283 IOCTL(SNDCTL_TMR_TEMPO, IOC_RW, MK_PTR(TYPE_INT)) 284 IOCTL(SNDCTL_TMR_TIMEBASE, IOC_RW, MK_PTR(TYPE_INT)) 285 286 IOCTL(SOUND_PCM_WRITE_FILTER, IOC_W | IOC_R, MK_PTR(TYPE_INT)) 287 IOCTL(SOUND_PCM_READ_RATE, IOC_R, MK_PTR(TYPE_INT)) 288 IOCTL(SOUND_PCM_READ_CHANNELS, IOC_R, MK_PTR(TYPE_INT)) 289 IOCTL(SOUND_PCM_READ_BITS, IOC_R, MK_PTR(TYPE_INT)) 290 IOCTL(SOUND_PCM_READ_FILTER, IOC_R, MK_PTR(TYPE_INT)) 291 #endif 292 IOCTL(SOUND_MIXER_INFO, IOC_R, MK_PTR(TYPE_INT)) 293 IOCTL(SOUND_MIXER_ACCESS, 0, TYPE_PTRVOID) 294 IOCTL(SOUND_MIXER_PRIVATE1, IOC_RW, MK_PTR(TYPE_INT)) 295 IOCTL(SOUND_MIXER_PRIVATE2, IOC_RW, MK_PTR(TYPE_INT)) 296 IOCTL(SOUND_MIXER_PRIVATE3, IOC_RW, MK_PTR(TYPE_INT)) 297 IOCTL(SOUND_MIXER_PRIVATE4, IOC_RW, MK_PTR(TYPE_INT)) 298 IOCTL(SOUND_MIXER_PRIVATE5, IOC_RW, MK_PTR(TYPE_INT)) 299 IOCTL(SOUND_MIXER_READ_VOLUME, IOC_R, MK_PTR(TYPE_INT)) 300 IOCTL(SOUND_MIXER_READ_BASS, IOC_R, MK_PTR(TYPE_INT)) 301 IOCTL(SOUND_MIXER_READ_TREBLE, IOC_R, MK_PTR(TYPE_INT)) 302 IOCTL(SOUND_MIXER_READ_SYNTH, IOC_R, MK_PTR(TYPE_INT)) 303 IOCTL(SOUND_MIXER_READ_PCM, IOC_R, MK_PTR(TYPE_INT)) 304 IOCTL(SOUND_MIXER_READ_SPEAKER, IOC_R, MK_PTR(TYPE_INT)) 305 IOCTL(SOUND_MIXER_READ_LINE, IOC_R, MK_PTR(TYPE_INT)) 306 IOCTL(SOUND_MIXER_READ_MIC, IOC_R, MK_PTR(TYPE_INT)) 307 IOCTL(SOUND_MIXER_READ_CD, IOC_R, MK_PTR(TYPE_INT)) 308 IOCTL(SOUND_MIXER_READ_IMIX, IOC_R, MK_PTR(TYPE_INT)) 309 IOCTL(SOUND_MIXER_READ_ALTPCM, IOC_R, MK_PTR(TYPE_INT)) 310 IOCTL(SOUND_MIXER_READ_RECLEV, IOC_R, MK_PTR(TYPE_INT)) 311 IOCTL(SOUND_MIXER_READ_IGAIN, IOC_R, MK_PTR(TYPE_INT)) 312 IOCTL(SOUND_MIXER_READ_OGAIN, IOC_R, MK_PTR(TYPE_INT)) 313 IOCTL(SOUND_MIXER_READ_LINE1, IOC_R, MK_PTR(TYPE_INT)) 314 IOCTL(SOUND_MIXER_READ_LINE2, IOC_R, MK_PTR(TYPE_INT)) 315 IOCTL(SOUND_MIXER_READ_LINE3, IOC_R, MK_PTR(TYPE_INT)) 316 IOCTL(SOUND_MIXER_READ_MUTE, IOC_R, MK_PTR(TYPE_INT)) 317 IOCTL(SOUND_MIXER_READ_ENHANCE, IOC_R, MK_PTR(TYPE_INT)) 318 IOCTL(SOUND_MIXER_READ_LOUD, IOC_R, MK_PTR(TYPE_INT)) 319 IOCTL(SOUND_MIXER_READ_RECSRC, IOC_R, MK_PTR(TYPE_INT)) 320 IOCTL(SOUND_MIXER_READ_DEVMASK, IOC_R, MK_PTR(TYPE_INT)) 321 IOCTL(SOUND_MIXER_READ_RECMASK, IOC_R, MK_PTR(TYPE_INT)) 322 IOCTL(SOUND_MIXER_READ_STEREODEVS, IOC_R, MK_PTR(TYPE_INT)) 323 IOCTL(SOUND_MIXER_READ_CAPS, IOC_R, MK_PTR(TYPE_INT)) 324 325 IOCTL(SOUND_MIXER_WRITE_VOLUME, IOC_W, MK_PTR(TYPE_INT)) 326 IOCTL(SOUND_MIXER_WRITE_BASS, IOC_W, MK_PTR(TYPE_INT)) 327 IOCTL(SOUND_MIXER_WRITE_TREBLE, IOC_W, MK_PTR(TYPE_INT)) 328 IOCTL(SOUND_MIXER_WRITE_SYNTH, IOC_W, MK_PTR(TYPE_INT)) 329 IOCTL(SOUND_MIXER_WRITE_PCM, IOC_W, MK_PTR(TYPE_INT)) 330 IOCTL(SOUND_MIXER_WRITE_SPEAKER, IOC_W, MK_PTR(TYPE_INT)) 331 IOCTL(SOUND_MIXER_WRITE_LINE, IOC_W, MK_PTR(TYPE_INT)) 332 IOCTL(SOUND_MIXER_WRITE_MIC, IOC_W, MK_PTR(TYPE_INT)) 333 IOCTL(SOUND_MIXER_WRITE_CD, IOC_W, MK_PTR(TYPE_INT)) 334 IOCTL(SOUND_MIXER_WRITE_IMIX, IOC_W, MK_PTR(TYPE_INT)) 335 IOCTL(SOUND_MIXER_WRITE_ALTPCM, IOC_W, MK_PTR(TYPE_INT)) 336 IOCTL(SOUND_MIXER_WRITE_RECLEV, IOC_W, MK_PTR(TYPE_INT)) 337 IOCTL(SOUND_MIXER_WRITE_IGAIN, IOC_W, MK_PTR(TYPE_INT)) 338 IOCTL(SOUND_MIXER_WRITE_OGAIN, IOC_W, MK_PTR(TYPE_INT)) 339 IOCTL(SOUND_MIXER_WRITE_LINE1, IOC_W, MK_PTR(TYPE_INT)) 340 IOCTL(SOUND_MIXER_WRITE_LINE2, IOC_W, MK_PTR(TYPE_INT)) 341 IOCTL(SOUND_MIXER_WRITE_LINE3, IOC_W, MK_PTR(TYPE_INT)) 342 IOCTL(SOUND_MIXER_WRITE_MUTE, IOC_W, MK_PTR(TYPE_INT)) 343 IOCTL(SOUND_MIXER_WRITE_ENHANCE, IOC_W, MK_PTR(TYPE_INT)) 344 IOCTL(SOUND_MIXER_WRITE_LOUD, IOC_W, MK_PTR(TYPE_INT)) 345 IOCTL(SOUND_MIXER_WRITE_RECSRC, IOC_W, MK_PTR(TYPE_INT)) 346 347 IOCTL(HDIO_GETGEO, IOC_R, MK_PTR(MK_STRUCT(STRUCT_hd_geometry))) 348 IOCTL(HDIO_GET_UNMASKINTR, IOC_R, MK_PTR(TYPE_INT)) 349 IOCTL(HDIO_GET_MULTCOUNT, IOC_R, MK_PTR(TYPE_INT)) 350 IOCTL(HDIO_GET_IDENTITY, IOC_R, MK_PTR(TYPE_INT)) 351 IOCTL(HDIO_GET_KEEPSETTINGS, IOC_R, MK_PTR(TYPE_INT)) 352 IOCTL(HDIO_GET_NOWERR, IOC_R, MK_PTR(TYPE_INT)) 353 IOCTL(HDIO_GET_DMA, IOC_R, MK_PTR(TYPE_INT)) 354 IOCTL(HDIO_GET_32BIT, IOC_R, MK_PTR(TYPE_INT)) 355 IOCTL(HDIO_DRIVE_CMD, IOC_R, MK_PTR(TYPE_INT)) 356 IOCTL(HDIO_SET_UNMASKINTR, 0, TYPE_INT) 357 IOCTL(HDIO_SET_MULTCOUNT, 0, TYPE_INT) 358 IOCTL(HDIO_SET_KEEPSETTINGS, 0, TYPE_INT) 359 IOCTL(HDIO_SET_NOWERR, 0, TYPE_INT) 360 IOCTL(HDIO_SET_DMA, 0, TYPE_INT) 361 IOCTL(HDIO_SET_32BIT, 0, TYPE_INT) 362 IOCTL(HDIO_SET_PIO_MODE, 0, TYPE_INT) 363 364 IOCTL(VFAT_IOCTL_READDIR_BOTH, IOC_R, MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_dirent), 2))) 365 IOCTL(VFAT_IOCTL_READDIR_SHORT, IOC_R, MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_dirent), 2))) 366 367 IOCTL(LOOP_SET_FD, 0, TYPE_INT) 368 IOCTL(LOOP_CLR_FD, 0, TYPE_INT) 369 IOCTL(LOOP_SET_STATUS, IOC_W, MK_PTR(MK_STRUCT(STRUCT_loop_info))) 370 IOCTL(LOOP_GET_STATUS, IOC_R, MK_PTR(MK_STRUCT(STRUCT_loop_info))) 371 IOCTL(LOOP_SET_STATUS64, IOC_W, MK_PTR(MK_STRUCT(STRUCT_loop_info64))) 372 IOCTL(LOOP_GET_STATUS64, IOC_R, MK_PTR(MK_STRUCT(STRUCT_loop_info64))) 373 IOCTL(LOOP_CHANGE_FD, 0, TYPE_INT) 374 375 IOCTL(LOOP_CTL_ADD, 0, TYPE_INT) 376 IOCTL(LOOP_CTL_REMOVE, 0, TYPE_INT) 377 IOCTL(LOOP_CTL_GET_FREE, 0, TYPE_NULL) 378 379 IOCTL(MTIOCTOP, IOC_W, MK_PTR(MK_STRUCT(STRUCT_mtop))) 380 IOCTL(MTIOCGET, IOC_R, MK_PTR(MK_STRUCT(STRUCT_mtget))) 381 IOCTL(MTIOCPOS, IOC_R, MK_PTR(MK_STRUCT(STRUCT_mtpos))) 382 383 IOCTL(FBIOGET_FSCREENINFO, IOC_R, MK_PTR(MK_STRUCT(STRUCT_fb_fix_screeninfo))) 384 IOCTL(FBIOGET_VSCREENINFO, IOC_R, MK_PTR(MK_STRUCT(STRUCT_fb_var_screeninfo))) 385 IOCTL(FBIOPUT_VSCREENINFO, IOC_W, MK_PTR(MK_STRUCT(STRUCT_fb_var_screeninfo))) 386 IOCTL(FBIOGETCMAP, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_fb_cmap))) 387 IOCTL(FBIOPUTCMAP, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_fb_cmap))) 388 IOCTL(FBIOPAN_DISPLAY, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_fb_var_screeninfo))) 389 IOCTL(FBIOGET_CON2FBMAP, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_fb_con2fbmap))) 390 IOCTL(FBIOPUT_CON2FBMAP, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_fb_con2fbmap))) 391 392 IOCTL(VT_OPENQRY, IOC_R, MK_PTR(TYPE_INT)) 393 IOCTL(VT_GETSTATE, IOC_R, MK_PTR(MK_STRUCT(STRUCT_vt_stat))) 394 IOCTL(VT_ACTIVATE, 0, TYPE_INT) 395 IOCTL(VT_WAITACTIVE, 0, TYPE_INT) 396 IOCTL(VT_LOCKSWITCH, 0, TYPE_INT) 397 IOCTL(VT_UNLOCKSWITCH, 0, TYPE_INT) 398 IOCTL(VT_GETMODE, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_vt_mode))) 399 IOCTL(VT_SETMODE, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_vt_mode))) 400 IOCTL(VT_RELDISP, 0, TYPE_INT) 401 IOCTL(VT_DISALLOCATE, 0, TYPE_INT) 402 403 IOCTL(DM_VERSION, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 404 IOCTL_SPECIAL(DM_REMOVE_ALL, IOC_RW, do_ioctl_dm, 405 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 406 IOCTL_SPECIAL(DM_LIST_DEVICES, IOC_RW, do_ioctl_dm, 407 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 408 IOCTL_SPECIAL(DM_DEV_CREATE, IOC_RW, do_ioctl_dm, 409 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 410 IOCTL_SPECIAL(DM_DEV_REMOVE, IOC_RW, do_ioctl_dm, 411 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 412 IOCTL_SPECIAL(DM_DEV_RENAME, IOC_RW, do_ioctl_dm, 413 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 414 IOCTL_SPECIAL(DM_DEV_SUSPEND, IOC_RW, do_ioctl_dm, 415 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 416 IOCTL_SPECIAL(DM_DEV_STATUS, IOC_RW, do_ioctl_dm, 417 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 418 IOCTL_SPECIAL(DM_DEV_WAIT, IOC_RW, do_ioctl_dm, 419 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 420 IOCTL_SPECIAL(DM_TABLE_LOAD, IOC_RW, do_ioctl_dm, 421 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 422 IOCTL_SPECIAL(DM_TABLE_CLEAR, IOC_RW, do_ioctl_dm, 423 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 424 IOCTL_SPECIAL(DM_TABLE_DEPS, IOC_RW, do_ioctl_dm, 425 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 426 IOCTL_SPECIAL(DM_TABLE_STATUS, IOC_RW, do_ioctl_dm, 427 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 428 IOCTL_SPECIAL(DM_LIST_VERSIONS,IOC_RW, do_ioctl_dm, 429 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 430 IOCTL_SPECIAL(DM_TARGET_MSG, IOC_RW, do_ioctl_dm, 431 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 432 IOCTL_SPECIAL(DM_DEV_SET_GEOMETRY, IOC_RW, do_ioctl_dm, 433 MK_PTR(MK_STRUCT(STRUCT_dm_ioctl))) 434 IOCTL_SPECIAL(SIOCADDRT, IOC_W, do_ioctl_rt, 435 MK_PTR(MK_STRUCT(STRUCT_rtentry))) 436 IOCTL_SPECIAL(SIOCDELRT, IOC_W, do_ioctl_rt, 437 MK_PTR(MK_STRUCT(STRUCT_rtentry))) 438 439 #ifdef TARGET_TIOCSTART 440 IOCTL_IGNORE(TIOCSTART) 441 IOCTL_IGNORE(TIOCSTOP) 442 #endif 443