home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / rmfiles.zip / mitsrc.zip / DEVHELP.H < prev    next >
Text File  |  1994-06-15  |  8KB  |  131 lines

  1. /* Define for DevHelp functions */
  2.  
  3.                                             /*   K   I   I   */
  4.                                             /*   e   n   n   */
  5.                                             /*   r   t   i   */
  6.                                             /*   n   e   t   */
  7.                                             /*   a   r       */
  8.                                             /*   l   r       */
  9.                                             /*       u       */
  10.                                             /*       p       */
  11.                                             /*       t       */
  12.                                             /* ------------- */
  13. #define DH_SchedClockAddr           0x00    /*   x        x  */
  14. #define DH_DevDone                  0x01    /*   x   x       */
  15. #define DH_Yeild                    0x02    /*   x           */
  16. #define DH_TCYield                  0x03    /*   x           */
  17. #define DH_Block                    0x04    /*   x           */
  18. #define DH_Run                      0x05    /*   x   x       */
  19. #define DH_SemRequest               0x06    /*   x           */
  20. #define DH_SemClear                 0x07    /*   x   x       */
  21. #define DH_SemHandle                0x08    /*   x   x       */
  22. #define DH_PushReqPacket            0x09    /*   x           */
  23. #define DH_PullReqPacket            0x0a    /*   x   x       */
  24. #define DH_PullParticular           0x0b    /*   x   x       */
  25. #define DH_SortReqPacket            0x0c    /*   x           */
  26. #define DH_AllocReqPacket           0x0d    /*   x           */
  27. #define DH_FreeReqPacket            0x0e    /*   x           */
  28. #define DH_QueueInit                0x0f    /*   x   x    x  */
  29. #define DH_QueueFlush               0x10    /*   x   x       */
  30. #define DH_QueueWrite               0x11    /*   x   x       */
  31. #define DH_QueueRead                0x12    /*   x   x       */
  32. #define DH_Lock                     0x13    /*   x        x  */
  33. #define DH_Unlock                   0x14    /*   x        x  */
  34. #define DH_PhysToVirt               0x15    /*   x   x    x  */
  35. #define DH_PhysToUVirt              0x16    /*   x        x  */
  36. #define DH_VirtToPhys               0x17    /*   x        x  */
  37. #define DH_AllocPhys                0x18    /*   x        x  */
  38. #define DH_FreePhys                 0x19    /*   x        x  */
  39. #define DH_SetRomVector             0x1a    /*   x        x  */
  40. #define DH_SetIRQ                   0x1b    /*   x        x  */
  41. #define DH_UnSetIRQ                 0x1c    /*   x   x    x  */
  42. #define DH_SetTimer                 0x1d    /*   x        x  */
  43. #define DH_ResetTimer               0x1e    /*   x   x    x  */
  44. #define DH_MonitorCreate            0x1f    /*   x        x  */
  45. #define DH_Register                 0x20    /*   x           */
  46. #define DH_DeRegister               0x21    /*   x           */
  47. #define DH_MonWrite                 0x22    /*   x   x       */
  48. #define DH_MonFlush                 0x23    /*   x           */
  49. #define DH_GetDOSVar                0x24    /*   x        x  */
  50. #define DH_SendEvent                0x25    /*   x   x       */
  51. #define DH_ROMCritSection           0x26    /*               */
  52. #define DH_VerifyAccess             0x27    /*   x           */
  53. #define DH_RAS                      0x28    /*   x           */
  54. #define DH_AttachDD                 0x2a    /*   x        x  */
  55. #define DH_InternalError            0x2b    /*   x   x    x  */
  56. #define DH_AllocGDTSelector         0x2d    /*            x  */
  57. #define DH_PhysToGDTSelector        0x2e    /*   x   x    x  */
  58. #define DH_RealToProt               0x2f    /*   x   x       */
  59. #define DH_ProtToReal               0x30    /*   x   x       */
  60. #define DH_EOI                      0x31    /*       x    x  */
  61. #define DH_UnPhysToVirt             0x32    /*   x   x    x  */
  62. #define DH_UnsetIRQCount                0x33    /*   x   x    x  */
  63. #define DH_GetLIDEntry              0x34    /*   x        x  */
  64. #define DH_FreeLIDEntry             0x35    /*   x        x  */
  65. #define DH_ABIOSCall                0x36    /*   x   x    x  */
  66. #define DH_ABIOSCommonEntry         0x37    /*   x   x    x  */
  67. #define DH_GetDeviceBlock           0x38    /*            x  */
  68. #define DH_RegisterStackUsage       0x3a    /*            x  */
  69. #define DH_VideoPause               0x3c    /*   x   x    x  */
  70. #define DH_SAVE_MESSAGE             0x3d    /*            x  */
  71. #define DH_RegisterDeviceClass      0x43    /*            x  */
  72. #define DH_RegisterPDD              0x50    /*   x        x  */
  73. #define DH_RegisterBeep             0x51    /*   x        x  */
  74. #define DH_Beep                     0x52    /*   x   x    x  */
  75. #define DH_FreeGDTSelector          0x53    /*   x        x  */
  76. #define DH_PhysToGDTSel             0x54    /*   x        x  */
  77. #define DH_VMLock                   0x55    /*   x   x    x  */
  78. #define DH_VMUnlock                 0x56    /*   x        x  */
  79. #define DH_VMAlloc                  0x57    /*   x        x  */
  80. #define DH_VMFree                   0x58    /*   x        x  */
  81. #define DH_VMProcessToGlobal        0x59    /*   x           */
  82. #define DH_VMGlobalToProcess        0x5a    /*   x           */
  83. #define DH_VirtToLin                0x5b    /*   x   x    x  */
  84. #define DH_LinToGDTSelector         0x5c    /*   x   x    x  */
  85. #define DH_GetDescInfo              0x5d    /*   x   *    x  */
  86. #define DH_LinToPageList            0x5e    /*   x   x    x  */
  87. #define DH_PageListToLin            0x5f    /*   x   x    x  */
  88. #define DH_PageListToGDTSelector    0x60    /*   x   x    x  */
  89. #define DH_RegisterTmrDD            0x61    /*            x  */
  90. #define DH_AllocateCtxHook          0x63    /*   x        x  */
  91. #define DH_FreeCtxHook              0x64    /*   x        x  */
  92. #define DH_ArmCtxHook               0x65    /*   x   x    x  */
  93. #define DH_VMSetMem                 0x66    /*   x        x  */
  94. #define DH_OpenEventSem             0x67    /*   x           */
  95. #define DH_CloseEventSem            0x68    /*   x           */
  96. #define DH_PostEventSem             0x69    /*   x           */
  97. #define DH_ResetEventSem            0x6a    /*   x           */
  98. #define DH_DynamicAPI               0x6c    /*   x        x  */
  99. #define DHGETDOSV_DEVICECLASSTABLE  14
  100.  
  101. PBYTE DevHelp_PhysToVirt( ULONG, USHORT ) ;
  102. PBYTE DevHelp_VirtToPhys( PVOID VirtAdr ) ;
  103. USHORT DevHelp_Beep( USHORT, USHORT ) ;
  104. PBYTE DevHelp_VirtToLin( USHORT wSel, ULONG ulOffset ) ;
  105. PBYTE DevHelp_PhysToUVirt( ULONG PhysAdr, USHORT len,
  106.                   BYTE bType, USHORT wTag ) ;
  107. PBYTE DevHelp_VMAlloc( ULONG ulPhysAdr, ULONG ulLen, ULONG ulFlags ) ;
  108. UCHAR DevHelp_RealToProt( void ) ;
  109. UCHAR DevHelp_ProtToReal( void ) ;
  110. USHORT DevHelp_Block( ULONG, ULONG, UCHAR ) ;
  111. UCHAR DevHelp_Run( ULONG ) ;
  112. UCHAR far *DevHelp_GetDosVar(USHORT);
  113. #if defined(TRACE) | defined(TRACE1)
  114. void DevHelp_RAS( USHORT Major, USHORT Minor, USHORT TraceSize, PVOID TraceData);
  115. #endif
  116. void DevHelp_Yield(void);
  117. USHORT DevHelp_RegisterDeviceClass(PVOID AddName, PVOID IorbEntry, USHORT code, USHORT subcode);
  118. USHORT DevHelp_AllocGdtSel(PUSHORT outputsel ,USHORT countofselsneeded);
  119. USHORT DevHelp_AllocPhys(ULONG size, USHORT abovebelow, PULONG returned);
  120. USHORT DevHelp_PhysToGDT(ULONG physaddr, USHORT size, USHORT sel);
  121. USHORT DevHelp_Settimer(USHORT handler);
  122. USHORT DevHelp_Resettimer(USHORT handler);
  123. USHORT DevHelp_TickCount(USHORT handler,USHORT count);
  124. USHORT DevHelp_SetIRQ(USHORT handler,USHORT irqnum,BOOL Shared);
  125. USHORT DevHelp_UnsetIRQ(USHORT irqnum);
  126. USHORT DevHelp_EOI(USHORT irqnum);
  127. ULONG  DevHelp_AllocCtxHook(USHORT function_addr_offset);
  128. ULONG  DevHelp_ArmCtxHook(ULONG HookHandle,ULONG HookData);
  129. ULONG  DevHelp_FreeCtxHook(ULONG HookHandle);
  130. VOID   DevHelp_DisplayMsg( MSGTABLE far *);
  131.