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$ 8737Sache */ 9737Sache 10152306Sru#ifndef _DEV_SPEAKER_SPEAKER_H_ 11152306Sru#define _DEV_SPEAKER_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 */ 22105777Smarkm} tone_t; 23737Sache 24737Sache/* 25737Sache * Strings written to the speaker device are interpreted as tunes and played; 26737Sache * see the spkr(4) man page for details. 27737Sache */ 28737Sache 29152306Sru#endif /* !_DEV_SPEAKER_SPEAKER_H_ */ 30