home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / DASD / DEVHELP / DHCALL6.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-14  |  2.1 KB  |  126 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 = DHCALL6.ASM
  15. ;*
  16. ;* DESCRIPTIVE NAME = C callable DevHelp Interface
  17. ;*              Interrupt/Thread Management 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. ;*    2/ 5/94           78794  File broken apart.
  55. ;*
  56. ;****************************************************************************
  57.  
  58.     .xlist
  59.     include dhmacs.inc
  60.     .list
  61.  
  62. ;*
  63. ;*  Interrupt Management
  64. ;*
  65.  
  66. Code    segment dword public 'CODE'
  67.     assume    CS:Code,DS:_DATA
  68.  
  69.  
  70. ;*
  71. ;*
  72. ;*  USHORT APIENTRY DevHlp_SetIRQ( NPFN IRQHandler, USHORT IRQLevel,
  73. ;*                   USHORT SharedFlag );
  74. ;*
  75. ;*
  76.  
  77.     DHDef    SetIRQ
  78.     DHArgs    NPFN,     IRQHandler
  79.     DHArgs    USHORT,  IRQLevel
  80.     DHArgs    USHORT,  SharedFlag
  81.  
  82.     mov    ax, Stk.IRQHandler
  83.     mov    bx, Stk.IRQLevel
  84.     mov    dh, Stk.SharedFlag
  85.  
  86.     DHCall
  87.  
  88.     DHRet1
  89.  
  90.  
  91. ;*
  92. ;*
  93. ;*  USHORT APIENTRY DevHlp_UnSetIRQ( USHORT IRQLevel );
  94. ;*
  95. ;*
  96.  
  97.     DHDef    UnSetIRQ
  98.     DHArgs    USHORT,  IRQLevel
  99.  
  100.     mov    bx, Stk.IRQLevel
  101.  
  102.     DHCall
  103.  
  104.     DHRet1
  105.  
  106.  
  107. ;*
  108. ;*
  109. ;*  USHORT APIENTRY DevHlp_EOI( USHORT IRQLevel );
  110. ;*
  111. ;*
  112.  
  113.     DHDef    EOI
  114.     DHArgs    USHORT,  IRQLevel
  115.  
  116.     mov    al, Stk.IRQLevel
  117.  
  118.     DHCall
  119.  
  120.     DHRet1
  121.  
  122.  
  123.  
  124. Code    Ends
  125.     End
  126.