asm-generic: rename termios.h, signal.h and mman.h
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / microblaze / include / asm / termios.h
blob47a46d1fbe26fa4e1ddd1bf7b66f3290ea1facc8
1 /*
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
6 * for more details.
7 */
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>
16 struct winsize {
17 unsigned short ws_row;
18 unsigned short ws_col;
19 unsigned short ws_xpixel;
20 unsigned short ws_ypixel;
23 #define NCC 8
24 struct termio {
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 */
33 #ifdef __KERNEL__
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
38 eol2=\0
40 #define INIT_C_CC "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0"
41 #endif
43 /* Modem lines */
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 */
64 #define N_TTY 0
65 #define N_SLIP 1
66 #define N_MOUSE 2
67 #define N_PPP 3
68 #define N_STRIP 4
69 #define N_AX25 5
70 #define N_X25 6 /* X.25 async */
71 #define N_6PACK 7
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
77 about SMS messages */
78 #define N_HDLC 13 /* synchronous HDLC */
79 #define N_SYNC_PPP 14
80 #define N_HCI 15 /* Bluetooth HCI UART */
82 #ifdef __KERNEL__
84 #include <asm-generic/termios-base.h>
86 #endif /* __KERNEL__ */
88 #endif /* _ASM_MICROBLAZE_TERMIOS_H */