home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / MOUSE / EMIIDC.INC < prev    next >
Text File  |  1995-04-14  |  7KB  |  144 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. ;/*************************************************************************
  14. ;*                                                                         
  15. ;* SOURCE FILE NAME = EMIIDC.INC
  16. ;*                                                                         
  17. ;* DESCRIPTIVE NAME =                         
  18. ;*                                                                         
  19. ;*                                                                         
  20. ;* VERSION      V2.0                                                       
  21. ;*                                                                         
  22. ;* DATE                                                          
  23. ;*                                                                         
  24. ;* DESCRIPTION                                
  25. ;*                                                                         
  26. ;* FUNCTIONS    
  27. ;*              
  28. ;*              
  29. ;*              
  30. ;*                                                                         
  31. ;*             
  32. ;* NOTES       
  33. ;*             
  34. ;*             
  35. ;*             
  36. ;*             
  37. ;* STRUCTURES   NONE                                                       
  38. ;*                                                                         
  39. ;* EXTERNAL REFERENCES                                                     
  40. ;*                                                                         
  41. ;*              NONE                                                       
  42. ;*                                                                         
  43. ;* EXTERNAL FUNCTIONS                                                      
  44. ;*                                                                         
  45. ;*              NONE                                                       
  46. ;*                                                                         
  47. ;* CHANGE ACTIVITY =                                                       
  48. ;*   DATE      FLAG        APAR   CHANGE DESCRIPTION                       
  49. ;*   --------  ----------  -----  --------------------------------------   
  50. ;*   mm/dd/yy  @Vr.mpppxx  xxxxx  xxxxxxx                                  
  51. ;**************************************************************************
  52.                                                                     
  53. ;*
  54. ;* RegisterDeviceClass Defines
  55. ;*
  56.  
  57. DEVCLASS_INPUT  EQU     2    ;  Device Class for Register Device Class
  58. REG_EXT_IF EQU     0001H     ;  Emi driver
  59. REG_AUX    EQU     8000H     ;  Keyboard AUX port used
  60.  
  61. ;*
  62. ;* Mouse.sys defaults
  63. ;*
  64.  
  65. DEFAULT_QSIZE EQU  24        ; fault QSIZE if emi is active
  66.  
  67. ;*
  68. ;* Flags for EmiFlags in Mouse.sys
  69. ;*
  70.  
  71. EMI_ACTIVE      EQU         01h       ; emi present flag
  72. EMI_AUX_BUSY    EQU         02h       ; emi using aux port
  73. EMI_NEED_CONFIG EQU         04h       ; emi configuration complete
  74. EMI_READY       EQU         08H       ; emi is ready for requests
  75.  
  76. ;*
  77. ;* Emi IDC interface (calls from Mouse.sys to Emi driver)
  78. ;*
  79.  
  80. EMI_CONFIGURE   EQU          1        ; configure emi
  81.                                       ; es:di = Mouse Variable Table
  82. EMI_SYSEVENT    EQU          2        ; indicate system event
  83.                                       ; es:di = Session Info
  84. EMI_STK_REL     EQU          3        ; indicate stock relative event
  85. EMI_STK_ABS     EQU          4        ; indicate stock absolute event
  86. EMI_DISABLE     EQU          5        ; disable emi drivers
  87. EMI_ENABLE      EQU          6        ; enable emi drivers
  88.  
  89. ;*
  90. ;* Mouse Var Table
  91. ;*
  92.  
  93. MOUVARTABLE STRUC
  94. EmiEntry        dd  0      ; Emi entry point in mouse.sys
  95. IntPacket       dd  0      ; Address of the interrupt packet
  96. SIntPacket      dd  0      ; Address of the stock interrupt packet
  97. TimeStamp       dd  0      ; Address of where to pass time stamp
  98. SDevData        dd  0      ; Address of the stock DeviceData
  99. EventMask       dd  0      ; Address of the EMaskMax
  100. MOUVARTABLE ENDS
  101.  
  102. ;*
  103. ;* Mouse IDC interface (calls from Emi driver to Mouse.sys)
  104. ;*
  105.  
  106. EMI_GETRES_ABS  EQU          1        ; get current screen resolution
  107.                                       ; returns  cx= x screen extents
  108.                                       ;          dx= y screen extents
  109. EMI_CONVERT_REL EQU          2        ; convert device to screen coordinatea
  110.                                       ;          cx= x device coord
  111.                                       ;          dx= y device coord
  112.                                       ; returns  cx= x screen coord
  113.                                       ;          dx= y screen coord
  114. EMI_REL         EQU          3        ; process relative event
  115. EMI_ABS         EQU          4        ; process absolute event
  116. EMI_DISABLE_STK EQU          5        ; disable stk driver
  117. EMI_ENABLE_STK  EQU          6        ; enable stk driver
  118.  
  119. ;*
  120. ;* Session Switch Info
  121. ;*
  122.  
  123. SESSWITCHINFO STRUC
  124. Ssi_Command     db 0                  ; system event
  125. Ssi_InfoValid   db 0                  ; 1= video data valid 0= invalid
  126. Ssi_Current     dw 0                  ; current screen group ID
  127. Ssi_Future      dw 0                  ; future screen group ID
  128. Ssi_Mtype       db 0                  ;  video mode type
  129. Ssi_Color       db 0                  ;  number of colors
  130. Ssi_TCol_res    dw 0                  ;  text colomn resolution
  131. Ssi_TRow_res    dw 0                  ;  text row resolution
  132. Ssi_GCol_res    dw 0                  ;  graphics colomn resolution
  133. Ssi_GRow_res    dw 0                  ;  graphics row resolution
  134. SESSWITCHINFO ENDS
  135.  
  136. ;*
  137. ;* Ssi_Command values
  138. ;*
  139.  
  140. SSI_START_SES_SWITCH  EQU 1           ; start session switch
  141. SSI_END_SES_SWITCH    EQU 2           ; end of session switch
  142. SSI_START_VM_CHANGE   EQU 3           ; start of video mode change
  143. SSI_END_VM_CHANGE     EQU 4           ; end of video mode change
  144.