source: vendor/emx/current/src/os2/xf86sup.h

Last change on this file was 18, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.2 KB
Line 
1/* xf86sup.h -- Definitions for Holger Veit's xf86sup device driver
2 Copyright (c) 1995-1996 by Eberhard Mattes
3
4This file is part of emx.
5
6emx is free software; you can redistribute it and/or modify it
7under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11emx is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with emx; see the file COPYING. If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA.
20
21As special exception, emx.dll can be distributed without source code
22unless it has been changed. If you modify emx.dll, this exception
23no longer applies and you must remove this paragraph from all source
24files 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
54struct xf86sup_drvid
55{
56 ULONG magic;
57 ULONG id;
58 ULONG version;
59};
60
61struct xf86sup_selreg
62{
63 ULONG rsel;
64 ULONG xsel;
65 ULONG code;
66};
67
68struct 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};
Note: See TracBrowser for help on using the repository browser.