1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys/dev/speaker/speaker.h
Ruslan Ermilov 6d8200ff0c Add /dev/speaker support to amd64.
The following repo-copies were made (by Mark Murray):

sys/i386/isa/spkr.c -> sys/dev/speaker/spkr.c
sys/i386/include/speaker.h -> sys/dev/speaker/speaker.h
share/man/man4/man4.i386/spkr.4 -> share/man/man4/spkr.4
2005-11-11 09:57:32 +00:00

30 lines
718 B
C

/*
* 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 <ache@astral.msk.su>
*
* $FreeBSD$
*/
#ifndef _DEV_SPEAKER_SPEAKER_H_
#define _DEV_SPEAKER_SPEAKER_H_
#include <sys/ioccom.h>
#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 /* !_DEV_SPEAKER_SPEAKER_H_ */