home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v2.zip / DDKX86 / DBCSDD / INC_DBCS / VGAEMU.INC < prev    next >
Text File  |  1995-04-14  |  4KB  |  72 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. ;/*static char *SCCSID = "@(#)vgaemu     1.0 92/05/01";*/
  12. ;
  13. ;/**********************  START OF SPECIFICATIONS  ***********************/
  14. ;/*                                                                      */
  15. ;/*  SOURCE FILE NAME:    VGAEMU.H                                       */
  16. ;/*                                                                      */
  17. ;/*  DESCRIPTIVE NAME:    Video buffer, font buffer, work variables      */
  18. ;/*                       definitions for text mode emulation            */
  19. ;/*                       with VGA graphics mode for VGA version OS/2.   */
  20. ;/*                                                                      */
  21. ;/*  COPYRIGHT:           na                                             */
  22. ;/*                                                                      */
  23. ;/*  STATUS:              na                                             */
  24. ;/*                                                                      */
  25. ;/*  NOTES:               None                                           */
  26. ;/*                                                                      */
  27. ;/*  CHANGE HISTORY:                                                     */
  28. ;/*                      92/05/01    Initial coding (T.Sobue)            */
  29. ;/*                                                                      */
  30. ;/***********************  END OF SPECIFICATIONS  ************************/
  31.  
  32. MAX_ROWS        equ     26              ; maximun row count
  33. MAX_COLS        equ     82              ; maximun column count
  34. CELL_SIZE       equ     4               ; cell size (char/attr0/attr1/attr2)
  35.                                         ; 
  36. FONT_HEIGHT     equ     18              ; font height on screen
  37. FONT_HEIGHT2    equ     19              ; font height in font file
  38. MAX_SBCS_FONT   equ     256             ; number of SBCS character font
  39.                                         ; 
  40. MAX_PLANE       equ     4               ; max APA plane
  41. MAX_SAVE_CHAR   equ     2               ; max save char count for text cursor
  42.  
  43. VGASBCSFontType     struc
  44. VGA_CodePage        dw  ?                                   ; code page
  45. VGA_FontType0       dw  ?                                   ; font type 0
  46. VGA_FontType1       dw  ?                                   ; font type 1
  47. VGA_FontID          dw  ?                                   ; font ID
  48. VGASBCSFontType     ends
  49.  
  50. VGASBCSFont         struc
  51. VGA_FontType        db  size VGASBCSFontType dup(?)         ; font attr
  52. VGA_FontImage       db  MAX_SBCS_FONT*FONT_HEIGHT2 dup(?)   ; font image
  53. VGASBCSFont         ends
  54.  
  55. VGATextEmulationBuffer  struc
  56. shadow              db  MAX_ROWS*MAX_COLS*CELL_SIZE dup(?)  ; text video buffer
  57. VGA_APAStart        dw  ?, ?                                ; APA start address
  58. VGA_GridColor       db  ?, ?                                ; grid draw color
  59. VGA_CsrRow          dw  ?                                   ; cursor row position
  60. VGA_CsrCol          dw  ?                                   ; cursor column position
  61. VGA_CsrStart        dw  ?                                   ; cursor start line
  62. VGA_CsrEnd          dw  ?                                   ; cursor end line
  63. VGA_CsrWidth        dw  ?                                   ; cursor width
  64. VGA_CsrAttrib       dw  ?                                   ; cursor attribute
  65. VGA_CsrColor        dw  ?                                   ; cursor color
  66. VGA_CsrScrWidth     dw  ?                                   ; screen width for cursor draw
  67. VGA_SaveFlag        dw  ?                                   ; character save flag
  68. VGA_SaveChar        db  MAX_SAVE_CHAR*MAX_PLANE*FONT_HEIGHT dup(?)  ; character save area
  69. VGA_BaseFont        db  size VGASBCSFont dup(?)             ; base SBCS font
  70. VGA_ExtensionFont   db  size VGASBCSFont dup(?)             ; extension SBCS font
  71. VGATextEmulationBuffer  ends
  72.