home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Animation & Sound / SOS-ANIM_SOUND.ISO / best_50 / disp152.zip / DRVSRC / GRDRIVER.INC < prev    next >
Text File  |  1993-06-11  |  3KB  |  64 lines

  1. ;; This is file DRVDEFS.INC
  2. ;;
  3. ;; Copyright (c) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  4. ;; Copyright (C) 1992 Csaba Biegl, 820 Stirrup Dr, Nashville, TN 37221
  5. ;; Copyright (C) 1993 Grzegorz Mazur, gbm@ii.pw.edu.pl
  6. ;;
  7. ;; This file is distributed under the terms listed in the document
  8. ;; "copying.dj", available from DJ Delorie at the address above.
  9. ;; A copy of "copying.dj" should accompany this file; if not, a copy
  10. ;; should be available from where this file was obtained.  This file
  11. ;; may not be distributed without a verbatim copy of "copying.dj".
  12. ;;
  13. ;; This file is distributed WITHOUT ANY WARRANTY; without even the implied
  14. ;; warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. ;;
  16.  
  17.  
  18. ;; ==================================================================
  19. ;;             DRIVER FLAG BITS
  20. ;; ==================================================================
  21.  
  22. GRD_NEW_DRIVER  equ 0008h    ;; NEW FORMAT DRIVER IF THIS IS SET
  23. GRD_VESA_DRIVER    equ 000fh
  24.  
  25. GRD_PAGING_MASK equ 0007h    ;; mask for paging modes
  26. GRD_NO_RW    equ 0000h    ;; standard paging, no separate R/W
  27. GRD_RW_64K    equ 0001h    ;; two separate 64K R/W pages
  28. ;; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  29. ;; THE FOLLOWING THREE OPTIONS ARE NOT SUPPORTED AT THIS TIME !!!
  30. ;;
  31. GRD_RW_32K    equ 0002h    ;; two separate 32Kb pages
  32. GRD_MAP_128K    equ 0003h    ;; 128Kb memory map -- some Tridents do it
  33.                 ;; (1024x768x16 without paging!!!)
  34. GRD_MAP_EXTMEM  equ 0004h    ;; Can be mapped extended, above 1M.
  35.                 ;; Some Tseng 4000-s can do it.
  36.                 ;; NO PAGING AT ALL!!!!
  37. ;; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  38.  
  39. GRD_TYPE_MASK    equ f000h    ;; adapter type mask
  40. GRD_VGA        equ 0000h    ;; vga
  41. GRD_EGA        equ 1000h    ;; ega
  42. GRD_HERC    equ 2000h    ;; hercules
  43. GRD_8514A    equ 3000h    ;; IBM 8514A or compatible
  44. GRD_S3        equ 4000h    ;; S3 graphics accelerator
  45.  
  46. GRD_PLANE_MASK  equ 0f00h    ;; bitplane number mask
  47. GRD_8_PLANES    equ 0000h    ;; 8 planes = 256 colors
  48. GRD_4_PLANES    equ 0100h    ;; 4 planes = 16 colors
  49. GRD_1_PLANE    equ 0200h    ;; 1 plane = 2 colors
  50. GRD_16_PLANES    equ 0300h    ;; VGA with 32K colors
  51. GRD_16X_PLANES    equ 0500h    ;; VGA with 64K colors
  52. GRD_24_PLANES    equ 0600h    ;; VGA with 16M colors
  53. GRD_8_X_PLANES  equ 0400h    ;; VGA in mode X w/ 256 colors
  54.  
  55. GRD_MEM_MASK    equ 00f0h    ;; memory size mask
  56. GRD_64K        equ 0010h    ;; 64K display memory
  57. GRD_128K    equ 0020h    ;; 128K display memory
  58. GRD_256K    equ 0030h    ;; 256K display memory
  59. GRD_512K    equ 0040h    ;; 512K display memory
  60. GRD_1024K    equ 0050h    ;; 1MB display memory
  61. GRD_192K    equ 0060h    ;; 192K -- some 640x480 EGA-s
  62. GRD_M_NOTSPEC    equ 0000h    ;; memory amount not specified
  63.  
  64.