home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / FAQSYS18.ZIP / FAQS.DAT / COMPAQ.TXT < prev    next >
Text File  |  1996-01-04  |  22KB  |  556 lines

  1.     Compaq Super VGA chips.
  2.  
  3. There are 3 "Families" of Compaq VGA chips:
  4.  
  5. Integrated Video Graphics System (IVGS aka Starlight):
  6. Supports 640x480x16c. BitBLT functions
  7.  
  8. Advanced VGA System (AVGA aka Stardust):
  9. Supports 800x600x16c and 640x480x256c. BitBLT functions.
  10.  
  11. QVision:
  12. Supports 1024x768x256c. Newer versions support 1280x1024 and/or TrueColor.
  13. Hardware Cursor, BitBLT.
  14.  
  15.   QVision        (128084)   Max 1MB (Victory)
  16.   QVision 1024              Max 2MB (V32 ?)
  17.   QVision 1280   (139148)   Max 2MB (V32)
  18.  
  19. The QVision 2000 is actually a Matrox MGA-II (Ultima) clone.
  20.  
  21.  
  22. 3C2h (W):  Miscellaneous
  23. bit 2-4  (QVision) Clock select. In AVGA mode the two lower bits selects
  24.           one of 4 clocks, in QVision mode (3CEh index 0Fh <> A5h) these
  25.           3 bits selects 1 of 8 other clocks, thus there are 12 clocks
  26.           available on the QVision.
  27. Note: This is a standard VGA register, all other bits follow VGA standard.
  28.       This register can be read at 3CCh.
  29.  
  30. 3CEh index 0Bh (R/W):
  31. bit    0  ??
  32.        1  If set the ROM is 16bit wide, 8 if clear
  33.        2  If set video memory is 16bit wide, 8 if clear
  34.        3  Blanks screen if set ??
  35.        4  ??
  36.  
  37. 3CEh index 0Ch (R):  Controller Version
  38. bit  3-7  Version.
  39.             03h: IVGS
  40.             05h: AVGA
  41.             06h: Original QVision
  42.             0Eh: QVision 1024 or 1280
  43.             10h: Advanced VGA Port (What is this?)
  44.  
  45. 3CEh index 0Dh (R/W):  Extended Controller Version
  46.  
  47. 3CEh index 0Eh (R/W):  Extended Controller Capabilities
  48.  
  49. 3CEh index 0Fh (R/W):  Environment Register
  50. bit  0-3  writing 5 to this register unlocks the extended registers.
  51.      4-7  (QVision) 0Ah if in AVGA mode, 0 if in QVision mode
  52. Note: The QVision has a specific mode for AVGA support (Mode 29h and 2Eh),
  53.       where the AVGA accelerator function and registers are used.
  54.  
  55. 3CEh index 10h (R/W):  BLTConf
  56. bit  0-1  ??
  57.        2  (QVision) If set the 2xxxh-3xxxh register block is mapped at 4xxxh
  58.             -5xxxh
  59.      3-4  (chip ?) Video interrupt. 0= Active Low, 1,3=Active High, 2=Disabled.
  60.        3  (QVision) If set enables access to some of the extended registers ?
  61.        5  Tri-state if set
  62.        6  ??
  63.        7  (AVGA) If set the screen goes all white or black ?
  64.  
  65. 3CEh index 11h (R/W):
  66. bit    0  ??
  67.  
  68. 3CEh index 40h (R/W):  Control Register 0
  69. bit    0  If set accesses to the upper bank (0A8000h-0AFFFFh) are calculated
  70.           from 0A8000h (I.e.. to create a 64K unified window index 46h should
  71.           be programmed with a value 8 larger than index 45h). If clear
  72.           accesses are relative to 0A0000h (I.e.. use same value in index 45h
  73.           and 46h).
  74.        1  If set the memory layout is different ?
  75.      2-7  ??
  76.  
  77. 3CEh index 41h (R/W):
  78. bit  0-2  ??
  79.  
  80. 3CEh index 42h (R/W):  CRTC Overflow
  81. bit  0-1  Bit 8-9 of the Display Offset. Bits 0-7 are in 3d4h index 13h.
  82.      2-4  Display start Address bits 16-18. Bits 0-15 are in 3d4h index
  83.           0Ch,0Dh
  84.        5  ??
  85.        6  If set moves the display ~50 lines ??
  86.        7  ??
  87.  
  88. 3CEh index 43h (R/W):
  89. bit  0-7  ??
  90.  
  91. 3CEh index 44h (R/W):
  92. bit  0-7  ??
  93.  
  94. 3CEh index 45h (R/W):  Page Register 0
  95. bit  0-7  Bank number in 4KB blocks for accesses to A000h-A7FFh.
  96.           (AVGA) In 16c planar modes the bank is in units of 1Kb
  97.           (QVision 1280) If 23C7h bit 4 is set the bank is in units of 16Kb
  98.  
  99. 3CEh index 46h (R/W):  Page Register 1
  100. bit  0-7  Bank number in 4KB units for accesses to A800h-AFFFh
  101.           If index 40h bit 0 is set this value must be 8 larger than the value
  102.           in index 45h (8*4k = 32k) to provide a 64k unified window. If index
  103.           40h bit 0 is clear this value should be the same as in index 45h.
  104.  
  105. 3CEh index 48h (R/W):
  106. bit  0-3  High Area Memory (0=disabled, 1-0Eh = the 1MB boundary the HMA
  107.           starts at). The HMA is a 1MB continuos mapping of the video buffer.
  108.      0-7  (QVision) Lower 8 bits of the HMA start address
  109.  
  110. 3CEh index 49h (R/W):
  111. bit  0-7  (QVision) Upper 8 bits of the HMA start address
  112.  
  113. 3CEh index 50h (R/W):                                                (QVision)
  114. bit  0-2  ??
  115.      3-6  Monitor (0,2,6??)
  116.              00h  Compaq Internal Monitor
  117.              02h  Compaq 16" Advanced Graphics Color Monitor
  118.              03h  Compaq 1024 Color Monitor
  119.              04h  QVision 200 (20") Color Monitor
  120.              05h  Compaq SVGA Color Monitor
  121.              06h  QVision 150 (15") Color Monitor or
  122.                   Compaq 151 FS Color Monitor
  123.              0Eh  Compaq 14" VGA Monitor (31.5 kHz)
  124.        7  ??
  125.  
  126. 3CEh index 51h (R/W):                                                (QVision)
  127. bit    0  Divides clock by ~3.5 if set ???
  128.      1-2  ??
  129.        3  If clear blanks the left half of the display ??
  130.        4  Clock ??
  131.        5  Horizontal Retrace End bit 5. Bits 0-4 are in 3d4h index 5 bits 0-4.
  132.        6  Vertical Total bit 10. Bits 0-7 are in 3d4h index 6, bits 8&9 are
  133.           in 3d4h index 7.
  134.        7  Vertical Retrace Start bit 10. Bits 0-7 are in 3d4h index 10h.
  135.  
  136. 3CEh index 52h (R/W):
  137. bit    0
  138.  
  139. 3CEh index 54h (R/W):  Available Memory                              (QVision)
  140. bit  0-7  Video Memory. 2: 512k, 4: 1024k, 8: 2048k
  141. Note: For the QVision 1024, 0 apparently means 1024KB.
  142.  
  143. 3CEh index 55h (R/W):  PLL Clock
  144. bit  0-7  ??
  145.  
  146. 3CEh index 56h (R/W):  Controller Capabilities                       (QVision)
  147. bit  0-1  ??
  148.        2  Set for QVision 1280, clear for QVision 1024
  149.      3-7  ??
  150.  
  151. 3CEh index 57h (R/W):  Controller Capabilities II                    (QVision)
  152. bit  0-7  ??
  153.  
  154. 3CEh index 5Ah (R/W):                                                (QVision)
  155. bit  0-5  1 for copy, 2 for fill
  156.      6-7  Set to 3 or 0 ??
  157.  
  158. 3CEh index 80h (R/W):                                                      (?)
  159. bit  2-3  2=Plasma system.
  160.      4-6  Palette option: 1=Standard palette, 2=Option B, 5=option A,
  161.             6=option C.
  162.  
  163. 3CEh index 81h (R/W):                                                      (?)
  164. bit   2  Set for Palette option A-C and Standard palette, clear for option D.
  165.  
  166. 13C6h - 13C9h are implemented as DAC regs REG0A,REG0B,REG08 and REG09 for the
  167.  QVision (DAC has RS2 = 0 and RS3 = 1).
  168.  
  169. 23C0h W(R/W): Source Address                                 (IVGS, AVGA only)
  170. bit  0-15  Address of source in DWORDs (256colors) or bytes (16colors).
  171.            (AVGA) Bit 16-17 are in 23C4h.
  172.            The exact address and size of the BitBLT can be adjusted by
  173.            33C0h,33C1h,33C8h and 33C9h
  174.  
  175. 23C2h (R/W):  Width of area                                  (IVGS, AVGA only)
  176. bit   0-7  Width in DWORDs of the Blit area.
  177.  
  178. 23C2h W(R/W): Width of BitBLT operation                         (QVision only)
  179. bit   0-9  Width of the BitBLT area in pixels
  180.  
  181. 23C4h W(R/W): Height of the BitBLT area
  182. bit   0-9  Number of lines in Blit area.
  183.     10-11  (AVGA) Bit 8-9 of the Scanline Width. Bit 0-15 are in
  184.     12-13  (AVGA) Bit 16-17 of the distance. Bit 0-15 are in 23CCh.
  185.     14-15  (AVGA) Bit 16-17 of Source address. Bit 0-15 are in 23C0h.
  186.  
  187. 23C6h (R/W):
  188.  
  189. 23C7h (R/W):
  190. bit     2  Set to enable Linear Frame Buffer.
  191.         4  Set to use 16K banks, clear to use original 4K banks
  192.  
  193. 23CAh W(R/W):  Scanline width.                               (IVGS, AVGA only)
  194. bit  0-15  Width of destination in DWORDs (256color) or bytes (16color).
  195.            Negative if moving backwards.
  196.  
  197. 23CCh W(R/W): Destination Address                            (IVGS, AVGA only)
  198. bit  0-15  Distance between the Destination and the Source Address in DWORDs
  199.            (256colors) or bytes (16colors).
  200.            (AVGA) Bit 16-17 are in 23C4h bit 12-13.
  201.  
  202. 23CCh W(R/W):  Scanline Width                                        (QVision)
  203. bit   0-  Bytes per scanline in the destination in units of 4 (DWORDs).
  204.  
  205. 23CEh W(R/W):  Scanline width.                               (IVGS, AVGA only)
  206. bit  0-15  Width of destination in DWORDs. Negative if moving backwards.
  207. Note: one must be source and the other destination width
  208.  
  209. 33C0h (R/W):                                                 (IVGS, AVGA only)
  210. bit  0-7  Start pixel of BitBLT source
  211.  
  212. 33C1h (R/W):                                                 (IVGS, AVGA only)
  213. bit  0-7  Ending pixel of BitBLT destination
  214.  
  215. 33C7h (R/W):                                                 (IVGS, AVGA only)
  216.  
  217.  
  218. 33C8h (R/W):                                                 (IVGS, AVGA only)
  219. bit  0-1
  220. Note: this is the same register as 3CEh index 3  ??
  221.  
  222. 33C9h (R/W):                                                 (IVGS, AVGA only)
  223.  
  224. 33CAh W(R/W):  Fore/Back ground color ?
  225.  
  226. 33CCh W(R/W):  Fore/Background color
  227. Note: Apparently the Fore/Background color registers must be written twice to
  228.       work properly.
  229.  
  230. 33CEh (R/W):  COP Status/Command
  231. bit    0  (R) If set the CoProcessor is busy.
  232.      0-5  (W) 11h = Copy. 9 = Fill.
  233.        6  (W) Copy/Fill backwards if set
  234.  
  235. 33CFh (R/W):
  236.  
  237. 63C0h W(R/W): Source Bitmap X-address                           (QVision only)
  238. bit   0-9  The X co-ordinate of the start of the Source Data.
  239.  
  240. 63C2h W(R/W): Source Bitmap Y-address                           (QVision only)
  241. bit   0-9  The Y co-ordinate of the start of the Source Data.
  242.  
  243. 63C4h (R/W):
  244.  
  245. 63C5h (R/W):
  246.  
  247. 63CAh (R/W):
  248. bit   0-2  1=4bit packed, 3=8bit packed, 5= 15bit, 7=24 bit (packed as RGBa)
  249.         6  After loading the BitMap Address and Size registers, wait for this
  250.            bit to be 0 before setting final registers and starting the
  251.            command.
  252.         7  Wait for this bit to be 0, before loading the Source/Destination
  253.            address and BitMap size registers.
  254.  
  255. 63CBh (R/W):
  256. bit     0  Set for 2Mb?
  257.       2-3  Scanline Width. 0: 512 pixels/line, 1: 1024 pixels/line, 2: 2048
  258.            pixels/line
  259.       4-6  Set to 7 ?
  260.  
  261. 63CCh W(R/W): Destination Bitmap X-address                      (QVision only)
  262. bit   0-9  The X co-ordinate of the start of the Destination Data
  263.  
  264. 63CEh W(R/W): Destination Bitmap Y-address                      (QVision only)
  265. bit   0-9  The Y co-ordinate of the start of the Destination Data
  266.  
  267. 83C4h ():  Virtual Controller Select                            (QVision only)
  268.  
  269. 83C6h-83C9h  Extra DAC registers (RS2 = 1) on the AVGA and QVision boards
  270.  
  271. 93C6h-93C9h  Extra DAC registers (RS2 = 1, RS3 = 1) on QVision boards
  272.  
  273. 93C6h W(R/W): Hardware Cursor Y-position
  274. bit   0-9  The X-position of the right pixel of the hardware cursor.
  275.  
  276. 93C8h W(R/W): Hardware Cursor X-position
  277. bit   0-9  The Y-position of the lower scanline of the hardware cursor.
  278.  
  279. Note: Registers 3C6h-3C9h, 13C6h-13C9h, 83C6h-83C9h and 93C6h-93C9h are
  280.       physically in the Brooktree DAC.
  281.  
  282.  
  283. The AVGA connects A15 to RS2 on the DAC so 4 extra DAC registers are
  284. accessible at 83C6h-83C9h (if supported by the DAC), and the QVision
  285. connects A15 to RS2 and A12 to RS3 so 12 extra DAC registers are available
  286. at 83C6h-83C9h, 13C6h-13C9h and 93C6h-93C9h (if supported by the DAC).
  287.  
  288.   ID Compaq super VGA:
  289.  
  290.   old:=rdinx($3CE,$F);
  291.   wrinx($3CE,$F,0);
  292.   if not testinx($3CE,$45) then
  293.   begin
  294.     wrinx($3CE,$F,5);
  295.     if testinx($3CE,$45) then
  296.     begin
  297.       SubVers:=rdinx($3CE,$C) shr 3;
  298.       case SubVers of
  299.         3:name:='Compaq IVGS';
  300.         5:name:='Compaq AVGA';
  301.         6:name:='Compaq QVision 1024';
  302.        $E:if (rdinx(GRC,$56) and 4)>0 then name:='Compaq QVision 1280'
  303.                                       else name:='Compaq QVision 1024';
  304.       $10:name:='Compaq AVPort';
  305.       else UNK(Compaq)
  306.       end;
  307.     end;
  308.   end;
  309.   wrinx($3CE,$F,old);
  310.  
  311.  
  312.  
  313.     Video Modes:
  314.   18h  T   132   43  (AVGA) Mono
  315.   19h  T   132   25  (AVGA) Mono
  316.   1Ah  T   132   28  (AVGA) Mono
  317.   1Bh  T   132   50  (AVGA) Mono
  318.   1Ch  T   132   60  (AVGA) Mono
  319.   22h  T   132   43
  320.   23h  T   132   25
  321.   24h  T   132   28
  322.   27h  T   132   50
  323.   28h  T   132   60
  324.   29h  G   800  600   16c  PL4
  325.   2Eh  G   640  480  256c  P8.  Each scan line is 1024 bytes wide.
  326.       Remaining modes only supported by QVision boards:
  327.   32h  G   640  480  256c  P8   Each scan line is 1024 bytes wide
  328.   33h  G   640  400  256c  P8   Each scan line is 1024 bytes wide
  329.   34h  G   800  600  256c  P8   Each scan line is 1024 bytes wide
  330.   37h  G  1024  768   16c  PK4
  331.   38h  G  1024  768  256c  P8
  332.   39h  G  1280 1024   16c  PK4
  333.   3Ah  G  1280 1024  256c  P8   Each scan line is 2048 bytes wide
  334.   3Eh  G   640  480   32k  P15
  335.   40h  G   640  400     2       Compaq Portable only
  336.   4Dh  G   512  480   16m  P32  Four bytes per pixel
  337.   4Eh  G   640  400   16m  P32  Four bytes per pixel
  338.  
  339.  
  340. BitBLTs:
  341.  
  342. There appear to be two different systems: mode 2Eh uses a system based on the
  343. memory address of the bitmaps involved, and with some fields packed.
  344. Is this to keep compatibility with something ??
  345. Mode 32h, 37h and 38h use a system based on the pixel addresses of the bitmaps
  346. Also some of the registers appear to be mapped to more than one address ??
  347. I.e.. drivers some times adds a value to the register address.
  348.  
  349.  
  350.   Compaq BIOS extensions:
  351.  
  352. ----------10BF00-----------------------------
  353. INT 10 - VIDEO - Compaq Portable Extensions - SELECT EXTERNAL MONITOR
  354.         AX = BF00h
  355. Note: all registers preserved and the internal monitor is blanked
  356.       the external monitor becomes the active monitor
  357. ----------10BF01-----------------------------
  358. INT 10 - VIDEO - Compaq Portable Extensions - SELECT INTERNAL MONITOR
  359.         AX = BF01h
  360. Note: all registers preserved and the external monitor is blanked
  361.       the internal monitor becomes the active monitor
  362. ----------10BF02-----------------------------
  363. INT 10 - VIDEO - Compaq Portable Extensions - SET MASTER MODE OF CURRENT CTRLR
  364.         AX = BF02h
  365.         BH = master mode
  366.             04h CGA
  367.             05h EGA
  368.             07h MDA
  369. ----------10BF03BX0000-----------------------
  370. INT 10 - VIDEO - Compaq Extensions - Get Environment
  371.         AX = BF03h
  372.         BX = 0000h
  373. Return: BH = active monitor
  374.             00h = external
  375.             01h = internal
  376.             03h = both
  377.             04h = neither
  378.         BL = master mode
  379.             00h = switchable VDU not present
  380.             04h = CGA
  381.             05h = EGA
  382.             07h = MDA
  383.             08h = switchable LCD controller present
  384.             09h = plasma VGA
  385.             0Ah = TFT (active matrix) VGA
  386.         CH = 00h (reserved)
  387.              (QVision) Bits 3-7: Chip ID (from 3CEh index 0Ch):
  388.                          06h  QVision 1024
  389.                          0Eh  QVision 1024 or 1280
  390.         CL = switchable VDU mode supported
  391.             bit    0 = CGA supported
  392.             bits 1,2 = reserved (1)
  393.             bit    3 = MDA supported
  394.             bits 4-7 = reserved (1)
  395.             (QVision)
  396.             Bit    0  Set if extended modes are enabled
  397.                    4  BitBLT engine available if set
  398.                    5  132-coloumn support available if set
  399.                    6  640x480x256 mode available if set
  400.                    7  8-bit DAC mode (256c of 16m) available if set
  401.         DH = internal monitor type (see below)
  402.         DL = external monitor type
  403.             00h = none
  404.             01h = dual-mode monitor
  405.             02h = 5153 RGB monitor (RGBI 16-color)
  406.             03h = Compaq Color monitor
  407.             04h = 640x400 flat panel (Plasma CGA)
  408.             05h = VGC monochrome
  409.             06h = VGC color
  410.             07h = 8-level mono LCD VGA (internal)
  411.                   1024x768 mono VGA (external)
  412.             08h = 16-level mono plasma VGA (internal)
  413.                   1024x768 color VGA (external)
  414.             09h = 4-level mono LCD CGA
  415.             0Ah = 16-level mono LCD VGA
  416.             0Bh = active-matrix color VGA
  417.             0Ch = active-matrix mono VGA
  418.             0Dh = STN color VGA
  419. ----------10BF04-----------------------------
  420. INT 10 - VIDEO - Compaq Portable Extensions - Set Mode Switch Delay
  421.         AX = BF04h
  422.         BH = new state of delay
  423.              00h enabled
  424.              01h disabled
  425. ----------10BF05-----------------------------
  426. INT 10 - VIDEO - Compaq Systempro Extensions - Enable/Disable Display
  427.         AX = BF05h
  428.         BH = new state of video
  429.              00h off
  430.              01h on
  431. ----------10BF06-----------------------------
  432. INT 10 - VIDEO - Compaq SLT/286 - Read Gray Scale Table
  433.         AX = BF06h
  434.         CL = address to be read from grey scale table
  435. Return: AL = bit 3-0 - Value read from grey scale table
  436.         CL = address to be read from grey scale table
  437. ----------10BF07-----------------------------
  438. INT 10 - VIDEO - Compaq SLT/286 - Write Gray Scale Table
  439.         AX = BF07h
  440.         CH = value to write to grey scale table
  441.         CL = address to be written to grey scale table
  442. ----------10BF08-----------------------------
  443. INT 10 - VIDEO - Compaq SLT/286 - Write Color Mix Registers
  444.         AX = BF08h
  445.         CH = bits 7-4 - Green weight
  446.              bits 3-0 - Blue weight
  447.         CL = bits 7-4 - unused
  448.              bits 3-0 - Red weight
  449. ----------10BF09-----------------------------
  450. INT 10 - VIDEO - Compaq Extensions - Turn On Reverse Video
  451.         AX = BF09h
  452. Return: CF clear
  453. Note: sets bit 6 of port 03CEh index 81h; in some cases also sets index 84h
  454.       to 6Fh and index 83h to 04h
  455. Note: supported by at least the QVision board and the LTE Lite ROM BIOS
  456. ----------10BF0A-----------------------------
  457. INT 10 - VIDEO - Compaq Extensions - Turn Off Reverse Video
  458.         AX = BF0Ah
  459. Return: CF clear
  460. Note: clears bit 6 of port 03CEh index 81h; in some cases also sets index 84h
  461.       to 80h and index 83h to FBh
  462. Note: supported by at least the QVision board and the LTE Lite ROM BIOS
  463. --------b-10BF0B-----------------------------
  464. INT 10 - VIDEO - Compaq Extensions - Check Whether Video Reversed
  465.         AX = BF0Bh
  466. Return: CF clear
  467.         AX = state (0000h normal video, 0001h reversed video)
  468. Note: supported by at least the QVision board and the LTE Lite ROM BIOS
  469. ----------10BF0C------------------------------------
  470. INT 10 - VIDEO - Compaq Extensions - Set 6bit DAC Mode
  471.         AX = BF0Ch
  472. Return: CF clear
  473. Desc: specify that video DAC registers use only six bits of color info
  474. Note: supported by AVGA, QVision boards and the SystemPro XL ROM BIOS
  475. ----------10BF0D------------------------------------
  476. INT 10 - VIDEO - Compaq Extensions - Set 8bit DAC Mode
  477.         AX = BF0Dh
  478. Return: CF clear
  479. Desc: specify that video DAC registers use all eight bits of color info
  480. Note: supported by AVGA, QVision boards and the SystemPro XL ROM BIOS
  481. ----------10BF0E------------------------------------
  482. INT 10 - VIDEO - Compaq Extensions - Get DAC Resolution
  483.         AX = BF0Eh
  484. Return: AL = 00h  if DAC in 6bit mode
  485.              01h  if DAC in 8bit mode
  486.         CF clear
  487. Note: supported by AVGA, QVision boards and the SystemPro XL ROM BIOS
  488. ----------10BF0F------------------------------------
  489. INT 10 - VIDEO - Compaq Extensions - Set Linear Video Buffer Address
  490.         AX = BF0Fh
  491.         BX = Linear Video Buffer Address in megabytes, or
  492.              0FFFFh to let ROM configure Linear Video Buffer Address
  493. Return: AX = previous Linear Video Buffer Address
  494.         CF clear
  495. Note: supported by AVGA, QVisions board and the SystemPro XL & LTE Lite ROM
  496.       BIOSes
  497. ----------10BF10------------------------------------
  498. INT 10 - VIDEO - Compaq QVision - Get Linear Video Buffer Address
  499.         AX = BF10h
  500. Return: AX = Linear Video Buffer Address in megabytes
  501.         CF clear
  502. Note: supported by AVGA, QVision boards and the SystemPro XL & LTE Lite ROM
  503.       BIOSes
  504. ----------10BF11------------------------------------
  505. INT 10 - VIDEO - Compaq Extensions - Get Extended Environment
  506.         AX = BF11h
  507. Return: AL = BFh
  508.         CF clear
  509.      ES:SI -> Advanced Functionality Table (4 bytes):
  510.               Bit   1  132-column modes supported if set
  511.                     2  Set for QVision 1280's
  512.                     4  Standard VGA modes supported if set
  513.                     5  Accelerated VGA modes supported if set
  514.                     6  Advanced VGA modes supported if set
  515.                     7  QVision modes supported if set
  516.                     8  Set for QVision 1280 and 1024's, clear for original
  517.                        QVision
  518.                 12-15  Video memory in 256K units, 0=256K, 1=512K...
  519.               Typical values are:
  520.                000030F2h   Original QVision w/1MB??
  521.                000010F2h   Original QVision w/512K??
  522.                000031F2h   QVision 1024 w/1MB
  523.                000031F6h   QVision 1280 w/1MB
  524.                000071F2h   QVision 1024 w/2MB
  525.                000071F6h   QVision 1280 w/2MB
  526.      ES:DI -> COMPAQ text and date
  527. Note: supported by at least the QVision board and the LTE Lite and ProSignia
  528.       ROM BIOSes
  529. Note: Some sources have the table at ES:DI and the text&date at ES:BX
  530. ----------10BF12------------------------------------
  531. INT 10 - VIDEO - Compaq Extensions - New Active Monitor
  532.         AX = BF12h
  533.         BH reserved
  534.         BL = function mask
  535.              bit 0  External monitor
  536.                  1  Internal monitor
  537.                  7  If set bits 0 and 1 activate the monitor when set,
  538.                     if clear they toggle the state when set
  539. Return: CF clear
  540. Note: this function is a NOP if the VGA subsystem is inactive or the current
  541.       Display Combination Code is 10h or higher
  542.       Supported by at least the QVision board and the LTE Lite and ProSignia
  543.       ROM BIOSes
  544. ----------10BF13------------------------------------
  545. INT 10 - VIDEO - Compaq QVision - Gamma Correction
  546.         AX = BF13h
  547.         BH = 00h
  548.         BL = 00h  Loads Gamma Correction table for true color mode
  549.                   DS = BIOS data segment
  550.              01h  Select Palette RAM bypass (direct DAC Mode)
  551. Note: Only effective for Hi/TrueColor modes. Must be called after the mode has
  552.       been set and only have effect until the next mode switch
  553. ----------10BFE0------------------------------------
  554. INT 10 - VIDEO - Compaq QVision  (later models ??)
  555.         AX = BFE0h
  556.