#ident "$Id: space.c,v 1.6 1997/10/21 20:48:16 gary Exp $"
/*****************************************************************************
 * Copyright (c) 1988-95 Digi International Inc., All Rights Reserved
 * 
 * This  software  contains  proprietary  and  confidential   information   of
 * Digi International  Inc.   By  accepting  transfer  of this copy, Recipient
 * agrees to retain this software in  confidence,  to  prevent  disclosure  to
 * others,  and  to make no  use of this software other than that for which it
 * was delivered.  This is an unpublished copyright work  Digi   International
 * Inc.    Except   as   permitted   by  federal  law,  17 USC 117, copying is
 * strictly prohibited.
 * 
 * Digi  International  Inc.  CONFIDENTIAL  -   (Digi    International    Inc.
 * Confidential  when   combined   with   the   aggregated  modules  for  this
 * product) OBJECT CODE ONLY SOURCE MATERIALS
 * 
 * (C) COPYRIGHT Digi International Inc. 1995
 * 
 * All Rights Reserved
 * 
 * US   Government   Users   Restricted   Rights   -   Use,   duplication   or
 * disclosure  restricted by GSA ADP Schedule Contract with Digi International
 * Inc.
 * 
 *****************************************************************************/

/******************************************************************
 *
 *  H&J Frame Relay Protocol Streams Component
 *
 *  Copyright 1994 Harris and Jefferies
 *  Copyright 1994 Digi, Intl.
 *
 *
 *  Frame Relay space-declaration Module.
 *
 ******************************************************************/


 /****************************************************************************
 * This software contains proprietary and confidential information of Digi  *
 * International Inc.  By accepting transfer of this copy, Recipient agrees *
 * to retain this software in confidence, to prevent disclosure to others,  *
 * and to make no use of this software other than that for which it was     *
 * delivered.  This is an unpublished copyright work of Digi International  *
 * Inc.  Except as permitted by federal law, 17 USC 117, copying is strictly*
 * prohibited.                                                              *
 * Copyright 1994, Digi International Inc.                                  *
 * All rights reserved.                                                     *
 *       $Id: space.c,v 1.6 1997/10/21 20:48:16 gary Exp $I
 ****************************************************************************/



/* Read queue control */
#define RQHWM		     4  /* High water mark of queued read messages  */
#define RQLWM		     1  /* Low water mark of queued read messages   */

#define STATIC static

#include "types.h"
#include "stream.h"
#include "timer.h"
#include "fr_cont.h"
#include "fr.h"
#include "frs.h"

/* Read queue length limits */
uint	fr_rqhwm = RQHWM;
uint	fr_rqlwm = RQLWM;

/* Slot structures */
fr_t  	fr_wtab[NLCBS];

frdev_t fr_devtab[NDEVS];

/* Frame Relay Timer Structures */

FRS_TIMER      *frsTIMERfree_ptr ;
FRS_TIMER      *frsTIMERdispatch_ptr ;
FRS_TIMER	frsTIMERtable[NFRTIMERS] ;

#ifdef	STATIC_MEMORY

LCB		*frsLCBtable_ptrs[NLCBS] ;
CCB		*frsCCBtable_ptrs[NCCBS] ;

LCB 		frsLCBtab[NLCBS]; 	
CCB 		frsCCBtab[NCCBS]; 
LMICCB		frsLMICCBtab[NLMICCBS];
FRS_PROTOCOL_ENTRY	frsFRS_PROTOCOL_ENTRYtab[NFRS_PROTOCOL_ENTRYS];
MULTIPROTOCOL	frsMULTIPROTOCOLtab[NMULTIPROTOCOLS];
EVENT		frsEVENTtab[NEVENTS]; 

u_char frsLCBtable_free[NLCBS] ;
u_char frsCCBtable_free[NCCBS] ;
u_char frsLMICCBtable_free[NLMICCBS] ;
u_char frsFRS_PROTOCOL_ENTRYtable_free[NFRS_PROTOCOL_ENTRYS] ; 
u_char frsMULTIPROTOCOLtable_free[NMULTIPROTOCOLS] ;
u_char frsEVENTtable_free[NEVENTS] ;

#endif
