home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / PCMCIA / CLDFM / SHELL.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-14  |  3.1 KB  |  131 lines

  1. ;*DDK*************************************************************************/
  2. ;
  3. ; COPYRIGHT    Copyright (C) 1995 IBM Corporation
  4. ;
  5. ;    The following IBM OS/2 WARP source code is provided to you solely for
  6. ;    the purpose of assisting you in your development of OS/2 WARP device
  7. ;    drivers. You may use this code in accordance with the IBM License
  8. ;    Agreement provided in the IBM Device Driver Source Kit for OS/2. This
  9. ;    Copyright statement may not be removed.;
  10. ;*****************************************************************************/
  11. ;/*****************************************************************************
  12. ;*
  13. ;* SOURCE FILE NAME = SHELL.ASM
  14. ;*
  15. ;* DESCRIPTIVE NAME =
  16. ;*
  17. ;*
  18. ;* VERSION
  19. ;*
  20. ;* DATE
  21. ;*
  22. ;* DESCRIPTION  This file contains the device strategy routine,
  23. ;*              the end of initialization code marker,
  24. ;*              and the end of initialization data marker.
  25. ;*
  26. ;* FUNCTIONS
  27. ;*
  28. ;*
  29. ;* NOTES        NONE
  30. ;*
  31. ;* STRUCTURES   NONE
  32. ;*
  33. ;* EXTERNAL REFERENCES
  34. ;*
  35. ;*              NONE
  36. ;*
  37. ;* EXTERNAL FUNCTIONS
  38. ;*
  39. ;*              NONE
  40. ;*
  41. ;* CHANGE ACTIVITY =
  42. ;*   DATE      FLAG        APAR   CHANGE DESCRIPTION
  43. ;*   --------  ----------  -----  --------------------------------------
  44. ;*   mm/dd/yy  @Vr.mpppxx  xxxxx  xxxxxxx
  45. ;*****************************************************************************/
  46.  
  47.  
  48. .286
  49. .287
  50.  
  51. _DATA   SEGMENT WORD PUBLIC 'DATA'
  52. _DATA   ENDS
  53.  
  54. _BSS    SEGMENT WORD PUBLIC 'BSS'
  55. _BSS    ENDS
  56.  
  57. CONST   SEGMENT WORD PUBLIC 'CONST'
  58. CONST   ENDS
  59.  
  60. _DATA   SEGMENT
  61. _DATA   ENDS
  62.  
  63.  
  64. _BSS    SEGMENT
  65. _BSS    ENDS
  66.  
  67.  
  68. _ENDDATA   SEGMENT WORD PUBLIC 'ENDDATA'
  69. public _End_of_data
  70. _ENDDATA   ENDS
  71.  
  72. _TEXT   SEGMENT WORD PUBLIC 'CODE'
  73. extrn _do_strat:near
  74. public _strategy
  75. public _end_of_text
  76. _TEXT   ENDS
  77.  
  78.  
  79. DGROUP  GROUP   CONST, _BSS, _DATA, _ENDDATA
  80. CGRP    GROUP   _TEXT
  81.  
  82. _TEXT   SEGMENT WORD PUBLIC 'CODE'
  83.         ASSUME cs:CGRP, ds:DGROUP, es:NOTHING, ss:NOTHING
  84.  
  85. ;/***************************************************************************
  86. ;*
  87. ;* FUNCTION NAME = _strategy
  88. ;*
  89. ;* DESCRIPTION   = This function is the device driver strategy routine
  90. ;*                 and entry point into the device driver.
  91. ;*                 The register pair es:bx contains the address of request
  92. ;*                 information from the operating system.
  93. ;*
  94. ;* INPUT         = NONE
  95. ;*
  96. ;* OUTPUT        = NONE
  97. ;*
  98. ;* RETURN-NORMAL =
  99. ;*
  100. ;* RETURN-ERROR  = NONE
  101. ;*
  102. ;**************************************************************************/
  103.  
  104. _strategy proc far
  105.  
  106.             push    es                 ; save registers
  107.             push    bx
  108.  
  109.             call    _do_strat          ; do it
  110.  
  111.             pop     bx                 ; restore registers
  112.             pop     es
  113.  
  114.             ret                        ; done
  115. _strategy endp
  116.  
  117.  
  118. _end_of_text proc far
  119.             ret                ; This is the end of initialization code marker
  120. _end_of_text endp
  121.  
  122.  
  123. _TEXT   ENDS
  124.  
  125. _ENDDATA   SEGMENT WORD PUBLIC 'ENDDATA'
  126.                                ; This is the end of initialization data marker
  127. _End_of_data dw 0
  128. _ENDDATA   ENDS
  129.  
  130.         END
  131.