Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/sys Pull up revisions 1.26-1.27 (requested by fvdl):



details:   https://anonhg.NetBSD.org/src/rev/56762fbf24df
branches:  netbsd-1-5
changeset: 491014:56762fbf24df
user:      he <he%NetBSD.org@localhost>
date:      Fri Mar 30 21:50:43 2001 +0000

description:
Pull up revisions 1.26-1.27 (requested by fvdl):
  Add some required Linux emulation bits to support the Linux
  version of VMware.

diffstat:

 sys/sys/ioctl.h |  24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 87c8b7201823 -r 56762fbf24df sys/sys/ioctl.h
--- a/sys/sys/ioctl.h   Fri Mar 30 21:50:16 2001 +0000
+++ b/sys/sys/ioctl.h   Fri Mar 30 21:50:43 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ioctl.h,v 1.25 1999/04/30 05:29:20 cgd Exp $   */
+/*     $NetBSD: ioctl.h,v 1.25.12.1 2001/03/30 21:50:43 he Exp $       */
 
 /*-
  * Copyright (c) 1982, 1986, 1990, 1993, 1994
@@ -65,6 +65,28 @@
 #include <sys/filio.h>
 #include <sys/sockio.h>
 
+/*
+ * Passthrough ioctl commands. These are passed through to devices
+ * as they are, it is expected that the device (an LKM, for example),
+ * will know how to deal with them. One for each emulation, so that
+ * no namespace clashes will occur between them, for devices that
+ * may be dealing with specific ioctls for multiple emulations.
+ */
+
+struct ioctl_pt {
+       unsigned long com;
+       void *data;
+};
+
+#define PTIOCNETBSD    _IOW('Z', 0, struct ioctl_pt)
+#define PTIOCSUNOS     _IOW('Z', 1, struct ioctl_pt)
+#define PTIOCSVR4      _IOW('Z', 2, struct ioctl_pt)
+#define PTIOCLINUX     _IOW('Z', 3, struct ioctl_pt)
+#define PTIOCFREEBSD   _IOW('Z', 4, struct ioctl_pt)
+#define PTIOCOSF1      _IOW('Z', 5, struct ioctl_pt)
+#define PTIOCULTRIX    _IOW('Z', 6, struct ioctl_pt)
+#define PTIOCWIN32     _IOW('Z', 7, struct ioctl_pt)
+
 #ifndef _KERNEL
 
 #include <sys/cdefs.h>



Home | Main Index | Thread Index | Old Index