xref: /netbsd-src/sys/arch/i386/include/spkr.h (revision cda4f8f6ee55684e8d311b86c99ea59191e6b74f)
1 /*
2  * spkr.h -- interface definitions for speaker ioctl()
3  *
4  * v1.1 by Eric S. Raymond (esr@snark.thyrsus.com) Feb 1990
5  *      modified for 386bsd by Andrew A. Chernov <ache@astral.msk.su>
6  *      386bsd only clean version, all SYSV stuff removed
7  *
8  *	$Id: spkr.h,v 1.1 1993/06/16 18:12:23 brezak Exp $
9  */
10 
11 #ifndef _SPKR_H_
12 #define _SPKR_H_
13 
14 #ifndef KERNEL
15 #include <sys/ioctl.h>
16 #else
17 #include "ioctl.h"
18 #endif
19 
20 #define SPKRTONE        _IOW('S', 1, tone_t)    /* emit tone */
21 #define SPKRTUNE        _IO('S', 2)             /* emit tone sequence*/
22 
23 typedef struct
24 {
25     int	frequency;	/* in hertz */
26     int duration;	/* in 1/100ths of a second */
27 }
28 tone_t;
29 
30 #endif /* _SPKR_H_ */
31 /* spkr.h ends here */
32