1994-10-27 07:14:23 +03:00
|
|
|
/* $NetBSD: spkr.h,v 1.3 1994/10/27 04:16:27 cgd Exp $ */
|
|
|
|
|
1993-06-16 22:12:23 +04:00
|
|
|
/*
|
|
|
|
* spkr.h -- interface definitions for speaker ioctl()
|
|
|
|
*/
|
|
|
|
|
1994-01-11 16:30:40 +03:00
|
|
|
#ifndef _I386_SPKR_H_
|
|
|
|
#define _I386_SPKR_H_
|
1993-06-16 22:12:23 +04:00
|
|
|
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
|
|
|
|
#define SPKRTONE _IOW('S', 1, tone_t) /* emit tone */
|
1994-01-11 16:30:40 +03:00
|
|
|
#define SPKRTUNE _IO('S', 2) /* emit tone sequence */
|
1993-06-16 22:12:23 +04:00
|
|
|
|
1994-01-11 16:30:40 +03:00
|
|
|
typedef struct {
|
|
|
|
int frequency; /* in hertz */
|
|
|
|
int duration; /* in 1/100ths of a second */
|
|
|
|
} tone_t;
|
1993-06-16 22:12:23 +04:00
|
|
|
|
1994-01-11 16:30:40 +03:00
|
|
|
#endif /* _I386_SPKR_H_ */
|