#ident "$Id: frsdata.c,v 1.6 1997/10/21 20:48:07 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.
 * 
 *****************************************************************************/

/*****************************************************************************
 *                                                                           *
 * (c) COPYRIGHT 1991, 1992 HARRIS & JEFFRIES, INC.                          *
 *                          888 WASHINGTON STREET                            *
 *                          SUITE 130                                        *
 *                          DEDHAM, MA  02026                                *
 * ALL RIGHTS RESERVED                                                       *
 *                                                                           *
 * This software is the property of Harris & Jeffries, Inc. and is furnished *
 * under license by Harris & Jeffries, Inc. and this software may be used    *
 * only in accordance with the terms of said license.  This copyright notice *
 * may not be removed, modified or obliterated without the prior written     *
 * permission of Harris & Jeffries, Inc.                                     *
 *                                                                           *
 * This software may not be copied, transmitted, provided to or otherwise    *
 * made available to any other person, company, corporation or other entiry  *
 * except as specified in the terms of said license.                         *
 *                                                                           *
 * No right, title, ownership or other interest in the software is hereby    *
 * granted or transferred.                                                   *
 *                                                                           *
 * The information contained herein is subject to change without notice and  *
 * should not be construed as a commitment by Harris & Jeffries, Inc.        *
 *                                                                           *
 *****************************************************************************

 MODULE NAME:


  ######  #####    ####   ####     ##    #####    ##           ####
  #       #    #  #       #   #   #  #     #     #  #         #    #
  #####   #    #   ####   #   #  #    #    #    #    #        #
  #       #####        #  #   #  ######    #    ######  ###   #
  #       #   #   #    #  #   #  #    #    #    #    #  ###   #    #
  #       #    #   ####   ####   #    #    #    #    #  ###    ####


  ORIGINAL AUTHOR:  David Jeffries
  SUBJECT MATTER 
      SPECIALIST:   Deepak Shahane

  REVISION HISTORY:

  Date     Version  Name          Description
  -------- -------  ------------  --------------------------------------------
  06-25-92 2.00A    H&J (DJ)      Original

  $Log: frsdata.c,v $
  Revision 1.6  1997/10/21 20:48:07  gary
  Modifications made to accomodate the SOH (Streams-on-host) folks.

  Revision 1.5  1996/10/22 21:18:51  gary
  A bit of rearranging was required in order to move the FRF9_Stats_t
  structure over to fr_cont.h. (needed by host drivers)

  Revision 1.4  1996/04/26 19:57:36  gary
  First rev of changes: Frame Relay on PRI card.
  Bug fix: sequence number on segmented frames was wrong.

  Revision 1.3  1995/04/10 16:31:49  garyp
  remove strm.h

 * Revision 1.7  1994/07/27  20:34:40  stavrosm
 * Release 2.2
 *
 * Revision 1.6  1994/07/13  17:16:06  stavrosm
 * Changed default values forlink state and PLL state from DISABLED to ENABLED.
 *
 * Revision 1.5  1994/07/08  14:49:58  stavrosm
 * Initialized the new FRS database fields (link state and PLL state) to
 * DISABLED.
 *
 * Revision 1.4  1994/06/23  16:01:18  stavrosm
 * Added changes to support new frame relay configuration scheme
 *
 * Revision 1.1  1994/06/23  15:59:35  stavrosm
 * Initial revision
 *
 * Revision 1.3  1993/11/02  11:17:47  stavrosm
 * Release 2.1
 *
..............................................................................

  DESCRIPTION:
    
    This file contains default Frame Relay configuration data for use with
    the Sample Test Application.  Users are free to modify this file and
    its data for use with their own test applications.

..............................................................................

  REF DOCUMENTS:

  (a) U.S Sprint Frame Relay Service Interface Specification Doc #: 5136.02
  (b) Frame Relay Interface Specification, Stratacom Inc., Doc #: 001-207460
  (c) Frame Relay Stack Functional Specification Rel 1.2 Harris & Jeffries Inc.
  (d) Frame Relay Stack External Specification Rel 1.2 Harris & Jeffries Inc.
  (e) MIB for Frame Relay DTEs - RFC Draft from Internet Engr Task Force (IETF).
  (f) Multiprotocol Interconnect over Frame Relay Networks - T. Bradley, C.Brown
      Wellfleet Communications, Inc. A. Malis BBN Communications Oct 14, 1991.

..............................................................................


*/


 /****************************************************************************
 * 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: frsdata.c,v 1.6 1997/10/21 20:48:07 gary Exp $I
 ****************************************************************************/


#define FRSDATA_C


#define STATIC static
#define BUFP_T 	bufp_t
#define DBDIAG(MP, BYTE)    (MP)->b_datap->db_diag=BYTE;

#include "types.h"
#include "errno.h"
#include "stream.h"
#include "strlog.h"
#include "system.h"
#include "ll_proto.h"
#include "ll_control.h"
#include "timer.h"
#include "x25trace.h"
#include "fr_cont.h"
#include "fr.h"
#include "frs.h"
#include "lapb.h"

/**
  Configuration "file"
**/

FRS_SYS_CFG gGlobalCfg =
{
    FRS_SFWR_RELID,            /* Software Release ID */
    FRS_MAX_LINKS,                         /* Max Links */
    FRS_MAX_CHANNELS,                        /* Max PLLs */
#    if FRS_DCE_SUPPORT
    1,                         /* Node Number */
    10,                        /* CMI T1 */
#    endif
    278,                       /* Max buffer size for user payload */
    
/* Link Configuration Array Entries */    
    { {"FRS_LINK_NUMBER_1\0"    /* frs_conf_name */
     ,0                       /* frs_link_ndx */
     , FRS_OPT_STATS_ENBL | 
       FRS_OPT_INJ_MGR_BUFRD | 
       FRS_OPT_ENCAP_ENABLE   /* frs_link_flags */
     ,0                       /* frs_link_lmi_dlci */
     ,0                       /* index of first channel */
     ,MIN_PAYLOAD_OFFSET+1024    /* frs_link_max_frsize */
     ,6                       /* frs_link_mN1 */
     ,3                       /* frs_link_mN2 */
     ,4                       /* frs_link_mN3 */
     ,0                       /* frs_link_mN4 */
     ,FRS_MAX_CHANNELS        /* frs_link_mP1 */
     ,1                       /* frs_link_mP10 */
     ,10                      /* frs_link_mT1 */
     ,15                      /* frs_link_mT2 */
     ,0                       /* frs_link_mT3 */
     ,1                       /* frs_link_state = ENABLED */
    },
    {
     "FRS_LINK_NUMBER_2\0"    /* frs_conf_name */
     ,1                       /* frs_link_ndx */
     , FRS_OPT_STATS_ENBL | 
       FRS_OPT_ENCAP_ENABLE   /* frs_link_flags */
     ,0                       /* frs_link_lmi_dlci */
     ,0                       /* index of first channel */
     ,MIN_PAYLOAD_OFFSET+1024    /* frs_link_max_frsize */
     ,6                       /* frs_link_mN1 */
     ,3                       /* frs_link_mN2 */
     ,4                       /* frs_link_mN3 */
     ,0                       /* frs_link_mN4 */
     ,FRS_MAX_CHANNELS        /* frs_link_mP1 */
     ,1                       /* frs_link_mP10 */
     ,10                      /* frs_link_mT1 */
     ,15                      /* frs_link_mT2 */
     ,0                       /* frs_link_mT3 */
     ,1                       /* frs_link_state = ENABLED */ 
    } },

  /* PLL Configuration Array Entries */
  {{"FRS_PLL_NUMBER_01\0"  /* frs_pll_name */
       ,0                      /* frmrly_ccbcfg[] index */
       ,1                      /* frs_pll_link */
       ,1                      /* frs_pll_next */
       ,30                     /* frs_pll_dlci */
       ,256000                 /* frs_pll_BcMax Burst Size Bc 1 Mbit */
       ,128000                 /* frs_pll_BcMin Min Burst Sze = 64Kbytes */
       ,0                      /* Excess Burst Size = 0 bits */
       ,256000                 /* frs_pll_CIR = 64Kbps */
       ,10                     /* frs_pll_CMP = 10 sec */
#    if FRS_DCE_SUPPORT
       ,0                      /* frs_pll_fwd_node */
       ,1                      /* frs_pll_fwd_link */
       ,31                     /* frs_pll_fwd_dlci */
#    endif
       ,1                      /* frs_pll_state = ENABLED */     
    },
    {
       "FRS_PLL_NUMBER_02\0"   /* frs_pll_name */
       ,1                      /* frmrly_ccbcfg[] index */
       ,1                      /* frs_pll_link */
       ,2                      /* frs_pll_next */
       ,31                     /* frs_pll_dlci */
       ,256000                 /* frs_pll_BcMax Burst Size Bc 1 Mbit */
       ,128000                 /* frs_pll_BcMin Min Burst Sze = 64Kbytes */
       ,0                      /* Excess Burst Size = 0 bits */
       ,256000                 /* frs_pll_CIR = 256Kbps */
       ,10                     /* frs_pll_CMP = 10 sec */
#    if FRS_DCE_SUPPORT
       ,0                      /* frs_pll_fwd_node */
       ,1                      /* frs_pll_fwd_link */
       ,30                     /* frs_pll_fwd_dlci */
#    endif
       ,1                      /* frs_pll_state = ENABLED */    
    },
    {
       "FRS_PLL_NUMBER_03\0"   /* frs_pll_name */
       ,2                      /* frmrly_ccbcfg[] index */
       ,1                      /* frs_pll_link */
       ,3                      /* frs_pll_next */
       ,32                     /* frs_pll_dlci */
       ,256000                 /* frs_pll_BcMax Burst Size Bc 1 Mbit */
       ,128000                 /* frs_pll_BcMin Min Burst Sze = 64Kbytes */
       ,0                      /* Excess Burst Size = 0 bits */
       ,256000                 /* frs_pll_CIR = 768Kbps */
       ,10                     /* frs_pll_CMP = 10 sec */
#    if FRS_DCE_SUPPORT
       ,0                      /* frs_pll_fwd_node */
       ,0                      /* frs_pll_fwd_link */
       ,0                      /* frs_pll_fwd_dlci */
#    endif
       ,1                      /* frs_pll_state = ENABLED */   
    },
    {
       "FRS_PLL_NUMBER_04\0"   /* frs_pll_name */
       ,3                      /* frmrly_ccbcfg[] index */
       ,1                      /* frs_pll_link */
       ,FRS_CFG_DELIMITER      /* frs_pll_next */
       ,33                     /* frs_pll_dlci */
       ,256000                 /* frs_pll_BcMax Burst Size Bc 1Mbit */
       ,128000                 /* frs_pll_BcMin Min Burst Sze = 64Kbytes */
       ,0                      /* Excess Burst Size = 0 bits */
       ,256000                 /* frs_pll_CIR = 1.536Mbps */
       ,10                     /* frs_pll_CMP = 10 sec */
#    if FRS_DCE_SUPPORT
       ,0                      /* frs_pll_fwd_node */
       ,0                      /* frs_pll_fwd_link */
       ,0                      /* frs_pll_fwd_dlci */
#    endif
       ,1                      /* frs_pll_state = ENABLED */          
  },

  {
        "FRS_PLL_NUMBER_01\0"  /* frs_pll_name */
       ,4                      /* frmrly_ccbcfg[] index */
       ,2                      /* frs_pll_link */
       ,5                      /* frs_pll_next */
       ,30                     /* frs_pll_dlci */
       ,256000                 /* frs_pll_BcMax Burst Size Bc 1 Mbit */
       ,128000                 /* frs_pll_BcMin Min Burst Sze = 64Kbytes */
       ,0                      /* Excess Burst Size = 0 bits */
       ,256000                 /* frs_pll_CIR = 64Kbps */
       ,10                     /* frs_pll_CMP = 10 sec */
#    if FRS_DCE_SUPPORT
       ,0                      /* frs_pll_fwd_node */
       ,1                      /* frs_pll_fwd_link */
       ,31                     /* frs_pll_fwd_dlci */
#    endif
       ,1                      /* frs_pll_state = ENABLED */           
    },
    {
       "FRS_PLL_NUMBER_02\0"   /* frs_pll_name */
       ,5                      /* frmrly_ccbcfg[] index */
       ,2                      /* frs_pll_link */
       ,6                      /* frs_pll_next */
       ,31                     /* frs_pll_dlci */
       ,256000                 /* frs_pll_BcMax Burst Size Bc 1 Mbit */
       ,128000                 /* frs_pll_BcMin Min Burst Sze = 64Kbytes */
       ,0                      /* Excess Burst Size = 0 bits */
       ,256000                 /* frs_pll_CIR = 256Kbps */
       ,10                     /* frs_pll_CMP = 10 sec */
#    if FRS_DCE_SUPPORT
       ,0                      /* frs_pll_fwd_node */
       ,1                      /* frs_pll_fwd_link */
       ,30                     /* frs_pll_fwd_dlci */
#    endif
       ,1                      /* frs_pll_state = ENABLED */             
    },
    {
       "FRS_PLL_NUMBER_03\0"   /* frs_pll_name */
       ,6                      /* frmrly_ccbcfg[] index */
       ,2                      /* frs_pll_link */
       ,7                      /* frs_pll_next */
       ,32                     /* frs_pll_dlci */
       ,256000                 /* frs_pll_BcMax Burst Size Bc 1 Mbit */
       ,128000                 /* frs_pll_BcMin Min Burst Sze = 64Kbytes */
       ,0                      /* Excess Burst Size = 0 bits */
       ,256000                 /* frs_pll_CIR = 768Kbps */
       ,10                     /* frs_pll_CMP = 10 sec */
#    if FRS_DCE_SUPPORT
       ,0                      /* frs_pll_fwd_node */
       ,0                      /* frs_pll_fwd_link */
       ,0                      /* frs_pll_fwd_dlci */
#    endif
       ,1                      /* frs_pll_state = ENABLED */    
    },
    {
       "FRS_PLL_NUMBER_04\0"   /* frs_pll_name */
       ,7                      /* frmrly_ccbcfg[] index */
       ,2                      /* frs_pll_link */
       ,FRS_CFG_DELIMITER      /* frs_pll_next */
       ,33                     /* frs_pll_dlci */
       ,256000                 /* frs_pll_BcMax Burst Size Bc 1Mbit */
       ,128000                 /* frs_pll_BcMin Min Burst Sze = 64Kbytes */
       ,0                      /* Excess Burst Size = 0 bits */
       ,256000                 /* frs_pll_CIR = 1.536Mbps */
       ,10                     /* frs_pll_CMP = 10 sec */
#    if FRS_DCE_SUPPORT
       ,0                      /* frs_pll_fwd_node */
       ,0                      /* frs_pll_fwd_link */
       ,0                      /* frs_pll_fwd_dlci */
#    endif
       ,1                      /* frs_pll_state = ENABLED */   
   }}
    
};
