aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include/generic-netbsd/dev/spkrio.h
blob: 9a2fd032bb67a674cd018d4a2d08110e56e8b7a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*	$NetBSD: spkrio.h,v 1.3 2017/06/11 03:33:48 nat Exp $	*/

/*
 * spkrio.h -- interface definitions for speaker ioctl()
 */

#ifndef _DEV_SPKRIO_H_
#define _DEV_SPKRIO_H_

#include <sys/ioccom.h>

#define SPKRTONE        _IOW('S', 1, tone_t)    /* emit tone */
#define SPKRTUNE        _IO('S', 2)             /* emit tone sequence */
#define SPKRGETVOL      _IOR('S', 3, u_int)     /* get volume */
#define SPKRSETVOL      _IOW('S', 4, u_int)     /* set volume */

typedef struct {
	int	frequency;	/* in hertz */
	int	duration;	/* in 1/100ths of a second */
} tone_t;

#endif