speaker.h revision 50477
1737Sache/* 2737Sache * speaker.h -- interface definitions for speaker ioctl() 3737Sache * 4737Sache * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993 5737Sache * modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su> 61817Sdg * 750477Speter * $FreeBSD: head/sys/i386/include/speaker.h 50477 1999-08-28 01:08:13Z peter $ 8737Sache */ 9737Sache 1018444Sbde#ifndef _MACHINE_SPEAKER_H_ 1118444Sbde#define _MACHINE_SPEAKER_H_ 12737Sache 1318444Sbde#include <sys/ioccom.h> 14737Sache 15737Sache#define SPKRTONE _IOW('S', 1, tone_t) /* emit tone */ 16737Sache#define SPKRTUNE _IO('S', 2) /* emit tone sequence*/ 17737Sache 18737Sachetypedef struct 19737Sache{ 20737Sache int frequency; /* in hertz */ 21737Sache int duration; /* in 1/100ths of a second */ 22737Sache} 23737Sachetone_t; 24737Sache 25737Sache/* 26737Sache * Strings written to the speaker device are interpreted as tunes and played; 27737Sache * see the spkr(4) man page for details. 28737Sache */ 29737Sache 3018444Sbde#endif /* !_MACHINE_SPEAKER_H_ */ 31