/* rcsid[]="$Header: useful.h,v 820.1 86/12/04 19:56:56 root Exp $" */
/* sccsid[]="%W% %Y% %Q% %G%" */

/************************************************************************
*									*
*				Copyright 1984				*
*			VALID LOGIC SYSTEMS INCORPORATED		*
*									*
*	This listing contains confidential proprietary information	*
*	which is not to be disclosed to unauthorized persons without	*
*	written consent of an officer of Valid Logic Systems 		*
*	Incorporated.							*
*									*
*	The copyright notice appearing above is included to provide	*
*	statutory protection in the event of unauthorized or 		*
*	unintentional public disclosure.				*
*									*
************************************************************************/

/* Generally useful types. */
typedef unsigned char byte; 
typedef unsigned short bit16;
typedef unsigned  int bit32;
typedef int boolean;
typedef int (*fncp)();

#define TRUE 1
#define FALSE 0
#define PANIC -1		/* Used to flag PANIC before state restoral*/

/* Values pertaining to pages, segments and the Multibus		*/
#define PGSHFT 12
#define PGMASK (1<<PGSHFT)-1
#define SEGSHFT 4              /* Pages to segments			*/
#define PGPERSEG 16
#define MBSEGS 256
#define MBPAGES PGPERSEG*MBSEGS

typedef byte frame[1<<PGSHFT];
