home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v2.zip / DDKX86 / DBCSDD / H_DBCS / MEMHELP.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  3KB  |  79 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. /*****************************************************************************/
  13. /*static char *SCCSID = "@(#)memhelp.h      6.0 91/10/11";*/
  14. /***    Memory Management PDD Interface definition
  15.  *
  16.  *      SCCSID = @(#)memhelp.inc    6.0 91/10/11
  17.  *
  18.  *
  19.  *
  20.  *
  21.  *      DESCRIPTION
  22.  *      MEMHELP$ PDD constants, types, and function prototypes
  23.  *
  24.  *      MODIFICATION HISTORY
  25.  *      10/11/91    J-TS00  Created.
  26.  */
  27.  
  28. // Memory management device driver name
  29.  
  30. #define     MEMHELP_PDD_NAME            "SCREEN$ "
  31.  
  32. // protect mode service routine definition
  33.  
  34. #define     CAT_MEMHELP                 0x03    // memhelp category
  35. #define     FUNC_GET_PHYS_ADDR          0x7f    // get ROS font address
  36. #define     FUNC_ALLOC_BUFF             0x7e    // allocate video buffer
  37.  
  38. // FUNC_GET_PHYS_ADDR
  39.  
  40. struct ParamGetPhys {
  41.     ULONG  PhysAddr;                            // requested physical address
  42.     USHORT PhysLen;                             // length
  43.     SEL    VertSel;                             // allocated GDT
  44. };
  45.  
  46. // FUNC_ALLOC_BUFF
  47.  
  48. struct ParamAllocBuff {
  49.     USHORT BuffLen;                             // requested buffer length
  50.     SEL    BuffSel;                             // allocated GDT
  51. };
  52.  
  53. // VDD service routine definition
  54.  
  55. // Command definitions
  56.  
  57. #define     MEMHELP_CMD_REGISTERVDD     0       // register the entry of VDD
  58. #define     MEMHELP_CMD_GETGLOBAL       1       // map private to global
  59. #define     MEMHELP_CMD_FREEGLOBAL      2       // free mapped global
  60.  
  61. // Command parameter definitions
  62.  
  63. // MEMHELP_CMD_GETGLOBAL
  64.  
  65. struct MemHelpGetGlobalIn {
  66.     ULONG   addr;                               // linear address to be mapped into global address
  67.     ULONG   len;                                // memory length
  68. };
  69.  
  70. struct MemHelpGetGlobalOut {
  71.     ULONG   addr;                               // mapped global linear address
  72. };
  73.  
  74. // MEMHELP_CMD_GETGLOBAL
  75.  
  76. struct MemHelpFreeGlobalIn {
  77.     ULONG   addr;                               // global address to be freed
  78. };
  79.