2 * Copyright (C) 2006 Atmark Techno, Inc.
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
9 #ifndef _ASM_MICROBLAZE_TERMIOS_H
10 #define _ASM_MICROBLAZE_TERMIOS_H
12 #include <linux/string.h>
13 #include <asm/termbits.h>
14 #include <asm/ioctls.h>
17 unsigned short ws_row;
18 unsigned short ws_col;
19 unsigned short ws_xpixel;
20 unsigned short ws_ypixel;
25 unsigned short c_iflag; /* input mode flags */
26 unsigned short c_oflag; /* output mode flags */
27 unsigned short c_cflag; /* control mode flags */
28 unsigned short c_lflag; /* local mode flags */
29 unsigned char c_line; /* line discipline */
30 unsigned char c_cc[NCC]; /* control characters */
34 /* intr=^C quit=^| erase=del kill=^U
35 eof=^D vtime=\0 vmin=\1 sxtc=\0
36 start=^Q stop=^S susp=^Z eol=\0
37 reprint=^R discard=^U werase=^W lnext=^V
40 #define INIT_C_CC "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0"
45 #define TIOCM_LE 0x001
46 #define TIOCM_DTR 0x002
47 #define TIOCM_RTS 0x004
48 #define TIOCM_ST 0x008
49 #define TIOCM_SR 0x010
50 #define TIOCM_CTS 0x020
51 #define TIOCM_CAR 0x040
52 #define TIOCM_RNG 0x080
53 #define TIOCM_DSR 0x100
54 #define TIOCM_CD TIOCM_CAR
55 #define TIOCM_RI TIOCM_RNG
56 #define TIOCM_OUT1 0x2000
57 #define TIOCM_OUT2 0x4000
58 #define TIOCM_LOOP 0x8000
60 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
62 /* Line disciplines */
70 #define N_X25 6 /* X.25 async */
72 #define N_MASC 8 /* Reserved for Mobitex module <kaz@cafe.net> */
73 #define N_R3964 9 /* Reserved for Simatic R3964 module */
74 #define N_PROFIBUS_FDL 10 /* Reserved for Profibus <Dave@mvhi.com> */
75 #define N_IRDA 11 /* Linux IR - http://irda.sourceforge.net/ */
76 #define N_SMSBLOCK 12 /* SMS block mode - for talking to GSM data cards
78 #define N_HDLC 13 /* synchronous HDLC */
80 #define N_HCI 15 /* Bluetooth HCI UART */
84 #include <asm-generic/termios.h>
86 #endif /* __KERNEL__ */
88 #endif /* _ASM_MICROBLAZE_TERMIOS_H */