diff options
author | ache <ache@FreeBSD.org> | 1993-11-09 02:31:53 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1993-11-09 02:31:53 +0000 |
commit | 788ea3fcacc169d2776b2f6e241ffcdf92c7349d (patch) | |
tree | fecbf757843b59fe4b788de4905fcc130c6b293f | |
parent | 46df0965e7f451ad96b7b2228baf8a45a9fb6fa6 (diff) | |
download | FreeBSD-src-788ea3fcacc169d2776b2f6e241ffcdf92c7349d.zip FreeBSD-src-788ea3fcacc169d2776b2f6e241ffcdf92c7349d.tar.gz |
Name of ioctl's include sys/spkr.h changed to machine/speaker.h
-rw-r--r-- | sys/dev/speaker/speaker.h | 30 | ||||
-rw-r--r-- | sys/i386/include/speaker.h | 30 |
2 files changed, 60 insertions, 0 deletions
diff --git a/sys/dev/speaker/speaker.h b/sys/dev/speaker/speaker.h new file mode 100644 index 0000000..af80a28 --- /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 <ache@astral.msk.su> + */ + +#ifndef _SPEAKER_H_ +#define _SPEAKER_H_ + +#include <sys/ioctl.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 /* _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 0000000..af80a28 --- /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 <ache@astral.msk.su> + */ + +#ifndef _SPEAKER_H_ +#define _SPEAKER_H_ + +#include <sys/ioctl.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 /* _SPEAKER_H_ */ + +/* speaker.h ends here */ |