Lines Matching refs:vga
397 gfx_vga_mode(gfx_vga_struct * vga, int xres, int yres, int bpp, int hz)
407 *vga = gfx_vga_modes[i];
419 vga->stdCRTCregs[0x13] = (unsigned char) pitch;
420 vga->extCRTCregs[0x05] = (unsigned char) ((pitch >> 8) & 0x03);
427 vga->extCRTCregs[0x06] = CRTC_BIT_16BPP | CRTC_BIT_555;
430 vga->extCRTCregs[0x06] = CRTC_BIT_16BPP;
433 vga->extCRTCregs[0x06] = 0;
450 gfx_vga_pitch(gfx_vga_struct * vga, unsigned short pitch)
453 vga->stdCRTCregs[0x13] = (unsigned char) pitch;
454 vga->extCRTCregs[0x05] = (unsigned char) ((pitch >> 8) & 0x03);
467 gfx_vga_save(gfx_vga_struct * vga, int flags)
480 vga->miscOutput = INB(0x3CC);
490 vga->stdCRTCregs[i] = INB(crtcdata);
501 vga->extCRTCregs[i] = INB(crtcdata);
543 gfx_vga_restore(gfx_vga_struct * vga, int flags)
556 OUTB(0x3C2, vga->miscOutput);
571 OUTB(crtcdata, vga->stdCRTCregs[i]);
588 OUTB(crtcdata, vga->extCRTCregs[i]);
598 if (vga->extCRTCregs[0x03] & 1) {