/*
 * 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1986
 * LICENSED MATERIALS - PROPERTY OF IBM
 * REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
 */
/* $Header:speakerio.h 12.0$ */
/* $ACIS:speakerio.h 12.0$ */
/* $Source: /ibm/acis/usr/sys/caio/RCS/speakerio.h,v $ */

#if !defined(lint) && !defined(LOCORE)  && defined(RCS_HDRS)
static char *rcsidspeakerio = "$Header:speakerio.h 12.0$";
#endif

/* This file contains special definitions for the speaker driver */

/* spk_blk is how the user level program passes a "note" to the speaker */
struct spk_blk {
	char	volume;
	char	freqhigh;
	char	freqlow;
	unsigned short duration;
};
/* limits for values in spk_blk */
#define SPKVOLMAX	3
#define	SPKDURMAX	0x7fff	/* only 15 bits long */
/* Freqhigh must be a power of 2! and less than or equal to 64 */
#define	SPKFREQMAX	64	/* max frequency for freqhigh */
#define	SPK1LOMIN	19	/* min for freqlow if freqhigh==1 */
#define	SPKOLOMIN	120	/* min for freqlow if freqhigh!=1 */
