termios.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * Liberally adapted from alpha/termios.h. In particular, the c_cc[]
  3. * fields have been reordered so that termio & termios share the
  4. * common subset in the same order (for brain dead programs that don't
  5. * know or care about the differences).
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version
  10. * 2 of the License, or (at your option) any later version.
  11. */
  12. #ifndef _UAPI_ASM_POWERPC_TERMIOS_H
  13. #define _UAPI_ASM_POWERPC_TERMIOS_H
  14. #include <asm/ioctls.h>
  15. #include <asm/termbits.h>
  16. struct sgttyb {
  17. char sg_ispeed;
  18. char sg_ospeed;
  19. char sg_erase;
  20. char sg_kill;
  21. short sg_flags;
  22. };
  23. struct tchars {
  24. char t_intrc;
  25. char t_quitc;
  26. char t_startc;
  27. char t_stopc;
  28. char t_eofc;
  29. char t_brkc;
  30. };
  31. struct ltchars {
  32. char t_suspc;
  33. char t_dsuspc;
  34. char t_rprntc;
  35. char t_flushc;
  36. char t_werasc;
  37. char t_lnextc;
  38. };
  39. struct winsize {
  40. unsigned short ws_row;
  41. unsigned short ws_col;
  42. unsigned short ws_xpixel;
  43. unsigned short ws_ypixel;
  44. };
  45. #define NCC 10
  46. struct termio {
  47. unsigned short c_iflag; /* input mode flags */
  48. unsigned short c_oflag; /* output mode flags */
  49. unsigned short c_cflag; /* control mode flags */
  50. unsigned short c_lflag; /* local mode flags */
  51. unsigned char c_line; /* line discipline */
  52. unsigned char c_cc[NCC]; /* control characters */
  53. };
  54. /* c_cc characters */
  55. #define _VINTR 0
  56. #define _VQUIT 1
  57. #define _VERASE 2
  58. #define _VKILL 3
  59. #define _VEOF 4
  60. #define _VMIN 5
  61. #define _VEOL 6
  62. #define _VTIME 7
  63. #define _VEOL2 8
  64. #define _VSWTC 9
  65. #endif /* _UAPI_ASM_POWERPC_TERMIOS_H */