root/include/asm-mips/termbits.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef __ASM_MIPS_TERMBITS_H
   2 #define __ASM_MIPS_TERMBITS_H
   3 
   4 #include <asm/ioctl.h>
   5 #include <asm/ioctls.h>
   6 
   7 /*
   8  * The ABI says nothing about NCC but seems to use NCCS as
   9  * replacement for it in struct termio
  10  */
  11 #define NCC     8
  12 #define NCCS    23
  13 
  14 struct termio {
  15         unsigned short c_iflag;         /* input mode flags */
  16         unsigned short c_oflag;         /* output mode flags */
  17         unsigned short c_cflag;         /* control mode flags */
  18         unsigned short c_lflag;         /* local mode flags */
  19         char c_line;                    /* line discipline */
  20         unsigned char c_cc[NCCS];       /* control characters */
  21 };
  22 
  23 struct termios {
  24         tcflag_t c_iflag;               /* input mode flags */
  25         tcflag_t c_oflag;               /* output mode flags */
  26         tcflag_t c_cflag;               /* control mode flags */
  27         tcflag_t c_lflag;               /* local mode flags */
  28         /*
  29          * Seems nonexistant in the ABI, but Linux assumes existence ...
  30          */
  31         cc_t c_line;                    /* line discipline */
  32         cc_t c_cc[NCCS];                /* control characters */
  33 };
  34 
  35 #endif /* __ASM_MIPS_TERMBITS_H */

/* [previous][next][first][last][top][bottom][index][help] */