changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: igfx: aaand vga support for x200s :-)

changeset 4201: 6e74137cd05c
parent 4200: 4867c8979fa0
child 4202: 4ab066e1b5b2
author: cinap_lenrek@felloff.net
date: Mon, 12 Jan 2015 02:04:13 +0100
files: sys/src/cmd/aux/vga/igfx.c
description: igfx: aaand vga support for x200s :-)
     1.1--- a/sys/src/cmd/aux/vga/igfx.c
     1.2+++ b/sys/src/cmd/aux/vga/igfx.c
     1.3@@ -779,6 +779,19 @@ init(Vga* vga, Ctlr* ctlr)
     1.4 		else
     1.5 			x = (igfx->adpa.v >> 30) & 1;
     1.6 		igfx->adpa.v |= (1<<31);
     1.7+		if(igfx->type == TypeG45){
     1.8+			igfx->adpa.v &= ~(3<<10);	/* Monitor DPMS */
     1.9+
    1.10+			igfx->adpa.v &= ~(1<<15);	/* ADPA Polarity Select */
    1.11+			if(m->vsync == '+')
    1.12+				igfx->adpa.v |= 1<<4;
    1.13+			else if(m->vsync == '-')
    1.14+				igfx->adpa.v &= ~(1<<14);
    1.15+			if(m->hsync == '+')
    1.16+				igfx->adpa.v |= 1<<3;
    1.17+			else if(m->hsync == '-')
    1.18+				igfx->adpa.v &= ~(1<<3);
    1.19+		}
    1.20 	}
    1.21 	p = &igfx->pipe[x];
    1.22