Home | History | Annotate | Line # | Download | only in include
spkr.h revision 1.3
      1  1.3      cgd /*	$NetBSD: spkr.h,v 1.3 1994/10/27 04:16:27 cgd Exp $	*/
      2  1.3      cgd 
      3  1.1   brezak /*
      4  1.1   brezak  * spkr.h -- interface definitions for speaker ioctl()
      5  1.1   brezak  */
      6  1.1   brezak 
      7  1.2  mycroft #ifndef _I386_SPKR_H_
      8  1.2  mycroft #define _I386_SPKR_H_
      9  1.1   brezak 
     10  1.1   brezak #include <sys/ioctl.h>
     11  1.1   brezak 
     12  1.1   brezak #define SPKRTONE        _IOW('S', 1, tone_t)    /* emit tone */
     13  1.2  mycroft #define SPKRTUNE        _IO('S', 2)             /* emit tone sequence */
     14  1.1   brezak 
     15  1.2  mycroft typedef struct {
     16  1.2  mycroft 	int	frequency;	/* in hertz */
     17  1.2  mycroft 	int	duration;	/* in 1/100ths of a second */
     18  1.2  mycroft } tone_t;
     19  1.1   brezak 
     20  1.2  mycroft #endif /* _I386_SPKR_H_ */
     21