/*DDK*************************************************************************/
/*                                                                           */
/* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
/*                                                                           */
/*    The following IBM OS/2 WARP source code is provided to you solely for  */
/*    the purpose of assisting you in your development of OS/2 WARP device   */
/*    drivers. You may use this code in accordance with the IBM License      */
/*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
/*    Copyright statement may not be removed.                                */
/*                                                                           */
/*****************************************************************************/
/**************************************************************************
 *
 * SOURCE FILE NAME = TDIDINIT.C
 *
 * DESCRIPTIVE NAME = Touch initialisation data
 *
 *
 * VERSION = V2.0
 *
 * DATE        07/30/91
 *
 * DESCRIPTION
 *
 *
 * FUNCTIONS
 *
 * ENTRY POINTS:
 *
 * DEPENDENCIES:
 *
 * NOTES
 *
 *
 * STRUCTURES
 *
 * EXTERNAL REFERENCES
 *
 * EXTERNAL FUNCTIONS
 *
*/

#define  INCL_OS2STD
#define  INCL_DOSSESMGR
#include <os2.h>
#include "toudefs.h"
#include "reqblk.h"
#include "toutypes.h"
#include "devhlp.h"

/*
** local global data in INIT_GROUP
*/

/* UCHAR NEAR  SqName[] = "SINGLEQ$"; */
UCHAR NEAR OurName[]    = "TOUCH$";
UCHAR NEAR SysMsgName[] = "OSO001.MSG";
UCHAR NEAR TdiMsgName[] = "TDI.MSG";

IDC NEAR dd_idc_temp = {0};           /* init to keep in init_group          */
UCHAR NEAR DD_Name[] = "        ";    /* filled in at init by 'TYPE='        */
USHORT NEAR ErrNum;

TOKENS Tokens[] =
{
  /* Token        Token           Num     Used */
  /* name         index           args    flag */

  "TYPE=",        TOK_TYPE,       1,      0,
  "SEL=",         TOK_SEL,        4,      0,
  "QSIZE=",       TOK_QSIZE,      1,      0,
  NULL,           0,              0,      0
} ;

/*
** data for DosSmRegisterDD() call
*/
REGISTERDATA NEAR SmData =
{
  sizeof(SmData),

#if OS_VER == 20
  /* 0x00f8, */
  SMREG_TERMINATE+SMREG_CREATE+SMREG_PRESWITCH+SMREG_POSTSWITCH,
#else
  0x000e,                             /* temp for os2-1.2 testing            */
#endif
  (PSZ)OurName
} ;

/*
** end
*/
