From 46499510140a6adf57a1c7502f41b2bc0054ef0b Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 9 Nov 1993 02:31:53 +0000 Subject: [PATCH] Name of ioctl's include sys/spkr.h changed to machine/speaker.h --- sys/dev/speaker/speaker.h | 30 ++++++++++++++++++++++++++++++ sys/i386/include/speaker.h | 30 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 sys/dev/speaker/speaker.h create mode 100644 sys/i386/include/speaker.h diff --git a/sys/dev/speaker/speaker.h b/sys/dev/speaker/speaker.h new file mode 100644 index 000000000000..af80a282e28b --- /dev/null +++ b/sys/dev/speaker/speaker.h @@ -0,0 +1,30 @@ +/* + * 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 + */ + +#ifndef _SPEAKER_H_ +#define _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 /* _SPEAKER_H_ */ + +/* speaker.h ends here */ diff --git a/sys/i386/include/speaker.h b/sys/i386/include/speaker.h new file mode 100644 index 000000000000..af80a282e28b --- /dev/null +++ b/sys/i386/include/speaker.h @@ -0,0 +1,30 @@ +/* + * 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 + */ + +#ifndef _SPEAKER_H_ +#define _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 /* _SPEAKER_H_ */ + +/* speaker.h ends here */