Home | History | Annotate | Line # | Download | only in isa
spkrio.h revision 1.2
      1  1.2  dholland /*	$NetBSD: spkrio.h,v 1.2 2015/09/06 06:01:00 dholland Exp $	*/
      2  1.1  drochner 
      3  1.1  drochner /*
      4  1.1  drochner  * spkr.h -- interface definitions for speaker ioctl()
      5  1.1  drochner  */
      6  1.1  drochner 
      7  1.1  drochner #ifndef _DEV_ISA_SPKR_H_
      8  1.1  drochner #define _DEV_ISA_SPKR_H_
      9  1.1  drochner 
     10  1.2  dholland #include <sys/ioccom.h>
     11  1.2  dholland 
     12  1.1  drochner #define SPKRTONE        _IOW('S', 1, tone_t)    /* emit tone */
     13  1.1  drochner #define SPKRTUNE        _IO('S', 2)             /* emit tone sequence */
     14  1.1  drochner 
     15  1.1  drochner typedef struct {
     16  1.1  drochner 	int	frequency;	/* in hertz */
     17  1.1  drochner 	int	duration;	/* in 1/100ths of a second */
     18  1.1  drochner } tone_t;
     19  1.1  drochner 
     20  1.1  drochner #endif /* _DEV_ISA_SPKR_H_ */
     21