home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / PEN / PENTKT / PENBASE / DISPNUL.ASM < prev    next >
Assembly Source File  |  1995-04-14  |  7KB  |  156 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. ;      /*****************************************************************/
  12. ;      /*                                                               */
  13. ;      /*                                                               */
  14. ;      /*****************************************************************/
  15. ;      /******************* START OF SPECIFICATIONS *********************/
  16. ;      /*                                                               */
  17. ;      /*  SOURCE FILE NAME: DISPNUL.ASM                                */
  18. ;      /*                                                               */
  19. ;      /*  DESCRIPTIVE NAME: Null display routine                       */
  20. ;      /*                                                               */
  21. ;      /*                                                               */
  22. ;      /*  STATUS:  Version 1.0                                         */
  23. ;      /*                                                               */
  24. ;      /*  NOTES: This routine should be linked into the driver instead */
  25. ;      /*         of DISPLAY.ASM if the driver will not have a display  */
  26. ;      /*         logical device. This routine provides all the entry   */
  27. ;      /*         points needed.                                        */
  28. ;      /*                                                               */
  29. ;      /*  ENTRY POINTS:                                                */
  30. ;      /*      See public statements                                    */
  31. ;      /*  EXTERNAL REFERENCES:                                         */
  32. ;      /*      See extrn statements                                     */
  33. ;      /*                                                               */
  34. ;      /******************* END  OF  SPECIFICATIONS *********************/
  35. .xlist
  36.   include pensegs.inc
  37. .list
  38.  
  39. .286p
  40. ;------------------------------------------------------------------------------
  41. ; external data references
  42. ;------------------------------------------------------------------------------
  43.  
  44. ;------------------------------------------------------------------------------
  45. ; external routines
  46. ;------------------------------------------------------------------------------
  47.  
  48. ;------------------------------------------------------------------------------
  49. ; local equates
  50. ;------------------------------------------------------------------------------
  51.  
  52. ;------------------------------------------------------------------------------
  53. ; local data declarations
  54. ;------------------------------------------------------------------------------
  55.  
  56. DSEG   segment
  57. DSEG   ends
  58.  
  59. CSEG SEGMENT
  60.      ASSUME    CS:CGROUP, SS:nothing, ES:nothing, DS:DGROUP
  61.  
  62. ;---- ROUTINES TO SET DISPLAY STATE -------------------------------------------
  63. ;
  64. ;------------------------------------------------------------------------------
  65.  
  66. ;------------------------------------------------------------------------------
  67. ; Set the diplay state (turn it on or off)
  68. ;  al = command 1=turn on backlight 0=turn off backlight
  69. ;  bx = dcb
  70. ;------------------------------------------------------------------------------
  71. public Dsp_SDS
  72. Dsp_SDS proc
  73.   stc
  74.   ret
  75. Dsp_SDS endp
  76.  
  77. ;---- ROUTINES TO MANAGE DISPLAY ENGINE ---------------------------------------
  78. ;
  79. ;------------------------------------------------------------------------------
  80. ;------------------------------------------------------------------------------
  81. ; Update display engine with backlight state info. Called by device dependent
  82. ; code to update display engine.
  83. ;  al = 1=backlight is on 0=backlight is off
  84. ;  bx = dcb
  85. ;------------------------------------------------------------------------------
  86. public Dsp_Engine
  87. Dsp_Engine    proc
  88.   stc
  89.   ret
  90. Dsp_Engine endp
  91.  
  92. ;---- AUTOMATIC BACKLIGHT CONTROL ---------------------------------------------
  93. ;
  94. ;------------------------------------------------------------------------------
  95. ;------------------------------------------------------------------------------
  96. ; Process requests to activate and disable automatic control. This should be
  97. ; called when ever the inactivity peroid changes or if the automatic enable
  98. ; changes.
  99. ;   bx = dcb
  100. ;------------------------------------------------------------------------------
  101. public Dsp_SetInactPeriod
  102. Dsp_SetInactPeriod proc
  103.   stc
  104.   ret
  105. Dsp_SetInactPeriod endp
  106.  
  107. ;------------------------------------------------------------------------------
  108. ; Convert inactivity peroid in seconds to number of ticks between checks and
  109. ; number of checks needed.
  110. ;   bx = dcb
  111. ;------------------------------------------------------------------------------
  112. public Dsp_Convert
  113. Dsp_Convert proc
  114.   stc
  115.   ret
  116. Dsp_Convert endp
  117.  
  118. ;------------------------------------------------------------------------------
  119. ; process callback after system activity to automatically turn display on
  120. ; bx = dcb
  121. ;------------------------------------------------------------------------------
  122. public Dsp_callback
  123. Dsp_callback    proc
  124.   ret
  125. Dsp_callback    endp
  126.  
  127. ;------------------------------------------------------------------------------
  128. ; Get control bits for suppressing activity while the backlight is off
  129. ; returns
  130. ;   dx = 0
  131. ;------------------------------------------------------------------------------
  132. public Dsp_GetSuppress
  133. Dsp_GetSuppress proc
  134.   xor dx,dx
  135.   ret
  136. Dsp_GetSuppress endp
  137.  
  138. CSEG ends
  139. ;---- INITIALIZATION ROUTINES -------------------------------------------------
  140. ;
  141. ; note: this code is truncated from the driver after the INIT command returns
  142. ;       to OS/2
  143. ;------------------------------------------------------------------------------
  144.  
  145. ;------------------------------------------------------------------------------
  146. ; Initialize engine
  147. ;  bx = dcb
  148. ;------------------------------------------------------------------------------
  149. CSEGI segment
  150. public Dsp_Init
  151. Dsp_Init proc
  152.   ret
  153. Dsp_Init endp
  154. CSEGI ends
  155. end
  156.