1/* $NetBSD: spkrio.h,v 1.3 2017/06/11 03:33:48 nat 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#define SPKRGETVOL _IOR('S', 3, u_int) /* get volume */
15#define SPKRSETVOL _IOW('S', 4, u_int) /* set volume */
16
17typedef struct {
18 int frequency; /* in hertz */
19 int duration; /* in 1/100ths of a second */
20} tone_t;
21
22#endif
23