The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/compat/linux/linux_ioctl.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 1999 Marcel Moolenaar
    3  * All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer 
   10  *    in this position and unchanged.
   11  * 2. Redistributions in binary form must reproduce the above copyright
   12  *    notice, this list of conditions and the following disclaimer in the
   13  *    documentation and/or other materials provided with the distribution.
   14  * 3. The name of the author may not be used to endorse or promote products
   15  *    derived from this software without specific prior written permission.
   16  *
   17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   19  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   20  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   22  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   27  *
   28  * $FreeBSD: releng/6.1/sys/compat/linux/linux_ioctl.h 139743 2005-01-05 22:34:37Z imp $
   29  */
   30 
   31 #ifndef _LINUX_IOCTL_H_
   32 #define _LINUX_IOCTL_H_
   33 
   34 /*
   35  * disk
   36  */
   37 #define LINUX_BLKROSET          0x125d
   38 #define LINUX_BLKROGET          0x125e
   39 #define LINUX_BLKRRPART         0x125f
   40 #define LINUX_BLKGETSIZE        0x1260
   41 #define LINUX_BLKFLSBUF         0x1261
   42 #define LINUX_BLKRASET          0x1262
   43 #define LINUX_BLKRAGET          0x1263
   44 #define LINUX_BLKFRASET         0x1264
   45 #define LINUX_BLKFRAGET         0x1265
   46 #define LINUX_BLKSECTSET        0x1266
   47 #define LINUX_BLKSECTGET        0x1267
   48 #define LINUX_BLKSSZGET         0x1268
   49 
   50 #define LINUX_IOCTL_DISK_MIN    LINUX_BLKROSET
   51 #define LINUX_IOCTL_DISK_MAX    LINUX_BLKSSZGET
   52 
   53 /*
   54  * hdio
   55  */
   56 #define LINUX_HDIO_GET_GEO      0x0301
   57 #define LINUX_HDIO_GET_IDENTITY 0x030D  /* not yet implemented */
   58 #define LINUX_HDIO_GET_GEO_BIG  0x0330
   59 
   60 #define LINUX_IOCTL_HDIO_MIN    LINUX_HDIO_GET_GEO
   61 #define LINUX_IOCTL_HDIO_MAX    LINUX_HDIO_GET_GEO_BIG
   62 
   63 /*
   64  * cdrom
   65  */
   66 #define LINUX_CDROMPAUSE                0x5301
   67 #define LINUX_CDROMRESUME               0x5302
   68 #define LINUX_CDROMPLAYMSF              0x5303
   69 #define LINUX_CDROMPLAYTRKIND           0x5304
   70 #define LINUX_CDROMREADTOCHDR           0x5305
   71 #define LINUX_CDROMREADTOCENTRY         0x5306
   72 #define LINUX_CDROMSTOP                 0x5307
   73 #define LINUX_CDROMSTART                0x5308
   74 #define LINUX_CDROMEJECT                0x5309
   75 #define LINUX_CDROMVOLCTRL              0x530a
   76 #define LINUX_CDROMSUBCHNL              0x530b
   77 #define LINUX_CDROMREADMODE2            0x530c
   78 #define LINUX_CDROMREADMODE1            0x530d
   79 #define LINUX_CDROMREADAUDIO            0x530e
   80 #define LINUX_CDROMEJECT_SW             0x530f
   81 #define LINUX_CDROMMULTISESSION         0x5310
   82 #define LINUX_CDROM_GET_UPC             0x5311
   83 #define LINUX_CDROMRESET                0x5312
   84 #define LINUX_CDROMVOLREAD              0x5313
   85 #define LINUX_CDROMREADRAW              0x5314
   86 #define LINUX_CDROMREADCOOKED           0x5315
   87 #define LINUX_CDROMSEEK                 0x5316
   88 #define LINUX_CDROMPLAYBLK              0x5317
   89 #define LINUX_CDROMREADALL              0x5318
   90 #define LINUX_CDROMCLOSETRAY            0x5319
   91 #define LINUX_CDROMLOADFROMSLOT         0x531a
   92 #define LINUX_CDROMGETSPINDOWN          0x531d
   93 #define LINUX_CDROMSETSPINDOWN          0x531e
   94 #define LINUX_CDROM_SET_OPTIONS         0x5320
   95 #define LINUX_CDROM_CLEAR_OPTIONS       0x5321
   96 #define LINUX_CDROM_SELECT_SPEED        0x5322
   97 #define LINUX_CDROM_SELECT_DISC         0x5323
   98 #define LINUX_CDROM_MEDIA_CHANGED       0x5325
   99 #define LINUX_CDROM_DRIVE_STATUS        0x5326
  100 #define LINUX_CDROM_DISC_STATUS         0x5327
  101 #define LINUX_CDROM_CHANGER_NSLOTS      0x5328
  102 #define LINUX_CDROM_LOCKDOOR            0x5329
  103 #define LINUX_CDROM_DEBUG               0x5330
  104 #define LINUX_CDROM_GET_CAPABILITY      0x5331
  105 #define LINUX_CDROMAUDIOBUFSIZ          0x5382
  106 #define LINUX_DVD_READ_STRUCT           0x5390
  107 #define LINUX_DVD_WRITE_STRUCT          0x5391
  108 #define LINUX_DVD_AUTH                  0x5392
  109 #define LINUX_CDROM_SEND_PACKET         0x5393
  110 #define LINUX_CDROM_NEXT_WRITABLE       0x5394
  111 #define LINUX_CDROM_LAST_WRITTEN        0x5395
  112 
  113 #define LINUX_IOCTL_CDROM_MIN   LINUX_CDROMPAUSE
  114 #define LINUX_IOCTL_CDROM_MAX   LINUX_CDROM_LAST_WRITTEN
  115 
  116 #define LINUX_CDROM_LBA         0x01
  117 #define LINUX_CDROM_MSF         0x02
  118 
  119 #define LINUX_DVD_LU_SEND_AGID          0
  120 #define LINUX_DVD_HOST_SEND_CHALLENGE   1
  121 #define LINUX_DVD_LU_SEND_KEY1          2
  122 #define LINUX_DVD_LU_SEND_CHALLENGE     3
  123 #define LINUX_DVD_HOST_SEND_KEY2        4
  124 #define LINUX_DVD_AUTH_ESTABLISHED      5
  125 #define LINUX_DVD_AUTH_FAILURE          6
  126 #define LINUX_DVD_LU_SEND_TITLE_KEY     7
  127 #define LINUX_DVD_LU_SEND_ASF           8
  128 #define LINUX_DVD_INVALIDATE_AGID       9
  129 #define LINUX_DVD_LU_SEND_RPC_STATE     10
  130 #define LINUX_DVD_HOST_SEND_RPC_STATE   11
  131 
  132 /*
  133  * VFAT
  134  */
  135 #define LINUX_VFAT_READDIR_BOTH 0x7201
  136 
  137 #define LINUX_IOCTL_VFAT_MIN    LINUX_VFAT_READDIR_BOTH
  138 #define LINUX_IOCTL_VFAT_MAX    LINUX_VFAT_READDIR_BOTH
  139 
  140 /*
  141  * console
  142  */
  143 #define LINUX_KIOCSOUND         0x4B2F
  144 #define LINUX_KDMKTONE          0x4B30
  145 #define LINUX_KDGETLED          0x4B31
  146 #define LINUX_KDSETLED          0x4B32
  147 #define LINUX_KDSETMODE         0x4B3A
  148 #define LINUX_KDGETMODE         0x4B3B
  149 #define LINUX_KDGKBMODE         0x4B44
  150 #define LINUX_KDSKBMODE         0x4B45
  151 #define LINUX_VT_OPENQRY        0x5600
  152 #define LINUX_VT_GETMODE        0x5601
  153 #define LINUX_VT_SETMODE        0x5602
  154 #define LINUX_VT_GETSTATE       0x5603
  155 #define LINUX_VT_RELDISP        0x5605
  156 #define LINUX_VT_ACTIVATE       0x5606  
  157 #define LINUX_VT_WAITACTIVE     0x5607
  158 
  159 #define LINUX_IOCTL_CONSOLE_MIN LINUX_KIOCSOUND
  160 #define LINUX_IOCTL_CONSOLE_MAX LINUX_VT_WAITACTIVE
  161 
  162 #define LINUX_LED_SCR           0x01
  163 #define LINUX_LED_NUM           0x02
  164 #define LINUX_LED_CAP           0x04
  165 
  166 #define LINUX_KD_TEXT           0x0
  167 #define LINUX_KD_GRAPHICS       0x1
  168 #define LINUX_KD_TEXT0          0x2
  169 #define LINUX_KD_TEXT1          0x3
  170 
  171 #define LINUX_KBD_RAW           0
  172 #define LINUX_KBD_XLATE         1
  173 #define LINUX_KBD_MEDIUMRAW     2
  174 
  175 /*
  176  * socket
  177  */
  178 #define LINUX_FIOSETOWN         0x8901
  179 #define LINUX_SIOCSPGRP         0x8902
  180 #define LINUX_FIOGETOWN         0x8903
  181 #define LINUX_SIOCGPGRP         0x8904
  182 #define LINUX_SIOCATMARK        0x8905
  183 #define LINUX_SIOCGSTAMP        0x8906
  184 #define LINUX_SIOCGIFCONF       0x8912
  185 #define LINUX_SIOCGIFFLAGS      0x8913
  186 #define LINUX_SIOCGIFADDR       0x8915
  187 #define LINUX_SIOCSIFADDR       0x8916
  188 #define LINUX_SIOCGIFDSTADDR    0x8917
  189 #define LINUX_SIOCGIFBRDADDR    0x8919
  190 #define LINUX_SIOCGIFNETMASK    0x891b
  191 #define LINUX_SIOCSIFNETMASK    0x891c
  192 #define LINUX_SIOCGIFMTU        0x8921
  193 #define LINUX_SIOCSIFMTU        0x8922
  194 #define LINUX_SIOCSIFNAME       0x8923
  195 #define LINUX_SIOCSIFHWADDR     0x8924
  196 #define LINUX_SIOCGIFHWADDR     0x8927
  197 #define LINUX_SIOCADDMULTI      0x8931
  198 #define LINUX_SIOCDELMULTI      0x8932
  199 
  200 #define LINUX_IOCTL_SOCKET_MIN  LINUX_FIOSETOWN
  201 #define LINUX_IOCTL_SOCKET_MAX  LINUX_SIOCDELMULTI
  202 
  203 /*
  204  * Device private ioctl calls 
  205  */
  206 #define LINUX_SIOCDEVPRIVATE    0x89F0  /* to 89FF */
  207 #define LINUX_IOCTL_PRIVATE_MIN LINUX_SIOCDEVPRIVATE
  208 #define LINUX_IOCTL_PRIVATE_MAX LINUX_SIOCDEVPRIVATE+0xf
  209 
  210 /*
  211  * sound
  212  */
  213 #define LINUX_SOUND_MIXER_WRITE_VOLUME  0x4d00
  214 #define LINUX_SOUND_MIXER_WRITE_BASS    0x4d01
  215 #define LINUX_SOUND_MIXER_WRITE_TREBLE  0x4d02
  216 #define LINUX_SOUND_MIXER_WRITE_SYNTH   0x4d03
  217 #define LINUX_SOUND_MIXER_WRITE_PCM     0x4d04
  218 #define LINUX_SOUND_MIXER_WRITE_SPEAKER 0x4d05
  219 #define LINUX_SOUND_MIXER_WRITE_LINE    0x4d06
  220 #define LINUX_SOUND_MIXER_WRITE_MIC     0x4d07
  221 #define LINUX_SOUND_MIXER_WRITE_CD      0x4d08
  222 #define LINUX_SOUND_MIXER_WRITE_IMIX    0x4d09
  223 #define LINUX_SOUND_MIXER_WRITE_ALTPCM  0x4d0A
  224 #define LINUX_SOUND_MIXER_WRITE_RECLEV  0x4d0B
  225 #define LINUX_SOUND_MIXER_WRITE_IGAIN   0x4d0C
  226 #define LINUX_SOUND_MIXER_WRITE_OGAIN   0x4d0D
  227 #define LINUX_SOUND_MIXER_WRITE_LINE1   0x4d0E
  228 #define LINUX_SOUND_MIXER_WRITE_LINE2   0x4d0F
  229 #define LINUX_SOUND_MIXER_WRITE_LINE3   0x4d10
  230 #define LINUX_SOUND_MIXER_INFO          0x4d65
  231 #define LINUX_OSS_GETVERSION            0x4d76
  232 #define LINUX_SOUND_MIXER_READ_STEREODEVS       0x4dfb
  233 #define LINUX_SOUND_MIXER_READ_RECMASK  0x4dfd
  234 #define LINUX_SOUND_MIXER_READ_DEVMASK  0x4dfe
  235 #define LINUX_SOUND_MIXER_WRITE_RECSRC  0x4dff
  236 #define LINUX_SNDCTL_DSP_RESET          0x5000
  237 #define LINUX_SNDCTL_DSP_SYNC           0x5001
  238 #define LINUX_SNDCTL_DSP_SPEED          0x5002
  239 #define LINUX_SNDCTL_DSP_STEREO         0x5003
  240 #define LINUX_SNDCTL_DSP_GETBLKSIZE     0x5004
  241 #define LINUX_SNDCTL_DSP_SETBLKSIZE     LINUX_SNDCTL_DSP_GETBLKSIZE
  242 #define LINUX_SNDCTL_DSP_SETFMT         0x5005
  243 #define LINUX_SOUND_PCM_WRITE_CHANNELS  0x5006
  244 #define LINUX_SOUND_PCM_WRITE_FILTER    0x5007
  245 #define LINUX_SNDCTL_DSP_POST           0x5008
  246 #define LINUX_SNDCTL_DSP_SUBDIVIDE      0x5009
  247 #define LINUX_SNDCTL_DSP_SETFRAGMENT    0x500A
  248 #define LINUX_SNDCTL_DSP_GETFMTS        0x500B
  249 #define LINUX_SNDCTL_DSP_GETOSPACE      0x500C
  250 #define LINUX_SNDCTL_DSP_GETISPACE      0x500D
  251 #define LINUX_SNDCTL_DSP_NONBLOCK       0x500E
  252 #define LINUX_SNDCTL_DSP_GETCAPS        0x500F
  253 #define LINUX_SNDCTL_DSP_GETTRIGGER     0x5010
  254 #define LINUX_SNDCTL_DSP_SETTRIGGER     LINUX_SNDCTL_DSP_GETTRIGGER
  255 #define LINUX_SNDCTL_DSP_GETIPTR        0x5011
  256 #define LINUX_SNDCTL_DSP_GETOPTR        0x5012
  257 #define LINUX_SNDCTL_DSP_SETDUPLEX      0x5016
  258 #define LINUX_SNDCTL_DSP_GETODELAY      0x5017
  259 #define LINUX_SNDCTL_SEQ_RESET          0x5100
  260 #define LINUX_SNDCTL_SEQ_SYNC           0x5101
  261 #define LINUX_SNDCTL_SYNTH_INFO         0x5102
  262 #define LINUX_SNDCTL_SEQ_CTRLRATE       0x5103
  263 #define LINUX_SNDCTL_SEQ_GETOUTCOUNT    0x5104
  264 #define LINUX_SNDCTL_SEQ_GETINCOUNT     0x5105
  265 #define LINUX_SNDCTL_SEQ_PERCMODE       0x5106
  266 #define LINUX_SNDCTL_FM_LOAD_INSTR      0x5107
  267 #define LINUX_SNDCTL_SEQ_TESTMIDI       0x5108
  268 #define LINUX_SNDCTL_SEQ_RESETSAMPLES   0x5109
  269 #define LINUX_SNDCTL_SEQ_NRSYNTHS       0x510A
  270 #define LINUX_SNDCTL_SEQ_NRMIDIS        0x510B
  271 #define LINUX_SNDCTL_MIDI_INFO          0x510C
  272 #define LINUX_SNDCTL_SEQ_TRESHOLD       0x510D
  273 #define LINUX_SNDCTL_SYNTH_MEMAVL       0x510E
  274 
  275 #define LINUX_IOCTL_SOUND_MIN   LINUX_SOUND_MIXER_WRITE_VOLUME
  276 #define LINUX_IOCTL_SOUND_MAX   LINUX_SNDCTL_SYNTH_MEMAVL
  277 
  278 /*
  279  * termio
  280  */
  281 #ifdef __alpha__
  282 #define LINUX_TCGETS            0x7413
  283 #define LINUX_TCSETS            0x7414
  284 #define LINUX_TCSETSW           0x7415
  285 #define LINUX_TCSETSF           0x7416
  286 #define LINUX_TCGETA            0x7417
  287 #define LINUX_TCSETA            0x7418
  288 #define LINUX_TCSETAW           0x7419
  289 #define LINUX_TCSETAF           0x741c
  290 #define LINUX_TCSBRK            0x741d
  291 #define LINUX_TCXONC            0x741e
  292 #define LINUX_TCFLSH            0x741f
  293 #else
  294 #define LINUX_TCGETS            0x5401
  295 #define LINUX_TCSETS            0x5402
  296 #define LINUX_TCSETSW           0x5403
  297 #define LINUX_TCSETSF           0x5404
  298 #define LINUX_TCGETA            0x5405
  299 #define LINUX_TCSETA            0x5406
  300 #define LINUX_TCSETAW           0x5407
  301 #define LINUX_TCSETAF           0x5408
  302 #define LINUX_TCSBRK            0x5409
  303 #define LINUX_TCXONC            0x540A
  304 #define LINUX_TCFLSH            0x540B
  305 #endif
  306 
  307 #define LINUX_TIOCEXCL          0x540C
  308 #define LINUX_TIOCNXCL          0x540D
  309 #define LINUX_TIOCSCTTY         0x540E
  310 
  311 #ifdef __alpha__
  312 #define LINUX_TIOCSPGRP         0x7476
  313 #define LINUX_TIOCGPGRP         0x7477
  314 #else
  315 #define LINUX_TIOCGPGRP         0x540F
  316 #define LINUX_TIOCSPGRP         0x5410
  317 #endif
  318 
  319 #define LINUX_TIOCOUTQ          0x5411
  320 #define LINUX_TIOCSTI           0x5412
  321 
  322 #ifdef __alpha__
  323 #define LINUX_TIOCSWINSZ        0x7467
  324 #define LINUX_TIOCGWINSZ        0x7468
  325 #else
  326 #define LINUX_TIOCGWINSZ        0x5413
  327 #define LINUX_TIOCSWINSZ        0x5414
  328 #endif
  329 
  330 #define LINUX_TIOCMGET          0x5415
  331 #define LINUX_TIOCMBIS          0x5416
  332 #define LINUX_TIOCMBIC          0x5417
  333 #define LINUX_TIOCMSET          0x5418
  334 #define LINUX_TIOCGSOFTCAR      0x5419
  335 #define LINUX_TIOCSSOFTCAR      0x541A
  336 
  337 #ifdef __alpha__
  338 #define LINUX_FIONREAD          0x667f
  339 #else
  340 #define LINUX_FIONREAD          0x541B
  341 #endif
  342 
  343 #define LINUX_TIOCINQ           FIONREAD
  344 #define LINUX_TIOCLINUX         0x541C
  345 #define LINUX_TIOCCONS          0x541D
  346 #define LINUX_TIOCGSERIAL       0x541E
  347 #define LINUX_TIOCSSERIAL       0x541F
  348 #define LINUX_TIOCPKT           0x5420
  349 
  350 #ifdef __alpha__
  351 #define LINUX_FIONBIO           0x667e
  352 #else
  353 #define LINUX_FIONBIO           0x5421
  354 #endif
  355 
  356 #define LINUX_TIOCNOTTY         0x5422
  357 #define LINUX_TIOCSETD          0x5423
  358 #define LINUX_TIOCGETD          0x5424
  359 #define LINUX_TCSBRKP           0x5425
  360 #define LINUX_TIOCTTYGSTRUCT    0x5426
  361 
  362 #define LINUX_TIOCSBRK          0x5427
  363 #define LINUX_TIOCCBRK          0x5428
  364 
  365 #ifdef __alpha__
  366 #define LINUX_FIOCLEX           0x6601
  367 #define LINUX_FIONCLEX          0x6602
  368 #define LINUX_FIOASYNC          0x667d
  369 #else
  370 #define LINUX_FIONCLEX          0x5450
  371 #define LINUX_FIOCLEX           0x5451
  372 #define LINUX_FIOASYNC          0x5452
  373 #endif
  374 
  375 #define LINUX_TIOCSERCONFIG     0x5453
  376 #define LINUX_TIOCSERGWILD      0x5454
  377 #define LINUX_TIOCSERSWILD      0x5455
  378 #define LINUX_TIOCGLCKTRMIOS    0x5456
  379 #define LINUX_TIOCSLCKTRMIOS    0x5457
  380 
  381 #ifdef __alpha__
  382 #define LINUX_IOCTL_TERMIO_MIN  LINUX_TIOCEXCL
  383 #define LINUX_IOCTL_TERMIO_MAX  LINUX_TIOCGPGRP
  384 #else
  385 #define LINUX_IOCTL_TERMIO_MIN  LINUX_TCGETS
  386 #define LINUX_IOCTL_TERMIO_MAX  LINUX_TIOCSLCKTRMIOS
  387 #endif
  388 
  389 /* arguments for tcflow() and LINUX_TCXONC */
  390 #define LINUX_TCOOFF            0
  391 #define LINUX_TCOON             1
  392 #define LINUX_TCIOFF            2
  393 #define LINUX_TCION             3
  394 
  395 /* arguments for tcflush() and LINUX_TCFLSH */
  396 #define LINUX_TCIFLUSH          0
  397 #define LINUX_TCOFLUSH          1
  398 #define LINUX_TCIOFLUSH         2
  399 
  400 /* line disciplines */
  401 #define LINUX_N_TTY             0
  402 #define LINUX_N_SLIP            1
  403 #define LINUX_N_MOUSE           2
  404 #define LINUX_N_PPP             3
  405 
  406 /* Linux termio c_cc values */
  407 #ifdef __alpha__
  408 #define LINUX__VINTR            0
  409 #define LINUX__VQUIT            1
  410 #define LINUX__VERASE           2
  411 #define LINUX__VKILL            3
  412 #define LINUX__VEOF             4
  413 #define LINUX__VMIN             4
  414 #define LINUX__VEOL             5
  415 #define LINUX__VTIME            5
  416 #define LINUX__VEOL2            6
  417 #define LINUX__VSWTC            7
  418 #else
  419 #define LINUX_VINTR             0
  420 #define LINUX_VQUIT             1
  421 #define LINUX_VERASE            2
  422 #define LINUX_VKILL             3
  423 #define LINUX_VEOF              4
  424 #define LINUX_VTIME             5
  425 #define LINUX_VMIN              6
  426 #define LINUX_VSWTC             7
  427 #endif
  428 #define LINUX_NCC               8
  429 
  430 /* Linux termios c_cc values */
  431 #ifdef __alpha__
  432 #define LINUX_VEOF              0
  433 #define LINUX_VEOL              1
  434 #define LINUX_VEOL2             2
  435 #define LINUX_VERASE            3
  436 #define LINUX_VWERASE           4
  437 #define LINUX_VKILL             5
  438 #define LINUX_VREPRINT          6
  439 #define LINUX_VSWTC             7
  440 #define LINUX_VINTR             8
  441 #define LINUX_VQUIT             9
  442 #define LINUX_VSUSP             10
  443 #define LINUX_VSTART            12
  444 #define LINUX_VSTOP             13
  445 #define LINUX_VLNEXT            14
  446 #define LINUX_VDISCARD          15
  447 #define LINUX_VMIN              16
  448 #define LINUX_VTIME             17
  449 #else
  450 /* In addition to the termio values */
  451 #define LINUX_VSTART            8
  452 #define LINUX_VSTOP             9
  453 #define LINUX_VSUSP             10
  454 #define LINUX_VEOL              11
  455 #define LINUX_VREPRINT          12
  456 #define LINUX_VDISCARD          13
  457 #define LINUX_VWERASE           14
  458 #define LINUX_VLNEXT            15
  459 #define LINUX_VEOL2             16
  460 #endif
  461 #define LINUX_NCCS              19
  462 
  463 #define LINUX_POSIX_VDISABLE    '\0'
  464 
  465 /* Linux c_iflag masks */
  466 #define LINUX_IGNBRK            0x0000001
  467 #define LINUX_BRKINT            0x0000002
  468 #define LINUX_IGNPAR            0x0000004
  469 #define LINUX_PARMRK            0x0000008
  470 #define LINUX_INPCK             0x0000010
  471 #define LINUX_ISTRIP            0x0000020
  472 #define LINUX_INLCR             0x0000040
  473 #define LINUX_IGNCR             0x0000080
  474 #define LINUX_ICRNL             0x0000100
  475 
  476 #ifdef __alpha__
  477 #define LINUX_IXON              0x0000200
  478 #define LINUX_IXOFF             0x0000400
  479 #define LINUX_IXANY             0x0000800
  480 #define LINUX_IUCLC             0x0001000
  481 #else
  482 #define LINUX_IUCLC             0x0000200
  483 #define LINUX_IXON              0x0000400
  484 #define LINUX_IXANY             0x0000800
  485 #define LINUX_IXOFF             0x0001000
  486 #endif
  487 
  488 #define LINUX_IMAXBEL           0x0002000
  489 
  490 /* Linux c_oflag masks */
  491 #define LINUX_OPOST             0x0000001
  492 
  493 #ifdef __alpha__
  494 #define LINUX_ONLCR             0x0000002
  495 #define LINUX_OLCUC             0x0000004
  496 #else
  497 #define LINUX_OLCUC             0x0000002
  498 #define LINUX_ONLCR             0x0000004
  499 #endif
  500 
  501 #define LINUX_OCRNL             0x0000008
  502 #define LINUX_ONOCR             0x0000010
  503 #define LINUX_ONLRET            0x0000020
  504 #define LINUX_OFILL             0x0000040
  505 #define LINUX_OFDEL             0x0000080
  506 
  507 #ifdef __alpha__
  508 #define LINUX_NLDLY             0x0000300
  509 #define LINUX_NL0               0x0000000
  510 #define LINUX_NL1               0x0000100
  511 #define LINUX_NL2               0x0000200
  512 #define LINUX_NL3               0x0000300
  513 #define LINUX_TABDLY            0x000C000
  514 #define LINUX_TAB0              0x0000000
  515 #define LINUX_TAB1              0x0004000
  516 #define LINUX_TAB2              0x0008000
  517 #define LINUX_TAB3              0x000C000
  518 #define LINUX_CRDLY             0x0030000
  519 #define LINUX_CR0               0x0000000
  520 #define LINUX_CR1               0x0010000
  521 #define LINUX_CR2               0x0020000
  522 #define LINUX_CR3               0x0030000
  523 #define LINUX_FFDLY             0x0040000
  524 #define LINUX_FF0               0x0000000
  525 #define LINUX_FF1               0x0040000
  526 #define LINUX_BSDLY             0x0080000
  527 #define LINUX_BS0               0x0000000
  528 #define LINUX_BS1               0x0080000
  529 #define LINUX_VTDLY             0x0100000
  530 #define LINUX_VT0               0x0000000
  531 #define LINUX_VT1               0x0100000
  532 #define LINUX_XTABS             0x0200000
  533 #else
  534 #define LINUX_NLDLY             0x0000100
  535 #define LINUX_NL0               0x0000000
  536 #define LINUX_NL1               0x0000100
  537 #define LINUX_CRDLY             0x0000600
  538 #define LINUX_CR0               0x0000000
  539 #define LINUX_CR1               0x0000200
  540 #define LINUX_CR2               0x0000400
  541 #define LINUX_CR3               0x0000600
  542 #define LINUX_TABDLY            0x0001800
  543 #define LINUX_TAB0              0x0000000
  544 #define LINUX_TAB1              0x0000800
  545 #define LINUX_TAB2              0x0001000
  546 #define LINUX_TAB3              0x0001800
  547 #define LINUX_XTABS             0x0001800
  548 #define LINUX_BSDLY             0x0002000
  549 #define LINUX_BS0               0x0000000
  550 #define LINUX_BS1               0x0002000
  551 #define LINUX_VTDLY             0x0004000
  552 #define LINUX_VT0               0x0000000
  553 #define LINUX_VT1               0x0004000
  554 #define LINUX_FFDLY             0x0008000
  555 #define LINUX_FF0               0x0000000
  556 #define LINUX_FF1               0x0008000
  557 #endif
  558 
  559 #ifdef __alpha__
  560 #define LINUX_CBAUD             0x0000001f
  561 #else
  562 #define LINUX_CBAUD             0x0000100f
  563 #endif
  564 
  565 #define LINUX_B0                0x00000000
  566 #define LINUX_B50               0x00000001
  567 #define LINUX_B75               0x00000002
  568 #define LINUX_B110              0x00000003
  569 #define LINUX_B134              0x00000004
  570 #define LINUX_B150              0x00000005
  571 #define LINUX_B200              0x00000006
  572 #define LINUX_B300              0x00000007
  573 #define LINUX_B600              0x00000008
  574 #define LINUX_B1200             0x00000009
  575 #define LINUX_B1800             0x0000000a
  576 #define LINUX_B2400             0x0000000b
  577 #define LINUX_B4800             0x0000000c
  578 #define LINUX_B9600             0x0000000d
  579 #define LINUX_B19200            0x0000000e
  580 #define LINUX_B38400            0x0000000f
  581 #define LINUX_EXTA              LINUX_B19200
  582 #define LINUX_EXTB              LINUX_B38400
  583 
  584 #ifdef __alpha__
  585 #define LINUX_CBAUDEX           0x00000000
  586 #define LINUX_B57600            0x00000010
  587 #define LINUX_B115200           0x00000011
  588 #else
  589 #define LINUX_CBAUDEX           0x00001000
  590 #define LINUX_B57600            0x00001001
  591 #define LINUX_B115200           0x00001002
  592 #endif
  593 
  594 #ifdef __alpha__
  595 #define LINUX_CSIZE             0x00000300
  596 #define LINUX_CS5               0x00000000
  597 #define LINUX_CS6               0x00000100
  598 #define LINUX_CS7               0x00000200
  599 #define LINUX_CS8               0x00000300
  600 #define LINUX_CSTOPB            0x00000400
  601 #define LINUX_CREAD             0x00000800
  602 #define LINUX_PARENB            0x00001000
  603 #define LINUX_PARODD            0x00002000
  604 #define LINUX_HUPCL             0x00004000
  605 #define LINUX_CLOCAL            0x00008000
  606 #else
  607 #define LINUX_CSIZE             0x00000030
  608 #define LINUX_CS5               0x00000000
  609 #define LINUX_CS6               0x00000010
  610 #define LINUX_CS7               0x00000020
  611 #define LINUX_CS8               0x00000030
  612 #define LINUX_CSTOPB            0x00000040
  613 #define LINUX_CREAD             0x00000080
  614 #define LINUX_PARENB            0x00000100
  615 #define LINUX_PARODD            0x00000200
  616 #define LINUX_HUPCL             0x00000400
  617 #define LINUX_CLOCAL            0x00000800
  618 #endif
  619 
  620 #define LINUX_CRTSCTS           0x80000000
  621 
  622 /* Linux c_lflag masks */
  623 #ifdef __alpha__
  624 #define LINUX_ECHOKE            0x00000001
  625 #define LINUX_ECHOE             0x00000002
  626 #define LINUX_ECHOK             0x00000004
  627 #define LINUX_ECHO              0x00000008
  628 #define LINUX_ECHONL            0x00000010
  629 #define LINUX_ECHOPRT           0x00000020
  630 #define LINUX_ECHOCTL           0x00000040
  631 #define LINUX_ISIG              0x00000080
  632 #define LINUX_ICANON            0x00000100
  633 #define LINUX_IEXTEN            0x00000400
  634 #define LINUX_XCASE             0x00004000
  635 #define LINUX_TOSTOP            0x00400000
  636 #define LINUX_FLUSHO            0x00800000
  637 #define LINUX_PENDIN            0x20000000
  638 #define LINUX_NOFLSH            0x80000000
  639 #else
  640 #define LINUX_ISIG              0x00000001
  641 #define LINUX_ICANON            0x00000002
  642 #define LINUX_XCASE             0x00000004
  643 #define LINUX_ECHO              0x00000008
  644 #define LINUX_ECHOE             0x00000010
  645 #define LINUX_ECHOK             0x00000020
  646 #define LINUX_ECHONL            0x00000040
  647 #define LINUX_NOFLSH            0x00000080
  648 #define LINUX_TOSTOP            0x00000100
  649 #define LINUX_ECHOCTL           0x00000200
  650 #define LINUX_ECHOPRT           0x00000400
  651 #define LINUX_ECHOKE            0x00000800
  652 #define LINUX_FLUSHO            0x00001000
  653 #define LINUX_PENDIN            0x00002000
  654 #define LINUX_IEXTEN            0x00008000
  655 #endif
  656 
  657 /* serial_struct values for TIOC[GS]SERIAL ioctls */
  658 #define LINUX_ASYNC_CLOSING_WAIT_INF  0
  659 #define LINUX_ASYNC_CLOSING_WAIT_NONE 65535
  660 
  661 #define LINUX_PORT_UNKNOWN      0
  662 #define LINUX_PORT_8250         1
  663 #define LINUX_PORT_16450        2
  664 #define LINUX_PORT_16550        3
  665 #define LINUX_PORT_16550A       4
  666 #define LINUX_PORT_CIRRUS       5
  667 #define LINUX_PORT_16650        6
  668 
  669 #define LINUX_PORT_MAX          6
  670 
  671 #define LINUX_ASYNC_HUP_NOTIFY          0x0001
  672 #define LINUX_ASYNC_FOURPORT            0x0002
  673 #define LINUX_ASYNC_SAK                 0x0004
  674 #define LINUX_ASYNC_SPLIT_TERMIOS       0x0008
  675 #define LINUX_ASYNC_SPD_MASK            0x0030
  676 #define LINUX_ASYNC_SPD_HI              0x0010
  677 #define LINUX_ASYNC_SPD_VHI             0x0020
  678 #define LINUX_ASYNC_SPD_CUST            0x0030
  679 #define LINUX_ASYNC_SKIP_TEST           0x0040
  680 #define LINUX_ASYNC_AUTO_IRQ            0x0080
  681 #define LINUX_ASYNC_SESSION_LOCKOUT     0x0100
  682 #define LINUX_ASYNC_PGRP_LOCKOUT        0x0200
  683 #define LINUX_ASYNC_CALLOUT_NOHUP       0x0400
  684 #define LINUX_ASYNC_FLAGS               0x0FFF
  685 
  686 #define LINUX_IOCTL_DRM_MIN     0x6400
  687 #define LINUX_IOCTL_DRM_MAX     0x64ff
  688 
  689 /*
  690  * This doesn't really belong here, but I can't think of a better
  691  * place to put it.
  692  */
  693 struct ifnet;
  694 int              linux_ifname(struct ifnet *, char *, size_t);
  695 
  696 #endif /* !_LINUX_IOCTL_H_ */

Cache object: 860652e08b44ce7d7f5305c0e97125b8


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.