termios.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _UAPI_M32R_TERMIOS_H
  2. #define _UAPI_M32R_TERMIOS_H
  3. #include <asm/termbits.h>
  4. #include <asm/ioctls.h>
  5. struct winsize {
  6. unsigned short ws_row;
  7. unsigned short ws_col;
  8. unsigned short ws_xpixel;
  9. unsigned short ws_ypixel;
  10. };
  11. #define NCC 8
  12. struct termio {
  13. unsigned short c_iflag; /* input mode flags */
  14. unsigned short c_oflag; /* output mode flags */
  15. unsigned short c_cflag; /* control mode flags */
  16. unsigned short c_lflag; /* local mode flags */
  17. unsigned char c_line; /* line discipline */
  18. unsigned char c_cc[NCC]; /* control characters */
  19. };
  20. /* modem lines */
  21. #define TIOCM_LE 0x001
  22. #define TIOCM_DTR 0x002
  23. #define TIOCM_RTS 0x004
  24. #define TIOCM_ST 0x008
  25. #define TIOCM_SR 0x010
  26. #define TIOCM_CTS 0x020
  27. #define TIOCM_CAR 0x040
  28. #define TIOCM_RNG 0x080
  29. #define TIOCM_DSR 0x100
  30. #define TIOCM_CD TIOCM_CAR
  31. #define TIOCM_RI TIOCM_RNG
  32. #define TIOCM_OUT1 0x2000
  33. #define TIOCM_OUT2 0x4000
  34. #define TIOCM_LOOP 0x8000
  35. /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
  36. #endif /* _UAPI_M32R_TERMIOS_H */