home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / DASD / DEVHELP / DHCALL10.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-14  |  4.6 KB  |  193 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. ; SCCSID = %w% %e%
  12. ;**************************************************************************
  13. ;*
  14. ;* SOURCE FILE NAME = DHCALL10.ASM
  15. ;*
  16. ;* DESCRIPTIVE NAME = C Callable DevHelp interface
  17. ;*                    Character Monitor related DevHelp Calls
  18. ;*
  19. ;*
  20. ;* VERSION = V2.0
  21. ;*
  22. ;* DATE
  23. ;*
  24. ;* DESCRIPTION :
  25. ;*
  26. ;* Purpose:
  27. ;*
  28. ;*
  29. ;*
  30. ;*
  31. ;* FUNCTIONS  :
  32. ;*
  33. ;*
  34. ;*
  35. ;*
  36. ;*
  37. ;*
  38. ;*
  39. ;* NOTES
  40. ;*
  41. ;*
  42. ;* STRUCTURES
  43. ;*
  44. ;* EXTERNAL REFERENCES
  45. ;*
  46. ;*
  47. ;*
  48. ;* EXTERNAL FUNCTIONS
  49. ;*
  50. ;* CHANGE ACTIVITY =
  51. ;*   DATE      FLAG        APAR   CHANGE DESCRIPTION
  52. ;*   --------  ----------  -----  --------------------------------------
  53. ;*   10/22/93  @V74979     74979  Change return type to USHORT
  54. ;*   10/22/93  @V74979     74979  Fix DevHelp_DeRegister
  55. ;*   12/02/93  @V76282     76282  Fix DevHelp_MonWrite
  56. ;*
  57. ;****************************************************************************
  58.  
  59.         .xlist
  60.         include dhmacs.inc
  61.         .list
  62.  
  63. ;*
  64. ;*  Monitors
  65. ;*
  66.  
  67. Code    segment dword public 'CODE'
  68.         assume  CS:Code,DS:_DATA
  69.  
  70.  
  71. ;*
  72. ;*
  73. ;*  USHORT APIENTRY DevHlp_MonFlush( USHORT MonitorHandle );
  74. ;*
  75. ;*
  76.  
  77.         DHDef   MonFlush
  78.         DHArgs  USHORT,  MonitorHandle
  79.  
  80.         mov     ax, Stk.MonitorHandle
  81.  
  82.         DHCall
  83.  
  84.         DHRet1
  85.  
  86.  
  87. ;*
  88. ;*
  89. ;*  USHORT APIENTRY DevHlp_Register( USHORT MonitorHandle, USHORT MonitorPID,
  90. ;*                                   PBYTE InputBuffer, NPBYTE OutputBuffer,
  91. ;*                                   USHORT ChainFlag );
  92. ;*
  93. ;*
  94.  
  95.         DHDef   Register
  96.         DHArgs  USHORT,  MonitorHandle
  97.         DHArgs  USHORT,  MonitorPID
  98.         DHArgs  PBYTE,   InputBuffer
  99.         DHArgs  NPBYTE,  OutputBuffer
  100.         DHArgs  USHORT,  ChainFlag
  101.  
  102.         mov     ax, Stk.MonitorHandle
  103.         mov     cx, Stk.MonitorPID
  104.         les     si, Stk.InputBuffer
  105.         mov     di, Stk.OutputBuffer
  106.         mov     dh, Stk.ChainFlag
  107.  
  108.         DHCall
  109.  
  110.         DHRet1
  111.  
  112.  
  113. ;*
  114. ;*
  115. ;*  USHORT APIENTRY DevHlp_DeRegister( USHORT MonitorPID,
  116. ;*                                     USHORT MonitorHandle
  117. ;*                                     PUSHORT MonitorsLeft);
  118. ;*
  119. ;*
  120.  
  121.         DHDef   DeRegister
  122.         DHArgs  USHORT,  MonitorPID                                     ;@V74979
  123.         DHArgs  USHORT,  MonitorHandle
  124.         DHArgs  PUSHORT, MonitorsLeft
  125.  
  126.         mov     ax, Stk.MonitorHandle
  127.         mov     bx, Stk.MonitorPID
  128.  
  129.         DHCall
  130.  
  131.         les     bx, Stk.MonitorsLeft
  132.         mov     es:[bx], ax
  133.  
  134.         DHRet1
  135.  
  136. ;*
  137. ;*
  138. ;*  USHORT APIENTRY DevHlp_MonitorCreate( USHORT MonitorHandle,
  139. ;*                                        PBYTE FinalBuffer,
  140. ;*                                        NPFN NotifyRtn,
  141. ;*                                        PUSHORT MonitorChainHandle
  142. ;*
  143. ;*
  144.  
  145.         DHDef   MonitorCreate
  146.         DHArgs  USHORT,  MonitorHandle
  147.         DHArgs  PBYTE,   FinalBuffer
  148.         DHArgs  NPFN,    NotifyRtn
  149.         DHArgs  PUSHORT, MonitorChainHandle
  150.  
  151.         mov     ax, Stk.MonitorHandle
  152.         les     si, Stk.FinalBuffer
  153.         mov     di, Stk.NotifyRtn
  154.  
  155.         DHCall
  156.  
  157.         les     bx, Stk.MonitorChainHandle
  158.         mov     es:[bx], ax
  159.  
  160.         DHRet1
  161.  
  162.  
  163. ;*
  164. ;*
  165. ;*  USHORT APIENTRY DevHlp_MonWrite( USHORT MonitorHandle, PBYTE DataRecord,
  166. ;*                                   USHORT Count, ULONG TimeStampMS,   ;@V76282
  167. ;*                                   USHORT WaitFlag );
  168. ;*
  169.  
  170.         DHDef   MonWrite
  171.         DHArgs  USHORT,  MonitorHandle
  172.         DHArgs  PBYTE,   DataRecord
  173.         DHArgs  USHORT,  Count
  174.         DHArgs  ULONG,   TimeStampMS                                    ;@V76282
  175.         DHArgs  USHORT,  WaitFlag
  176.  
  177.         mov     ax, Stk.MonitorHandle
  178.         mov     cx, Stk.Count
  179.         mov     si, Stk.DataRecord
  180.         mov     di, Stk.TimeStampMS[2]                                  ;@V76282
  181.         mov     bx, Stk.TimeStampMS[0]                                  ;@V76282
  182.         mov     dh, Stk.WaitFlag
  183.  
  184.         DHCall
  185.  
  186.         DHRet1
  187.  
  188.  
  189. Code    Ends
  190.  
  191.  
  192.         End
  193.