home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 4 Drivers / 04-Drivers.zip / scsiopt2.zip / data.c < prev    next >
C/C++ Source or Header  |  1997-12-16  |  2KB  |  93 lines

  1. /*
  2.  * $Source: e:/source/driver/perf/RCS/data.c,v $
  3.  * $Revision: 1.4 $
  4.  * $Date: 1997/12/16 02:19:46 $
  5.  * $Locker:  $
  6.  *
  7.  * Declares all data used in this driver.
  8.  *
  9.  * $Log: data.c,v $
  10.  * Revision 1.4  1997/12/16 02:19:46  vitus
  11.  * - removed szDriverName (driver uses definition from startup.asm)
  12.  *
  13.  * Revision 1.3  1997/12/11 01:45:52  vitus
  14.  * - initialies ppDiskDDHeader - moved from BBS to DATA segment
  15.  *
  16.  * Revision 1.2  1997/12/06 00:45:03  vitus
  17.  * - enabled support for WatCom C
  18.  *
  19.  * Revision 1.1  1997/10/17 00:07:09  vitus
  20.  * Initial revision
  21.  * --------------------------------------------
  22.  * Author: Vitus Jensen, 2:2474/424, 1997
  23.  */
  24. #pragma off (unreferenced)
  25. static char vcid[]="$Id: data.c,v 1.4 1997/12/16 02:19:46 vitus Exp $";
  26. #pragma on (unreferenced)
  27.  
  28.  
  29. #define INCL_NOBASEAPI
  30. #define INCL_NOPMAPI
  31. #include <os2.h>
  32.  
  33. #include <devcmd.h>
  34.  
  35. #define INCL_INITRP_ONLY
  36. #include <reqpkt.h>
  37.  
  38. #include <scb.h>
  39. #include <abios.h>
  40.  
  41. #include <iorb.h>
  42. #include <addcalls.h>
  43.  
  44. #if defined(__WATCOMC__)
  45. # include <devhelp.h>
  46. typedef USHORT NEAR *    NPUSHORT;
  47. typedef VOID NEAR *    NPVOID;
  48. #else
  49. # include <dhcalls.h>
  50. #endif
  51.  
  52. #include "scsiopt.h"
  53. #include "proto.h"
  54. #include "extern.h"
  55.  
  56.  
  57.  
  58. /*
  59.  * Static Data
  60.  */
  61.  
  62. ULONG        ppDiskDDHeader = 0;
  63. PFN        Device_Help =    0;
  64. struct InfoSegGDT FAR    *pGlobalInfoSeg = 0;
  65.  
  66. USHORT        fDriverFlags =    0;
  67. USHORT        hdThisDriver =    0;
  68.  
  69.  
  70.  
  71. /*
  72.  * Initialization Data
  73.  */
  74.  
  75. UCHAR        MemPool[30*1024] =    {0};
  76. NPUCHAR        npInitData =        MemPool;
  77. BYTE        DeviceTable[MAX_DEVICETABLE_SIZE] = {0};
  78. SCATGATENTRY    ScGaEntry = {0};
  79.  
  80.  
  81. /*
  82.  * Message generated by this driver.  May
  83.  * be discarded after INIT.
  84.  */
  85. #define MSG_REPLACEMENT_STRING    1178        /* %1 %2 %3 ... */
  86.  
  87. UCHAR    szMsgBuffer[1024]        = {0};
  88.  
  89. MSGTABLE msgBuffer = {
  90.     MSG_REPLACEMENT_STRING, 1, (PBYTE)szMsgBuffer 
  91. };
  92.  
  93.