Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/arch/i386 Add emulation of KIOCSOUND.



details:   https://anonhg.NetBSD.org/src/rev/8d31cc8b6b87
branches:  trunk
changeset: 501935:8d31cc8b6b87
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Jan 09 13:01:03 2001 +0000

description:
Add emulation of KIOCSOUND.

diffstat:

 sys/compat/linux/arch/i386/linux_machdep.c |  6 +++++-
 sys/compat/linux/arch/i386/linux_machdep.h |  7 ++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 8e1c5400b136 -r 8d31cc8b6b87 sys/compat/linux/arch/i386/linux_machdep.c
--- a/sys/compat/linux/arch/i386/linux_machdep.c        Tue Jan 09 12:11:57 2001 +0000
+++ b/sys/compat/linux/arch/i386/linux_machdep.c        Tue Jan 09 13:01:03 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_machdep.c,v 1.58 2000/12/29 22:06:58 fvdl Exp $  */
+/*     $NetBSD: linux_machdep.c,v 1.59 2001/01/09 13:01:03 fvdl Exp $  */
 
 /*-
  * Copyright (c) 1995, 2000 The NetBSD Foundation, Inc.
@@ -638,6 +638,10 @@
                if ((unsigned)SCARG(uap, data) == LINUX_K_MEDIUMRAW)
                        SCARG(&bia, data) = (caddr_t)K_RAW;
                break;
+       case LINUX_KIOCSOUND:
+               SCARG(&bia, data) =
+                   (caddr_t)(((unsigned long)SCARG(&bia, data)) & 0xffff);
+               /* fall through */
        case LINUX_KDMKTONE:
                com = KDMKTONE;
                break;
diff -r 8e1c5400b136 -r 8d31cc8b6b87 sys/compat/linux/arch/i386/linux_machdep.h
--- a/sys/compat/linux/arch/i386/linux_machdep.h        Tue Jan 09 12:11:57 2001 +0000
+++ b/sys/compat/linux/arch/i386/linux_machdep.h        Tue Jan 09 13:01:03 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_machdep.h,v 1.19 2000/12/29 22:06:58 fvdl Exp $  */
+/*     $NetBSD: linux_machdep.h,v 1.20 2001/01/09 13:01:03 fvdl Exp $  */
 
 /*-
  * Copyright (c) 1995, 2000 The NetBSD Foundation, Inc.
@@ -108,8 +108,9 @@
 #define LINUX_KDDISABIO   0x4b37
 #define LINUX_KDGETLED    0x4b31
 #define LINUX_KDSETLED    0x4b32
-#define LINUX_KDGKBTYPE   0x4B33
-#define LINUX_KDGKBENT    0x4B46
+#define LINUX_KDGKBTYPE   0x4b33
+#define LINUX_KDGKBENT    0x4b46
+#define LINUX_KIOCSOUND   0x4b2f
 
 /*
  * Mode for KDSKBMODE which we don't have (we just use plain mode for this)



Home | Main Index | Thread Index | Old Index