NetBSD/sys/arch/i386/isa/spkr.h

30 lines
652 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
*/
#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 */