/*
 ****************************************************************************
 * Copyright (c) 1990-98 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 copyrighted work of Digi International
 * Inc.  Except as permitted by federal law, 17 USC 117, copying is strictly
 * prohibited.
 * 
 * Restricted Rights Legend
 *
 * Use, duplication, or disclosure by the Government is subject to
 * restrictions set forth in sub-paragraph (c)(1)(ii) of The Rights in
 * Technical Data and Computer Software clause at DFARS 252.227-7031 or
 * subparagraphs (c)(1) and (2) of the Commercial Computer Software -
 * Restricted Rights at 48 CFR 52.227-19, as applicable.
 *
 * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
 *
 ****************************************************************************
 */

/*
 *----------------------------------------------------------------------
 *  Module File:  config.h
 *
 *  Purpose:
 *
 *       Driver configurable stuff
 *
 *       In general this file contains the defines which vary from driver to
 *       driver and the configurable defines for registry entries and 
 *       configurable defaults and maximum values.
 *
 *
 *----------------------------------------------------------------------
 */

/*
 * Registry Key and Path constants.
 */
#define DIGIASYN_DEVICE          L"\\Device\\DigiAsyn"
#define DIGIASYN_PREFIX          L"DigiAsyn"
#define PARAMETERS_PATH          L"\\Parameters"
#define DEVICE_PATH              L"\\Device\\"
#define SERIALCOMM_PATH          L"SERIALCOMM"
#define LINE_PATH                L"\\"
#define PORT_PATH                L"\\"
#define REG_DELIMITER            L"\\"

#define QUEUE_WRITES_IN_ADAPTER  L"QueueWritesInAdapter"
#define REG_DXB_INSTANCE_PATH    L"RegPath"

#define ASYN_REG_PATH_LENGTH 300     // Make significantly large.

//
// Serial Name we use to communciate with S/DXB
//
#define  SERIAL_STREAM_DEVNAME   "SERIAL"

//
// S/DXB Defaults
//
#define SDXB_RMAX_DEF           512
#define SDXB_RTIME_DEF          100         // MilliSeconds
#define SDXB_TMAX_DEF           256
#define SDXB_TTIME_DEF          1000        // MilliSeconds
#define SDXB_MAXLEN_DEF         DEF_RX_BUF_SIZE
#define ASYN_DEF_BAUDRATE  9600
#define ASYN_DEF_XON       0x11
#define ASYN_DEF_XOFF      0x13

#define SDXB_LTIME_DEF         100            // Line Error Report time in mSec
#define SDXB_LTIME_OFF         0           // Line Error Report is off
#define DEF_COMPLETE_WHEN_SENT         TRUE
#define DEF_Q_WRITES_IN_ADAPTER        TRUE

// Allow a maximum of this number of Syncs to be outstanding.
// This should be easily enough, in reality about 10 is enough
#define MAX_SDXB_SYNC_WINDOW  0x8000      

#define VER_FILEVERSION             4,0,0,0

