home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / C / CBGRX102 / GRDRIVER.INC < prev    next >
Text File  |  1992-08-12  |  2KB  |  60 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. ;;
  6. ;; This file is distributed under the terms listed in the document
  7. ;; "copying.dj", available from DJ Delorie at the address above.
  8. ;; A copy of "copying.dj" should accompany this file; if not, a copy
  9. ;; should be available from where this file was obtained.  This file
  10. ;; may not be distributed without a verbatim copy of "copying.dj".
  11. ;;
  12. ;; This file is distributed WITHOUT ANY WARRANTY; without even the implied
  13. ;; warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. ;;
  15.  
  16.  
  17. ;; ==================================================================
  18. ;;             DRIVER FLAG BITS
  19. ;; ==================================================================
  20.  
  21. GRD_NEW_DRIVER  equ 0008h    ;; NEW FORMAT DRIVER IF THIS IS SET
  22.  
  23. GRD_PAGING_MASK equ 0007h    ;; mask for paging modes
  24. GRD_NO_RW    equ 0000h    ;; standard paging, no separate R/W
  25. GRD_RW_64K    equ 0001h    ;; two separate 64K R/W pages
  26. ;; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  27. ;; THE FOLLOWING THREE OPTIONS ARE NOT SUPPORTED AT THIS TIME !!!
  28. ;;
  29. GRD_RW_32K    equ 0002h    ;; two separate 32Kb pages
  30. GRD_MAP_128K    equ 0003h    ;; 128Kb memory map -- some Tridents do it
  31.                 ;; (1024x768x16 without paging!!!)
  32. GRD_MAP_EXTMEM  equ 0004h    ;; Can be mapped extended, above 1M.
  33.                 ;; Some Tseng 4000-s can do it.
  34.                 ;; NO PAGING AT ALL!!!!
  35. ;; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  36.  
  37. GRD_TYPE_MASK    equ f000h    ;; adapter type mask
  38. GRD_VGA        equ 0000h    ;; vga
  39. GRD_EGA        equ 1000h    ;; ega
  40. GRD_HERC    equ 2000h    ;; hercules
  41. GRD_8514A    equ 3000h    ;; IBM 8514A or compatible
  42. GRD_S3        equ 4000h    ;; S3 graphics accelerator
  43.  
  44. GRD_PLANE_MASK  equ 0f00h    ;; bitplane number mask
  45. GRD_8_PLANES    equ 0000h    ;; 8 planes = 256 colors
  46. GRD_4_PLANES    equ 0100h    ;; 4 planes = 16 colors
  47. GRD_1_PLANE    equ 0200h    ;; 1 plane = 2 colors
  48. GRD_16_PLANES    equ 0300h    ;; VGA with 32K colors
  49. GRD_8_X_PLANES  equ 0400h    ;; VGA in mode X w/ 256 colors
  50.  
  51. GRD_MEM_MASK    equ 00f0h    ;; memory size mask
  52. GRD_64K        equ 0010h    ;; 64K display memory
  53. GRD_128K    equ 0020h    ;; 128K display memory
  54. GRD_256K    equ 0030h    ;; 256K display memory
  55. GRD_512K    equ 0040h    ;; 512K display memory
  56. GRD_1024K    equ 0050h    ;; 1MB display memory
  57. GRD_192K    equ 0060h    ;; 192K -- some 640x480 EGA-s
  58. GRD_M_NOTSPEC    equ 0000h    ;; memory amount not specified
  59.  
  60.