/* rcsid[]="$Header: vgvar.h,v 820.1 86/12/04 19:57:01 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.				*
*									*
************************************************************************/

#define MAXVGB   4      /* Number of VG boards                          */

#define MAXTTYS  12      /* Number of UNIX ttys				*/
#define VGACKDEV 12  /* channel for posting signals and graphics done */
#define VGCOMDEV 15  /* channel for reading window commands, sending graphics */
#define CBLKSIZE  32    /* command block size */

/* VG Board Control Structure */
struct Tvgcntl
{
    char *vgbase;  /* Base address of VG board */
    char *vgCBloc;  /* physical address of circular buffer area	*/
    char vgreload;  /* generation number */
    char vgstate;  /* State of this VG board */
    char vgtype;  /* 'V' for VGB, or 'C' for CGB */
    short *vglstart,*vglstop;  /* physical location of start, stop control */
    short vgstartb,vgstopb;  /* corresponding bits */
    unsigned short vgsegreg;  /* offset to segment register for segment F */
    short vgisleep;  /* 1 bit per window */
    short vgosleep;  /* 1 bit per window */
    unsigned char vgxmtseq[16];  /* per window: highest graphics packet sent */
    unsigned char vgrcvseq[16];  /* per window: highest graphics packet done */
    struct tty vgtty[MAXTTYS];  /* tty structs, one per virtual terminal */
};
