aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/speaker.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/sys/i386/include/speaker.h b/sys/i386/include/speaker.h
index 6b1f0211e516..2950b4760feb 100644
--- a/sys/i386/include/speaker.h
+++ b/sys/i386/include/speaker.h
@@ -1,29 +1,16 @@
/*
- * 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 _MACHINE_SPEAKER_H_
#define _MACHINE_SPEAKER_H_
-#include <sys/ioccom.h>
+#include <sys/cdefs.h>
-#define SPKRTONE _IOW('S', 1, tone_t) /* emit tone */
-#define SPKRTUNE _IO('S', 2) /* emit tone sequence*/
+#ifdef __CC_SUPPORTS_WARNING
+#warning "machine/speaker.h is deprecated. Include dev/speaker/speaker.h instead."
+#endif
-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.
- */
+#include <dev/speaker/speaker.h>
#endif /* !_MACHINE_SPEAKER_H_ */