Home | History | Annotate | Download | only in src

Lines Matching refs:vga

7  * This file contains routines to set modes using the VGA registers.  
139 /* VGA STRUCTURE */
171 int gu2_vga_save(gfx_vga_struct * vga, int flags);
173 int gu2_vga_restore(gfx_vga_struct * vga, int flags);
192 DEBUGMSG(1, (0, X_NONE, "Saving VGA Data\n"));
196 DEBUGMSG(1, (0, X_NONE, "Restore VGA Data\n"));
299 * This routine saves the state of the VGA registers into the specified
305 gu2_vga_save(gfx_vga_struct * vga, int flags)
318 vga->miscOutput = gfx_inb(0x3CC);
339 vga->stdCRTCregs[i] = gfx_inb(crtcdata);
361 vga->extCRTCregs[i] = gfx_inb(crtcdata);
383 /* save the VGA data */
392 * behave like standard VGA.
445 * This routine restores the state of the VGA registers from the specified
451 gu2_vga_restore(gfx_vga_struct * vga, int flags)
464 gfx_outb(0x3C2, vga->miscOutput);
490 gfx_outb(crtcdata, vga->stdCRTCregs[i]);
518 gfx_outb(crtcdata, vga->extCRTCregs[i]);
528 if (vga->extCRTCregs[0x03] & 1) {
565 /* restore the VGA data */