32 lines
709 B
C
32 lines
709 B
C
/*
|
|
* spkr.h -- interface definitions for speaker ioctl()
|
|
*
|
|
* v1.1 by Eric S. Raymond (esr@snark.thyrsus.com) Feb 1990
|
|
* modified for 386bsd by Andrew A. Chernov <ache@astral.msk.su>
|
|
* 386bsd only clean version, all SYSV stuff removed
|
|
*
|
|
* $Id: spkr.h,v 1.1 1993/06/16 18:12:23 brezak Exp $
|
|
*/
|
|
|
|
#ifndef _SPKR_H_
|
|
#define _SPKR_H_
|
|
|
|
#ifndef KERNEL
|
|
#include <sys/ioctl.h>
|
|
#else
|
|
#include "ioctl.h"
|
|
#endif
|
|
|
|
#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;
|
|
|
|
#endif /* _SPKR_H_ */
|
|
/* spkr.h ends here */
|