ebedb5ad97
- don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h> instead. This was already done in 4.4Lite for the most important ioctl headers. Header spam currently increases kernel build times by 10-20%. There are more than 30000 #includes (not counting duplicates) for compiling LINT. - include <sys/types.h> if and only it is necessary to make the header almost self-sufficient (some ioctl headers still need structs from elsewhere). - uniformized idempotency ifdefs. Copied the style in the 4.4Lite ioctl headers.
31 lines
750 B
C
31 lines
750 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>
|
|
*
|
|
* $Id: speaker.h,v 1.2 1994/08/02 07:39:05 davidg Exp $
|
|
*/
|
|
|
|
#ifndef _MACHINE_SPEAKER_H_
|
|
#define _MACHINE_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 /* !_MACHINE_SPEAKER_H_ */
|