termios_powerpc.h 1.7 KB

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