OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [libnetworking/] [sys/] [ttycom.h] - Blame information for rev 389

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*-
2
 * Copyright (c) 1982, 1986, 1990, 1993, 1994
3
 *      The Regents of the University of California.  All rights reserved.
4
 * (c) UNIX System Laboratories, Inc.
5
 * All or some portions of this file are derived from material licensed
6
 * to the University of California by American Telephone and Telegraph
7
 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8
 * the permission of UNIX System Laboratories, Inc.
9
 *
10
 * Redistribution and use in source and binary forms, with or without
11
 * modification, are permitted provided that the following conditions
12
 * are met:
13
 * 1. Redistributions of source code must retain the above copyright
14
 *    notice, this list of conditions and the following disclaimer.
15
 * 2. Redistributions in binary form must reproduce the above copyright
16
 *    notice, this list of conditions and the following disclaimer in the
17
 *    documentation and/or other materials provided with the distribution.
18
 * 3. All advertising materials mentioning features or use of this software
19
 *    must display the following acknowledgement:
20
 *      This product includes software developed by the University of
21
 *      California, Berkeley and its contributors.
22
 * 4. Neither the name of the University nor the names of its contributors
23
 *    may be used to endorse or promote products derived from this software
24
 *    without specific prior written permission.
25
 *
26
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36
 * SUCH DAMAGE.
37
 *
38
 *      @(#)ttycom.h    8.1 (Berkeley) 3/28/94
39
 * $Id: ttycom.h,v 1.2 2001-09-27 12:02:00 chris Exp $
40
 */
41
 
42
#ifndef _SYS_TTYCOM_H_
43
#define _SYS_TTYCOM_H_
44
 
45
#include <sys/ioccom.h>
46
 
47
/*
48
 * Tty ioctl's except for those supported only for backwards compatibility
49
 * with the old tty driver.
50
 */
51
 
52
/*
53
 * Window/terminal size structure.  This information is stored by the kernel
54
 * in order to provide a consistent interface, but is not used by the kernel.
55
 */
56
struct winsize {
57
        unsigned short  ws_row;         /* rows, in characters */
58
        unsigned short  ws_col;         /* columns, in characters */
59
        unsigned short  ws_xpixel;      /* horizontal size, pixels */
60
        unsigned short  ws_ypixel;      /* vertical size, pixels */
61
};
62
 
63
#define TIOCMODG        _IOR('t', 3, int)       /* get modem control state */
64
#define TIOCMODS        _IOW('t', 4, int)       /* set modem control state */
65
#define         TIOCM_LE        0001            /* line enable */
66
#define         TIOCM_DTR       0002            /* data terminal ready */
67
#define         TIOCM_RTS       0004            /* request to send */
68
#define         TIOCM_ST        0010            /* secondary transmit */
69
#define         TIOCM_SR        0020            /* secondary receive */
70
#define         TIOCM_CTS       0040            /* clear to send */
71
#define         TIOCM_CAR       0100            /* carrier detect */
72
#define         TIOCM_CD        TIOCM_CAR
73
#define         TIOCM_RNG       0200            /* ring */
74
#define         TIOCM_RI        TIOCM_RNG
75
#define         TIOCM_DSR       0400            /* data set ready */
76
                                                /* 8-10 compat */
77
#define TIOCEXCL         _IO('t', 13)           /* set exclusive use of tty */
78
#define TIOCNXCL         _IO('t', 14)           /* reset exclusive use of tty */
79
                                                /* 15 unused */
80
#define TIOCFLUSH       _IOW('t', 16, int)      /* flush buffers */
81
                                                /* 17-18 compat */
82
#define TIOCGETA        _IOR('t', 19, struct termios) /* get termios struct */
83
#define TIOCSETA        _IOW('t', 20, struct termios) /* set termios struct */
84
#define TIOCSETAW       _IOW('t', 21, struct termios) /* drain output, set */
85
#define TIOCSETAF       _IOW('t', 22, struct termios) /* drn out, fls in, set */
86
#define TIOCGETD        _IOR('t', 26, int)      /* get line discipline */
87
#define TIOCSETD        _IOW('t', 27, int)      /* set line discipline */
88
                                                /* 127-124 compat */
89
#define TIOCSBRK         _IO('t', 123)          /* set break bit */
90
#define TIOCCBRK         _IO('t', 122)          /* clear break bit */
91
#define TIOCSDTR         _IO('t', 121)          /* set data terminal ready */
92
#define TIOCCDTR         _IO('t', 120)          /* clear data terminal ready */
93
#define TIOCGPGRP       _IOR('t', 119, int)     /* get pgrp of tty */
94
#define TIOCSPGRP       _IOW('t', 118, int)     /* set pgrp of tty */
95
                                                /* 117-116 compat */
96
#define TIOCOUTQ        _IOR('t', 115, int)     /* output queue size */
97
#define TIOCSTI         _IOW('t', 114, char)    /* simulate terminal input */
98
#define TIOCNOTTY        _IO('t', 113)          /* void tty association */
99
#define TIOCPKT         _IOW('t', 112, int)     /* pty: set/clear packet mode */
100
#define         TIOCPKT_DATA            0x00    /* data packet */
101
#define         TIOCPKT_FLUSHREAD       0x01    /* flush packet */
102
#define         TIOCPKT_FLUSHWRITE      0x02    /* flush packet */
103
#define         TIOCPKT_STOP            0x04    /* stop output */
104
#define         TIOCPKT_START           0x08    /* start output */
105
#define         TIOCPKT_NOSTOP          0x10    /* no more ^S, ^Q */
106
#define         TIOCPKT_DOSTOP          0x20    /* now do ^S ^Q */
107
#define         TIOCPKT_IOCTL           0x40    /* state change of pty driver */
108
#define TIOCSTOP         _IO('t', 111)          /* stop output, like ^S */
109
#define TIOCSTART        _IO('t', 110)          /* start output, like ^Q */
110
#define TIOCMSET        _IOW('t', 109, int)     /* set all modem bits */
111
#define TIOCMBIS        _IOW('t', 108, int)     /* bis modem bits */
112
#define TIOCMBIC        _IOW('t', 107, int)     /* bic modem bits */
113
#define TIOCMGET        _IOR('t', 106, int)     /* get all modem bits */
114
#define TIOCREMOTE      _IOW('t', 105, int)     /* remote input editing */
115
#define TIOCGWINSZ      _IOR('t', 104, struct winsize)  /* get window size */
116
#define TIOCSWINSZ      _IOW('t', 103, struct winsize)  /* set window size */
117
#define TIOCUCNTL       _IOW('t', 102, int)     /* pty: set/clr usr cntl mode */
118
#define TIOCSTAT         _IO('t', 101)          /* simulate ^T status message */
119
#define         UIOCCMD(n)      _IO('u', n)     /* usr cntl op "n" */
120
#define TIOCCONS        _IOW('t', 98, int)      /* become virtual console */
121
#define TIOCSCTTY        _IO('t', 97)           /* become controlling tty */
122
#define TIOCEXT         _IOW('t', 96, int)      /* pty: external processing */
123
#define TIOCSIG          _IO('t', 95)           /* pty: generate signal */
124
#define TIOCDRAIN        _IO('t', 94)           /* wait till output drained */
125
#define TIOCMSDTRWAIT   _IOW('t', 91, int)      /* modem: set wait on close */
126
#define TIOCMGDTRWAIT   _IOR('t', 90, int)      /* modem: get wait on close */
127
#define TIOCTIMESTAMP   _IOR('t', 89, struct timeval)   /* enable/get timestamp
128
                                                 * of last input event */
129
#define TIOCDCDTIMESTAMP _IOR('t', 88, struct timeval)  /* enable/get timestamp
130
                                                 * of last DCd rise */
131
#define TIOCSDRAINWAIT  _IOW('t', 87, int)      /* set ttywait timeout */
132
#define TIOCGDRAINWAIT  _IOR('t', 86, int)      /* get ttywait timeout */
133
#define TIOCDSIMICROCODE _IO('t', 85)           /* download microcode to
134
                                                 * DSI Softmodem */
135
 
136
#define TTYDISC         0                /* termios tty line discipline */
137
#define TABLDISC        3               /* tablet discipline */
138
#define SLIPDISC        4               /* serial IP discipline */
139
#define PPPDISC         5               /* PPP discipline */
140
 
141
#endif /* !_SYS_TTYCOM_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.