1*5daee67fSniklas /* $OpenBSD: spkrio.h,v 1.1 1999/01/02 00:02:43 niklas Exp $ */ 2*5daee67fSniklas /* $NetBSD: spkrio.h,v 1.1 1998/04/15 20:26:19 drochner Exp $ */ 3*5daee67fSniklas 4*5daee67fSniklas /* 5*5daee67fSniklas * spkr.h -- interface definitions for speaker ioctl() 6*5daee67fSniklas */ 7*5daee67fSniklas 8*5daee67fSniklas #ifndef _DEV_ISA_SPKR_H_ 9*5daee67fSniklas #define _DEV_ISA_SPKR_H_ 10*5daee67fSniklas 11*5daee67fSniklas #define SPKRTONE _IOW('S', 1, tone_t) /* emit tone */ 12*5daee67fSniklas #define SPKRTUNE _IO('S', 2) /* emit tone sequence */ 13*5daee67fSniklas 14*5daee67fSniklas typedef struct { 15*5daee67fSniklas int frequency; /* in hertz */ 16*5daee67fSniklas int duration; /* in 1/100ths of a second */ 17*5daee67fSniklas } tone_t; 18*5daee67fSniklas 19*5daee67fSniklas #endif /* _DEV_ISA_SPKR_H_ */ 20