1 | /* xf86sup.h -- Definitions for Holger Veit's xf86sup device driver
|
---|
2 | Copyright (c) 1995-1996 by Eberhard Mattes
|
---|
3 |
|
---|
4 | This file is part of emx.
|
---|
5 |
|
---|
6 | emx is free software; you can redistribute it and/or modify it
|
---|
7 | under the terms of the GNU General Public License as published by
|
---|
8 | the Free Software Foundation; either version 2, or (at your option)
|
---|
9 | any later version.
|
---|
10 |
|
---|
11 | emx is distributed in the hope that it will be useful,
|
---|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
14 | GNU General Public License for more details.
|
---|
15 |
|
---|
16 | You should have received a copy of the GNU General Public License
|
---|
17 | along with emx; see the file COPYING. If not, write to
|
---|
18 | the Free Software Foundation, 59 Temple Place - Suite 330,
|
---|
19 | Boston, MA 02111-1307, USA.
|
---|
20 |
|
---|
21 | As special exception, emx.dll can be distributed without source code
|
---|
22 | unless it has been changed. If you modify emx.dll, this exception
|
---|
23 | no longer applies and you must remove this paragraph from all source
|
---|
24 | files for emx.dll. */
|
---|
25 |
|
---|
26 |
|
---|
27 | #define IOCTL_XF86SUP 0x76
|
---|
28 |
|
---|
29 | #define XF86SUP_TIOCSETA 0x48
|
---|
30 | #define XF86SUP_TIOCSETAW 0x49
|
---|
31 | #define XF86SUP_TIOCSETAF 0x4a
|
---|
32 | #define XF86SUP_TIOCFLUSH 0x4c
|
---|
33 | #define XF86SUP_TIOCDRAIN 0x4e
|
---|
34 | #define XF86SUP_ENADUP 0x5a
|
---|
35 | #define XF86SUP_NAME 0x60
|
---|
36 | #define XF86SUP_DRVID 0x61
|
---|
37 | #define XF86SUP_FIONREAD 0x64
|
---|
38 | #define XF86SUP_TIOCGETA 0x65
|
---|
39 | #define XF86SUP_FIONBIO 0x6a
|
---|
40 | #define XF86SUP_SELREG 0x6b
|
---|
41 | #define XF86SUP_SELARM 0x6c
|
---|
42 |
|
---|
43 | #define XF86SUP_MAGIC 0x36384f58
|
---|
44 | #define XF86SUP_ID_PTY 1
|
---|
45 | #define XF86SUP_ID_TTY 2
|
---|
46 | #define XF86SUP_ID_CONSOLE 3
|
---|
47 | #define XF86SUP_ID_PMAP 4
|
---|
48 | #define XF86SUP_ID_FASTIO 5
|
---|
49 | #define XF86SUP_ID_PTMS 6
|
---|
50 |
|
---|
51 | #define XF86SUP_SEL_READ 0x01
|
---|
52 | #define XF86SUP_SEL_EXCEPT 0x02
|
---|
53 |
|
---|
54 | struct xf86sup_drvid
|
---|
55 | {
|
---|
56 | ULONG magic;
|
---|
57 | ULONG id;
|
---|
58 | ULONG version;
|
---|
59 | };
|
---|
60 |
|
---|
61 | struct xf86sup_selreg
|
---|
62 | {
|
---|
63 | ULONG rsel;
|
---|
64 | ULONG xsel;
|
---|
65 | ULONG code;
|
---|
66 | };
|
---|
67 |
|
---|
68 | struct xf86sup_termios
|
---|
69 | {
|
---|
70 | unsigned short c_iflag;
|
---|
71 | unsigned short c_oflag;
|
---|
72 | unsigned short c_cflag;
|
---|
73 | unsigned short c_lflag;
|
---|
74 | unsigned char c_cc[NCCS];
|
---|
75 | long c_reserved[4];
|
---|
76 | };
|
---|