/* * speaker.h -- interface definitions for speaker ioctl() * * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993 * modified for FreeBSD by Andrew A. Chernov * * $FreeBSD: src/sys/i386/include/speaker.h,v 1.6 1999/08/28 00:44:26 peter Exp $ * $DragonFly: src/sys/i386/include/Attic/speaker.h,v 1.2 2003/06/17 04:28:36 dillon Exp $ */ #ifndef _MACHINE_SPEAKER_H_ #define _MACHINE_SPEAKER_H_ #include #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; /* * Strings written to the speaker device are interpreted as tunes and played; * see the spkr(4) man page for details. */ #endif /* !_MACHINE_SPEAKER_H_ */