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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [include/] [bsd/] [sgtty.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/* sgtty.h */
2
 
3
/* This file contains defintions to help make linux termios look like
4
   bsd sgtty. */
5
 
6
/* Copyright (c) 1992 Ross Biro
7
 
8
This library is free software; you can redistribute it and/or
9
modify it under the terms of the GNU Library General Public
10
License as published by the Free Software Foundation; either
11
version 2 of the License, or (at your option) any later version.
12
 
13
This library is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
Library General Public License for more details.
17
 
18
You should have received a copy of the GNU Library General Public
19
License along with this library; if not, write to the Free
20
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
*/
22
 
23
 
24
#ifndef _BSD_SGTTY_H
25
#define _BSD_SGTTY_H
26
 
27
#include <termios.h>
28
 
29
#define TIOCGETP        0x5481
30
#define TIOCSETP        0x5482
31
#define TIOCGETC        0x5483
32
#define TIOCSETC        0x5484
33
#define TIOCGLTC        0x5485
34
#define TIOCSLTC        0x5486
35
#define TIOCLGET        0x5487
36
#define TIOCLSET        0x5488
37
#define TIOCFLUSH       0x5489
38
#define TIOCSETN        0x548a
39
 
40
struct sgttyb
41
{
42
    unsigned short sg_flags;
43
    char sg_ispeed;
44
    char sg_ospeed;
45
    char sg_erase;
46
    char sg_kill;
47
    struct termios t;
48
    int check;
49
};
50
 
51
struct tchars
52
{
53
    char t_intrc;
54
    char t_quitc;
55
    char t_eofc;
56
    char t_startc;
57
    char t_stopc;
58
    char t_brkc;
59
};
60
 
61
struct ltchars
62
{
63
    char t_werasc;
64
    char t_suspc;
65
    char t_dsuspc;
66
    char t_rprntc;
67
    char t_flushc;
68
    char t_lnextc;
69
};
70
 
71
#define O_RAW 1
72
#define O_LCASE 2
73
#define O_CRMOD 4
74
#define O_ECHO 8
75
#define O_ODDP 16
76
#define O_EVENP 32
77
#define O_CBREAK 64
78
/* these don't do anything yet. */
79
#define O_TBDELAY 0
80
#define O_LLITOUT 0
81
#define O_XTABS 0
82
#define O_ANYP 0
83
 
84
#ifndef _SGTTY_SOURCE
85
 
86
#undef ioctl
87
#define ioctl   bsd_ioctl
88
 
89
#undef RAW
90
#define RAW O_RAW
91
#undef LCASE
92
#define LCASE O_LCASE
93
#undef ECHO
94
#define ECHO O_ECHO
95
#undef CRMOD
96
#define CRMOD O_CRMOD
97
#undef ODDP
98
#define ODDP O_ODDP
99
#undef EVENP
100
#define EVENP O_EVENP
101
#undef CBREAK
102
#define CBREAK O_CBREAK
103
#undef TBDELAY
104
#define TBDELAY O_TBDELAY
105
#undef LLITOUT
106
#define LLITOUT O_LLITOUT
107
#undef XTABS
108
#define XTABS O_XTABS
109
#undef ANYP
110
#define ANYP O_ANYP
111
#endif
112
 
113
#endif /* _BSD_SGTTY_H */

powered by: WebSVN 2.1.0

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