Add emulation of KIOCSOUND.

This commit is contained in:
fvdl 2001-01-09 13:01:03 +00:00
parent 84a9223126
commit c99aee0084
2 changed files with 9 additions and 4 deletions

View File

@ -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 @@ linux_machdepioctl(p, v, retval)
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;

View File

@ -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 @@ __END_DECLS
#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)