home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cdrom.zip / DDK / BASE / SRC / DEV / DASD / CDROM / NEC / nedata.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-18  |  3.7 KB  |  108 lines

  1. /**************************************************************************
  2.  *
  3.  * SOURCE FILE NAME = NEDATA.C
  4.  *
  5.  * DESCRIPTIVE NAME = Static/Initialization data for NEC CD-ROM Filter
  6.  *
  7.  * Copyright : COPYRIGHT IBM CORPORATION, 1991, 1992
  8.  *             LICENSED MATERIAL - PROGRAM PROPERTY OF IBM
  9.  *             REFER TO COPYRIGHT INSTRUCTION FORM#G120-2083
  10.  *             RESTRICTED MATERIALS OF IBM
  11.  *             IBM CONFIDENTIAL
  12.  *
  13.  * VERSION = V2.0
  14.  *
  15.  * DATE
  16.  *
  17.  * DESCRIPTION
  18.  *
  19.  *
  20.  * FUNCTIONS
  21.  *
  22.  * ENTRY POINTS:
  23.  *
  24.  * DEPENDENCIES:
  25.  *
  26.  * NOTES
  27.  *
  28.  *
  29.  * STRUCTURES
  30.  *
  31.  * EXTERNAL REFERENCES
  32.  *
  33.  * EXTERNAL FUNCTIONS
  34.  *
  35.  * CHANGE ACTIVITY =
  36.  *  DATE      FLAG        APAR   CHANGE DESCRIPTION
  37.  *  --------  ----------  -----  --------------------------------------
  38.  *  mm/dd/yy  @Vr.mpppxx  xxxxx  xxxxxxx
  39.  ****************************************************************************/
  40.  
  41. #include "os2.h"
  42. #include "misc.h"
  43. #include "iorb.h"
  44. #include "scsi.h"
  45. #include "cdbscsi.h"
  46. #include "dhcalls.h"
  47. #include "nedefs.h"
  48. #include "fltdefs.h"
  49.  
  50. /*
  51. **  GLOBAL DATA
  52. **  -----------
  53. **  1. Static data
  54. **  2. Static init data discarded after init time
  55. */
  56.  
  57. PFN             Device_Help=0L;            /* far ptr to devhelp function    */
  58. PVOID           pDataSeg=0L;               /* virt ptr of our data segment   */
  59. ULONG           ppDataSeg=0L;              /* phys addr of our data segment  */
  60. ULONG           plDataSeg=0L;              /* linear addr of our data seg    */
  61. USHORT          FilterFlags=0;             /* Global driver flags            */
  62. USHORT          NumCDROMDrives=0;          /* Number of CD-ROM drives        */
  63. USHORT          FilterADDHandle = 0;
  64. USHORT          InitComplete = 0;
  65.  
  66. struct Vendor   Vendor [] = { "NEC     " ,
  67.                             };
  68.  
  69. USHORT  vendor_count = sizeof (Vendor) / sizeof (Vendor [0]);
  70.  
  71.  
  72. IORB_CDB  default_iorb_cdb = {
  73.  
  74.    sizeof(IORB_ADAPTER_PASSTHRU),            /* IORB Length                */
  75.    0,                                        /* Unit Identifier            */
  76.    IOCC_ADAPTER_PASSTHRU,                    /* Command Code               */
  77.    IOCM_EXECUTE_CDB,                         /* Command Modifier           */
  78.    IORB_ASYNC_POST + IORB_REQ_STATUSBLOCK,   /* Request Control Flags      */
  79.    0,                                        /* Status                     */
  80.    0,                                        /* Error Code                 */
  81.    0,                                        /* Cmd completion timeout (s) */
  82.    sizeof(SCSI_STATUS_BLOCK),                /* Status block length        */
  83.    0,                                        /* Status block               */
  84.    0,                                        /* Reserved, MBZ              */
  85.    0,                                        /* Pointer to next IORB       */
  86.    0,                                        /* Notification Address       */
  87.    0,                                        /* For use by DM              */
  88.    0,                                        /* For use by ADD             */
  89.  
  90.    1,                                        /* Count of S/G list elements */
  91.    0,                                        /* far ptr to S/G List        */
  92.    0,                                        /* physical addr of S/G List  */
  93.    0,                                        /* Length of CDB              */
  94.    0,                                        /* Pointer to CDB             */
  95.    0,                                        /* phys ptr to SCB            */
  96.    0                                         /* Flags                      */
  97. };
  98.  
  99.  
  100. /*
  101. ** Configuration Data
  102. */
  103. USHORT    UnitCBCount            =  0;
  104. UNITCB    UnitCBTable[MAX_UNITS] = {0};
  105.  
  106. UCHAR     Filter_EndofData = 0;
  107.  
  108.