1 /* $NetBSD: spkrio.h,v 1.1 2016/12/09 04:32:39 christos Exp $ */ 2 3 /* 4 * spkr.h -- interface definitions for speaker ioctl() 5 */ 6 7 #ifndef _DEV_ISA_SPKR_H_ 8 #define _DEV_ISA_SPKR_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 15 typedef struct { 16 int frequency; /* in hertz */ 17 int duration; /* in 1/100ths of a second */ 18 } tone_t; 19 20 void spkr_tone(u_int, u_int); 21 void spkr_rest(int); 22 int spkr__modcmd(modcmd_t, void *); 23 int spkr_probe(device_t, cfdata_t, void *); 24 extern int spkr_attached; 25 26 #endif 27