Home | History | Annotate | Line # | Download | only in dev
spkrio.h revision 1.2.2.2
      1 /*	$NetBSD: spkrio.h,v 1.2.2.2 2017/01/07 08:56:31 pgoyette Exp $	*/
      2 
      3 /*
      4  * spkrio.h -- interface definitions for speaker ioctl()
      5  */
      6 
      7 #ifndef _DEV_SPKRIO_H_
      8 #define _DEV_SPKRIO_H_
      9 
     10 #include <sys/ioccom.h>
     11 
     12 #define SPKRTONE        _IOW('S', 1, tone_t)    /* emit tone */
     13 #define SPKRTUNE        _IO('S', 2)             /* emit tone sequence */
     14 
     15 typedef struct {
     16 	int	frequency;	/* in hertz */
     17 	int	duration;	/* in 1/100ths of a second */
     18 } tone_t;
     19 
     20 #endif
     21