summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/alpha/linux/linux.h2
-rw-r--r--sys/compat/linux/linux_ioctl.c8
-rw-r--r--sys/i386/linux/linux.h2
-rw-r--r--sys/i386/linux/linux_ioctl.c8
4 files changed, 20 insertions, 0 deletions
diff --git a/sys/alpha/linux/linux.h b/sys/alpha/linux/linux.h
index 4e5db53..e55a367 100644
--- a/sys/alpha/linux/linux.h
+++ b/sys/alpha/linux/linux.h
@@ -612,6 +612,8 @@ struct trapframe;
#define LINUX_SOUND_MIXER_WRITE_LINE3 0x4d10
#define LINUX_SOUND_MIXER_READ_DEVMASK 0x4dfe
+#define LINUX_OSS_GETVERSION 0x4d76
+
/* Socket system defines */
#define LINUX_FIOSETOWN 0x8901
#define LINUX_SIOCSPGRP 0x8902
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 56a0eda..5f4191f 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -50,6 +50,7 @@
#include <i386/linux/linux.h>
#include <i386/linux/linux_proto.h>
#include <i386/linux/linux_util.h>
+#include <i386/linux/linux_mib.h>
#define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG)
@@ -1270,6 +1271,13 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args)
return error;
}
+ case LINUX_OSS_GETVERSION: {
+ int version;
+
+ version = linux_get_oss_version(p);
+ return copyout((caddr_t)&version, (caddr_t)args->arg, sizeof(int));
+ }
+
}
uprintf("LINUX: 'ioctl' fd=%d, typ=0x%x(%c), num=0x%x not implemented\n",
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index 4e5db53..e55a367 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -612,6 +612,8 @@ struct trapframe;
#define LINUX_SOUND_MIXER_WRITE_LINE3 0x4d10
#define LINUX_SOUND_MIXER_READ_DEVMASK 0x4dfe
+#define LINUX_OSS_GETVERSION 0x4d76
+
/* Socket system defines */
#define LINUX_FIOSETOWN 0x8901
#define LINUX_SIOCSPGRP 0x8902
diff --git a/sys/i386/linux/linux_ioctl.c b/sys/i386/linux/linux_ioctl.c
index 56a0eda..5f4191f 100644
--- a/sys/i386/linux/linux_ioctl.c
+++ b/sys/i386/linux/linux_ioctl.c
@@ -50,6 +50,7 @@
#include <i386/linux/linux.h>
#include <i386/linux/linux_proto.h>
#include <i386/linux/linux_util.h>
+#include <i386/linux/linux_mib.h>
#define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG)
@@ -1270,6 +1271,13 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args)
return error;
}
+ case LINUX_OSS_GETVERSION: {
+ int version;
+
+ version = linux_get_oss_version(p);
+ return copyout((caddr_t)&version, (caddr_t)args->arg, sizeof(int));
+ }
+
}
uprintf("LINUX: 'ioctl' fd=%d, typ=0x%x(%c), num=0x%x not implemented\n",
OpenPOWER on IntegriCloud