aboutsummaryrefslogtreecommitdiffstats
path: root/libc/kernel/arch-sh/asm/termios.h
diff options
context:
space:
mode:
authorTony SIM <sim.chinyeow@renesas.com>2010-01-28 17:04:55 +0900
committerTony Sim <sim.chinyeow@renesas.com>2010-02-01 16:06:40 +0900
commit1d7a8944d8b416d06974f82999dc46c4a44b771a (patch)
tree7dac89f2198bbcf341abdf31350e6f24b460a764 /libc/kernel/arch-sh/asm/termios.h
parent95604529ec25fe7923ba88312c590f38aa5e3d9e (diff)
downloadandroid_bionic-1d7a8944d8b416d06974f82999dc46c4a44b771a.tar.gz
android_bionic-1d7a8944d8b416d06974f82999dc46c4a44b771a.tar.bz2
android_bionic-1d7a8944d8b416d06974f82999dc46c4a44b771a.zip
added headers for SuperH which automatically generate by update_all.py
base on kernel 2.6.27 arch/sh/include/asm/
Diffstat (limited to 'libc/kernel/arch-sh/asm/termios.h')
-rw-r--r--libc/kernel/arch-sh/asm/termios.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/libc/kernel/arch-sh/asm/termios.h b/libc/kernel/arch-sh/asm/termios.h
new file mode 100644
index 000000000..fb31cbeb2
--- /dev/null
+++ b/libc/kernel/arch-sh/asm/termios.h
@@ -0,0 +1,50 @@
+/****************************************************************************
+ ****************************************************************************
+ ***
+ *** This header was automatically generated from a Linux kernel header
+ *** of the same name, to make information necessary for userspace to
+ *** call into the kernel available to libc. It contains only constants,
+ *** structures, and macros generated from the original header, and thus,
+ *** contains no copyrightable information.
+ ***
+ ****************************************************************************
+ ****************************************************************************/
+#ifndef __ASM_SH_TERMIOS_H
+#define __ASM_SH_TERMIOS_H
+
+#include <asm/termbits.h>
+#include <asm/ioctls.h>
+
+struct winsize {
+ unsigned short ws_row;
+ unsigned short ws_col;
+ unsigned short ws_xpixel;
+ unsigned short ws_ypixel;
+};
+
+#define NCC 8
+struct termio {
+ unsigned short c_iflag;
+ unsigned short c_oflag;
+ unsigned short c_cflag;
+ unsigned short c_lflag;
+ unsigned char c_line;
+ unsigned char c_cc[NCC];
+};
+
+#define TIOCM_LE 0x001
+#define TIOCM_DTR 0x002
+#define TIOCM_RTS 0x004
+#define TIOCM_ST 0x008
+#define TIOCM_SR 0x010
+#define TIOCM_CTS 0x020
+#define TIOCM_CAR 0x040
+#define TIOCM_RNG 0x080
+#define TIOCM_DSR 0x100
+#define TIOCM_CD TIOCM_CAR
+#define TIOCM_RI TIOCM_RNG
+#define TIOCM_OUT1 0x2000
+#define TIOCM_OUT2 0x4000
+#define TIOCM_LOOP 0x8000
+
+#endif