1/*
2 * speaker.h -- interface definitions for speaker ioctl()
3 *
4 * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
5 *      modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
6 */
7
8#ifndef	_DEV_SPEAKER_SPEAKER_H_
9#define	_DEV_SPEAKER_SPEAKER_H_
10
11#include <sys/ioccom.h>
12
13#define SPKRTONE        _IOW('S', 1, tone_t)    /* emit tone */
14#define SPKRTUNE        _IO('S', 2)             /* emit tone sequence*/
15
16typedef struct
17{
18    int	frequency;	/* in hertz */
19    int duration;	/* in 1/100ths of a second */
20} tone_t;
21
22/*
23 * Strings written to the speaker device are interpreted as tunes and played;
24 * see the spkr(4) man page for details.
25 */
26
27#endif /* !_DEV_SPEAKER_SPEAKER_H_ */
28