/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	ga_data.c,v $
 * Revision 1.1.3.2  91/11/20  13:52:36  Hal_Project
 * 	Moved from dec/data; pool reorg
 * 	[91/11/18  00:44:52  Donald_Dutile]
 * 
 * Revision 4.2  91/09/19  23:23:54  devbld
 * 	Adding ODE Headers
 * 
 * $EndLog$
 */
/*	
 *	@(#)$RCSfile: ga_data.c,v $ $Revision: 1.1.3.2 $ (DEC) $Date: 91/11/20 13:52:36 $
 */ 
/*
 */
/*
 * (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
 * ALL RIGHTS RESERVED
 */
/*
 * Mach Operating System
 * Copyright (c) 1989 Carnegie-Mellon University
 * All rights reserved.  The CMU software License Agreement specifies
 * the terms and conditions for use and redistribution.
 */
/*
 * OSF/1 Release 1.0
 */
/* 
 * derived from ga_data.c	4.1	(ULTRIX)	7/2/90
 */

#define _GA_DATA_C_

#include <sys/param.h>
#include <io/dec/tc/gx.h>
#include <io/dec/tc/ga.h>

#include "ga.h"				/* for NGA */

#ifdef BINARY

#ifdef GA_ALLOC_TX
int ga_dummy();
#endif

#ifdef GA_ALLOC_DT
extern int Ring2da[];
#endif

/* XXX temp debugging garf ??? XXX */
int gaVintr_count[8] = {0, 0, 0, 0, 0 ,0 ,0, 0};
int gaSintr_count[8] = {0, 0, 0, 0, 0 ,0 ,0, 0};
int gaPintr_count[8] = {0, 0, 0, 0, 0 ,0 ,0, 0};
int gaEintr_count[8] = {0, 0, 0, 0, 0 ,0 ,0, 0};

ga_ComAreaPtr gaComArea;

#else binary

#ifdef GA_ALLOC_DT
/* size MUST match gx_priv_size in ga_cons_init, please... */
int	Ring2da[ (sizeof(gxPriv) + _128K + NBPG) / sizeof(int) ];
#endif

#ifdef GA_ALLOC_TX

#define _16W	i++;i++;i++;i++;i++;i++;i++;i++;i++;i++;i++;i++;i++;i++;i++;i++
#define _128W	_16W;_16W;_16W;_16W;_16W;_16W;_16W;_16W
#define _4KB	_128W;_128W;_128W;_128W;_128W;_128W;_128W;_128W
#define _20KB	_4KB;_4KB;_4KB;_4KB;_4KB
#define _32KB	_4KB;_4KB;_4KB;_4KB;_4KB;_4KB;_4KB;_4KB
#define _128KB	_32KB;_32KB;_32KB;_32KB

ga_dummy()
{
    register int i;

#   ifdef HWDEBUG
    _20KB;				/* sizeof(gxPriv) */
#   else
    _4KB;
#   endif

    _128KB;				/* + 128KB */
    _4KB;				/* + NBPG */
    _4KB;				/* + shm alignment */

#if NGA > 1
    _128KB;				/* + 128KB */
    _4KB;				/* + NBPG */
    _4KB;				/* + shm alignment */
#endif

#if NGA > 2
    _128KB;				/* + 128KB */
    _4KB;				/* + NBPG */
    _4KB;				/* + shm alignment */
#endif
}

#endif

#endif binary
