/********************************************************************* * file: h/sys/beep.h * part #: * internal sequence #: * * ************************************************************ * * "(c) Copyright Hewlett-Packard Company, 1984. All * * * rights are reserved. Copying or other reproduction * * * of this program except for archival purposes is * * * prohibited without the prior written consent of * * * Hewlett-Packard Company." * * ************************************************************ * * * This file contains definitions for the cops 452 * beeper driver. * * Pisces Q-DOS project * Jon Brewster PCD * ---------------------------------------------------- * initial 1/3/84 jb * ********************************************************************/ #define SPEAKER 0x0670001 /* address of 452 */ #define RESET 0x03F /* reset */ #define LOADA 0x021 /* load register A */ #define LOADB 0x020 /* load register B */ #define TRANA 0x025 /* transfer reg A to counter A */ #define TRANB 0x024 /* transfer reg B to counter B */ #define FMODE 0x030 /* frequency mode */ #define PMODE 0x032 /* pulse mode */ #define NMODE 0x038 /* white noise mode */ #define GNMODE 0x039 /* gated white noise mode */ #define BEEP (('B'<<8)|0) /* ioctl commands for beeper */ #define BEEP_NOW (('B'<<8)|1) #define BEEP_READ (('B'<<8)|2) #define BEEP_ON (('B'<<8)|3) #define BEEP_OFF (('B'<<8)|4) #define BEEPMAJOR 5 /* beeper major dev num */ struct freqdur { unsigned short frequency; /* in hertz */ unsigned short duration; /* 1/100 seconds */ };