Home | History | Annotate | Line # | Download | only in dev
      1  1.3       nat /*	$NetBSD: spkrio.h,v 1.3 2017/06/11 03:33:48 nat Exp $	*/
      2  1.1  christos 
      3  1.1  christos /*
      4  1.2  christos  * spkrio.h -- interface definitions for speaker ioctl()
      5  1.1  christos  */
      6  1.1  christos 
      7  1.2  christos #ifndef _DEV_SPKRIO_H_
      8  1.2  christos #define _DEV_SPKRIO_H_
      9  1.1  christos 
     10  1.1  christos #include <sys/ioccom.h>
     11  1.1  christos 
     12  1.1  christos #define SPKRTONE        _IOW('S', 1, tone_t)    /* emit tone */
     13  1.1  christos #define SPKRTUNE        _IO('S', 2)             /* emit tone sequence */
     14  1.3       nat #define SPKRGETVOL      _IOR('S', 3, u_int)     /* get volume */
     15  1.3       nat #define SPKRSETVOL      _IOW('S', 4, u_int)     /* set volume */
     16  1.1  christos 
     17  1.1  christos typedef struct {
     18  1.1  christos 	int	frequency;	/* in hertz */
     19  1.1  christos 	int	duration;	/* in 1/100ths of a second */
     20  1.1  christos } tone_t;
     21  1.1  christos 
     22  1.1  christos #endif
     23