summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux.h
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1997-12-15 06:09:11 +0000
committermsmith <msmith@FreeBSD.org>1997-12-15 06:09:11 +0000
commitb8788313885de000a82071e85a16dd9da47b8e6e (patch)
tree846c6fe0b5128fdc83bd9977d37c2a86e9a73788 /sys/i386/linux/linux.h
parentfc1a3527882f5480b46677a1e8c40d09e9110080 (diff)
downloadFreeBSD-src-b8788313885de000a82071e85a16dd9da47b8e6e.zip
FreeBSD-src-b8788313885de000a82071e85a16dd9da47b8e6e.tar.gz
As described by the submitter:
These patches enables us to play quake2 . Support linux keyboard ioctl for setting RAW, MEDIUMRAW and XLATE. Support linux virtual terminal operations: OPENQRY, GETMODE, SETMODE, GETSTATE, ACTIVATE, and WAITACTIVE. Submitted by: Amancio Hasty <hasty@rah.star-gate.com>
Diffstat (limited to 'sys/i386/linux/linux.h')
-rw-r--r--sys/i386/linux/linux.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index ab05ee2..878ffea 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -167,6 +167,14 @@ struct trapframe;
#define LINUX_SIG_UNBLOCK 1
#define LINUX_SIG_SETMASK 2
+/* keyboard defines */
+#define LINUX_KDGKBMODE 0x4B44
+#define LINUX_KDSKBMODE 0x4B45
+
+#define LINUX_KBD_RAW 0
+#define LINUX_KBD_XLATE 1
+#define LINUX_KBD_MEDIUMRAW 2
+
/* termio commands */
#define LINUX_TCGETS 0x5401
#define LINUX_TCSETS 0x5402
@@ -215,6 +223,14 @@ struct trapframe;
#define LINUX_TIOCSERSWILD 0x5455
#define LINUX_TIOCGLCKTRMIOS 0x5456
#define LINUX_TIOCSLCKTRMIOS 0x5457
+#define LINUX_VT_OPENQRY 0x5600
+#define LINUX_VT_GETMODE 0x5601
+#define LINUX_VT_SETMODE 0x5602
+#define LINUX_VT_GETSTATE 0x5603
+#define LINUX_VT_ACTIVATE 0x5606
+#define LINUX_VT_WAITACTIVE 0x5607
+
+
/* arguments for tcflush() and LINUX_TCFLSH */
#define LINUX_TCIFLUSH 0
OpenPOWER on IntegriCloud