home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v2.zip / DDKX86 / DBCSDD / INC_DBCS / MEMHELP.INC < prev    next >
Text File  |  1995-04-14  |  3KB  |  80 lines

  1. ;*DDK*************************************************************************/
  2. ;
  3. ; COPYRIGHT (C) Microsoft Corporation, 1989
  4. ; COPYRIGHT    Copyright (C) 1995 IBM Corporation
  5. ;
  6. ;    The following IBM OS/2 WARP source code is provided to you solely for
  7. ;    the purpose of assisting you in your development of OS/2 WARP device
  8. ;    drivers. You may use this code in accordance with the IBM License
  9. ;    Agreement provided in the IBM Device Driver Source Kit for OS/2. This
  10. ;    Copyright statement may not be removed.;
  11. ;*****************************************************************************/
  12. ;       SCCSID = @(#)memhelp.inc            6.0 91/10/14
  13. ; ****************************************************************************
  14. ; *                                                                          *
  15. ; *                                                                          *
  16. ; *                                                                          *
  17. ; ****************************************************************************
  18.  
  19. ;/***********************************************************************/
  20. ;/*                                                                     */
  21. ;/* SOURCE FILE NAME: memhelp.inc       STATUS: Version 1.0             */
  22. ;/*                                                                     */
  23. ;/* DESCRIPTIVE NAME:  Memory Management Helper for VDD include file    */
  24. ;/*                                                                     */
  25. ;/* FUNCTION:   Define all global values.                               */
  26. ;/*                                                                     */
  27. ;/************************ END OF SPECIFICATIONS ************************/
  28.  
  29.  
  30. ; Memory management device driver name
  31.  
  32. DeviceDriverName    equ    'SCREEN$ '           ; must be length 8 byte !!
  33.  
  34. ; protect mode service routine definition
  35.  
  36. CAT_MEMHELP         equ     03h                 ; memhelp category
  37. FUNC_GET_PHYS_ADDR  equ     7fh                 ; get ROS font address
  38. FUNC_ALLOC_BUFF     equ     7eh                 ; allocate video buffer
  39.  
  40. ; FUNC_GET_PHYS_ADDR
  41.  
  42. ParamGetPhys        struc
  43. GetPhysAddr         dd      ?                   ; requested physical address
  44. GetPhysLen          dw      ?                   ; length
  45. GetPhysSel          dw      ?                   ; allocated GDT
  46. ParamGetPhys        ends
  47.  
  48. ; FUNC_ALLOC_BUFF
  49.  
  50. ParamAllocBuff      struc
  51. AllocBuffLen        dw      ?                   ; requested buffer length
  52. AllocBuffSel        dw      ?                   ; allocated GDT
  53. ParamAllocBuff      ends
  54.  
  55. ; VDD service routine definition
  56.  
  57. ; Command definitions
  58.  
  59. CmdRegVDDEntry      equ     0                   ; register the entry of VDD
  60. CmdGetGlobal        equ     1                   ; map private to global
  61. CmdFreeGlobal       equ     2                   ; free global mapping
  62.  
  63. ; Command parameter definitions
  64.  
  65. ; CmdGetGlobal
  66.  
  67. GetGlobalIn         struc
  68. GlobalInAddr        dd      ?                   ; linear address to be mapped into global address
  69. GlobalInLen         dd      ?                   ; memory length
  70. GetGlobalIn         ends
  71.  
  72. GetGlobalOut        struc
  73. GlobalOutAddr       dd      ?                   ; mapped global linear address
  74. GetGlobalOut        ends
  75.  
  76. ; CmdFreeGlobal
  77. FreeGlobalIn        struc
  78. FreeGlobalAddr      dd      ?                   ; linear address to be freed
  79. FreeGlobalIn        ends
  80.