diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-02-05 23:08:46 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-02-05 23:08:46 +0100 |
commit | 30871030f58f7f845dc5e6301df26acfecd0e5ac (patch) | |
tree | f99fd80b34bfec5fc4385f9f55b6c442769a4277 /sys/src/cmd/aux/vga/geode.c | |
parent | b41ca13526dcdeb526005e5407073c1cbd9b5607 (diff) |
aux/vga: remove vbs/vbe from mode, use shs/ehs when sync is ment, prefer detailed timing in edid
vbs/vbe members in Mode was only used in the vesadb
and cannot be changed from vgadb.
use shs/ehs in drivers when refering to the horizontal
sync pulse. clarify the matter in a comment.
link detailed timing modes at the head of the edid
modelist. these are the modes we'r interested in,
not the ones from vesadb.
Diffstat (limited to 'sys/src/cmd/aux/vga/geode.c')
-rw-r--r-- | sys/src/cmd/aux/vga/geode.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/src/cmd/aux/vga/geode.c b/sys/src/cmd/aux/vga/geode.c index b83af1ecb..6bcb790c9 100644 --- a/sys/src/cmd/aux/vga/geode.c +++ b/sys/src/cmd/aux/vga/geode.c @@ -105,9 +105,6 @@ init(Vga* vga, Ctlr* ctlr) geode = vga->private; m = vga->mode; - m->vbs = m->vrs; - m->vbe = m->vre; - /* there has to be a better solution */ if(m->x < 1024) { @@ -136,7 +133,7 @@ init(Vga* vga, Ctlr* ctlr) geode->regs[DC_H_SYNC_TIMING] = (m->shs - 1) | ((m->ehs - 1) << 16); geode->regs[DC_V_ACTIVE_TIMING] = (m->y - 1) | ((m->vt - 1) << 16); geode->regs[DC_V_BLANK_TIMING] = (m->vrs - 1) | ((m->vre - 1) << 16); - geode->regs[DC_V_SYNC_TIMING] = (m->vbs - 1) | ((m->vbe - 1) << 16); + geode->regs[DC_V_SYNC_TIMING] = (m->vrs - 1) | ((m->vre - 1) << 16); geode->regs[DC_FB_ACTIVE] = (m->x - 1) | ((m->y - 1) << 16); geode->regs[DC_GFX_PITCH] = geode->regs[DC_LINE_SIZE] = (m->x >> 3) * bpp; @@ -215,4 +212,4 @@ Ctlr geodehwgc = { 0, 0, 0, -};
\ No newline at end of file +}; |