patch-1.3.48 linux/include/asm-mips/termbits.h
Next file: linux/include/asm-mips/termios.h
Previous file: linux/include/asm-mips/system.h
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Wed Dec 13 12:39:47 1995
- Orig file:
v1.3.47/linux/include/asm-mips/termbits.h
- Orig date:
Thu Jan 1 02:00:00 1970
diff -u --recursive --new-file v1.3.47/linux/include/asm-mips/termbits.h linux/include/asm-mips/termbits.h
@@ -0,0 +1,35 @@
+#ifndef __ASM_MIPS_TERMBITS_H
+#define __ASM_MIPS_TERMBITS_H
+
+#include <asm/ioctl.h>
+#include <asm/ioctls.h>
+
+/*
+ * The ABI says nothing about NCC but seems to use NCCS as
+ * replacement for it in struct termio
+ */
+#define NCC 8
+#define NCCS 23
+
+struct termio {
+ unsigned short c_iflag; /* input mode flags */
+ unsigned short c_oflag; /* output mode flags */
+ unsigned short c_cflag; /* control mode flags */
+ unsigned short c_lflag; /* local mode flags */
+ char c_line; /* line discipline */
+ unsigned char c_cc[NCCS]; /* control characters */
+};
+
+struct termios {
+ tcflag_t c_iflag; /* input mode flags */
+ tcflag_t c_oflag; /* output mode flags */
+ tcflag_t c_cflag; /* control mode flags */
+ tcflag_t c_lflag; /* local mode flags */
+ /*
+ * Seems nonexistant in the ABI, but Linux assumes existence ...
+ */
+ cc_t c_line; /* line discipline */
+ cc_t c_cc[NCCS]; /* control characters */
+};
+
+#endif /* __ASM_MIPS_TERMBITS_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this