2017-06-11 06:33:48 +03:00
|
|
|
/* $NetBSD: spkrio.h,v 1.3 2017/06/11 03:33:48 nat Exp $ */
|
1998-04-16 00:26:18 +04:00
|
|
|
|
|
|
|
/*
|
2016-12-09 07:46:39 +03:00
|
|
|
* spkrio.h -- interface definitions for speaker ioctl()
|
1998-04-16 00:26:18 +04:00
|
|
|
*/
|
|
|
|
|
2016-12-09 07:46:39 +03:00
|
|
|
#ifndef _DEV_SPKRIO_H_
|
|
|
|
#define _DEV_SPKRIO_H_
|
1998-04-16 00:26:18 +04:00
|
|
|
|
2015-09-06 09:00:59 +03:00
|
|
|
#include <sys/ioccom.h>
|
|
|
|
|
1998-04-16 00:26:18 +04:00
|
|
|
#define SPKRTONE _IOW('S', 1, tone_t) /* emit tone */
|
|
|
|
#define SPKRTUNE _IO('S', 2) /* emit tone sequence */
|
2017-06-11 06:33:48 +03:00
|
|
|
#define SPKRGETVOL _IOR('S', 3, u_int) /* get volume */
|
|
|
|
#define SPKRSETVOL _IOW('S', 4, u_int) /* set volume */
|
1998-04-16 00:26:18 +04:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int frequency; /* in hertz */
|
|
|
|
int duration; /* in 1/100ths of a second */
|
|
|
|
} tone_t;
|
|
|
|
|
2016-12-09 07:32:39 +03:00
|
|
|
#endif
|