Name of ioctl's include sys/spkr.h changed to machine/speaker.h
This commit is contained in:
parent
2fc79c3815
commit
4649951014
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=737
30
sys/dev/speaker/speaker.h
Normal file
30
sys/dev/speaker/speaker.h
Normal file
@ -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 */
|
30
sys/i386/include/speaker.h
Normal file
30
sys/i386/include/speaker.h
Normal file
@ -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 */
|
Loading…
Reference in New Issue
Block a user