diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-01-12 02:04:13 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-01-12 02:04:13 +0100 |
commit | 34f2e1eaf607c577b263f553c465930afbebd10f (patch) | |
tree | 6e627be7692f5ec2661d411caad17c8691e0c443 | |
parent | 9b28b2d97b2a064cecdcd44a4a627db0c28e633d (diff) | |
download | plan9front-34f2e1eaf607c577b263f553c465930afbebd10f.tar.xz |
igfx: aaand vga support for x200s :-)
-rw-r--r-- | sys/src/cmd/aux/vga/igfx.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/src/cmd/aux/vga/igfx.c b/sys/src/cmd/aux/vga/igfx.c index 7dcf7eb36..ac85ce3fb 100644 --- a/sys/src/cmd/aux/vga/igfx.c +++ b/sys/src/cmd/aux/vga/igfx.c @@ -779,6 +779,19 @@ init(Vga* vga, Ctlr* ctlr) else x = (igfx->adpa.v >> 30) & 1; igfx->adpa.v |= (1<<31); + if(igfx->type == TypeG45){ + igfx->adpa.v &= ~(3<<10); /* Monitor DPMS */ + + igfx->adpa.v &= ~(1<<15); /* ADPA Polarity Select */ + if(m->vsync == '+') + igfx->adpa.v |= 1<<4; + else if(m->vsync == '-') + igfx->adpa.v &= ~(1<<14); + if(m->hsync == '+') + igfx->adpa.v |= 1<<3; + else if(m->hsync == '-') + igfx->adpa.v &= ~(1<<3); + } } p = &igfx->pipe[x]; |