Move spkr.h to include/machine so users can use it.

This commit is contained in:
brezak 1993-06-16 18:12:23 +00:00
parent 1ba666ccbe
commit c431bdbc13
2 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,31 @@
/*
* spkr.h -- interface definitions for speaker ioctl()
*
* v1.1 by Eric S. Raymond (esr@snark.thyrsus.com) Feb 1990
* modified for 386bsd by Andrew A. Chernov <ache@astral.msk.su>
* 386bsd only clean version, all SYSV stuff removed
*
* $Id: spkr.h,v 1.1 1993/06/16 18:12:23 brezak Exp $
*/
#ifndef _SPKR_H_
#define _SPKR_H_
#ifndef KERNEL
#include <sys/ioctl.h>
#else
#include "ioctl.h"
#endif
#define SPKRTONE _IOW('S', 1, tone_t) /* emit tone */
#define SPKRTUNE _IO('S', 2) /* emit tone sequence*/
typedef struct
{
int frequency; /* in hertz */
int duration; /* in 1/100ths of a second */
}
tone_t;
#endif /* _SPKR_H_ */
/* spkr.h ends here */

View File

@ -6,7 +6,7 @@
* 386bsd only clean version, all SYSV stuff removed
* use hz value from param.c
*
* $Id: spkr.c,v 1.3 1993/06/15 21:37:18 mycroft Exp $
* $Id: spkr.c,v 1.4 1993/06/16 18:12:28 brezak Exp $
*/
#include "speaker.h"
@ -18,7 +18,7 @@
#include "errno.h"
#include "buf.h"
#include "uio.h"
#include "spkr.h"
#include "i386/include/spkr.h"
/**************** MACHINE DEPENDENT PART STARTS HERE *************************
*