home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / DASD / DEVHELP / DHCALL1.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-14  |  2.4 KB  |  132 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 = DHCALL1.ASM
  15. ;*
  16. ;* DESCRIPTIVE NAME = C Callable DevHelp Interface
  17. ;*              ABIOS Related DevHlp 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/05/94           78794  Broke file apart for more granularity
  55. ;*
  56. ;*
  57. ;****************************************************************************
  58.  
  59.     .xlist
  60.     include dhmacs.inc
  61.     .list
  62.  
  63. ;*
  64. ;*  ABIOS Related
  65. ;*
  66.  
  67. Code    segment dword public 'CODE'
  68.     assume    CS:Code,DS:_DATA
  69. ;*
  70. ;*
  71. ;*
  72. ;* USHORT APIENTRY DevHlp_GetLIDEntry ( USHORT DeviceType, USHORT LIDIndex,
  73. ;*                    USHORT LIDType, PUSHORT LID );
  74. ;*
  75. ;*
  76.  
  77.     DHDef    GetLIDEntry
  78.     DHArgs    USHORT,  DeviceType
  79.     DHArgs    USHORT,  LIDIndex
  80.     DHArgs    USHORT,  LIDType
  81.     DHArgs    PUSHORT, LID
  82.  
  83.     mov    al, Stk.DeviceType
  84.     mov    bl, Stk.LIDIndex
  85.     mov    dh, Stk.LIDType
  86.  
  87.     DHCall
  88.  
  89.     les    bx, Stk.LID
  90.     mov    es:[bx], ax
  91.  
  92.     DHRet1
  93.  
  94. ;*
  95. ;*
  96. ;* USHORT APIENTRY DevHlp_FreeLIDEntry( USHORT LIDNumber );
  97. ;*
  98. ;*
  99.  
  100.     DHDef    FreeLIDEntry
  101.     DHArgs    USHORT,  LIDNumber
  102.  
  103.     mov    ax, Stk.LIDNumber
  104.  
  105.     DHCall
  106.  
  107.     DHRet1
  108.  
  109. ;*
  110. ;*
  111. ;* USHORT APIENTRY DevHlp_ABIOSCall( USHORT Lid, NPBYTE ReqBlk,
  112. ;*                     USHORT Entry_Type );
  113. ;*
  114. ;*
  115.  
  116.     DHDef    ABIOSCall
  117.     DHArgs    USHORT,  Lid
  118.     DHArgs    NPBYTE,  ReqBlk
  119.     DHArgs    USHORT,  Entry_Type
  120.  
  121.     mov    ax, Stk.Lid
  122.     mov    si, Stk.ReqBlk
  123.     mov    dh, Stk.Entry_Type
  124.  
  125.     DHCall
  126.  
  127.     DHRet1
  128.  
  129.  
  130. Code    Ends
  131.     End
  132.