Make the GRFIOCBLANK ioctl set the right timing divisor when switching the
screen back on.
This commit is contained in:
parent
91ac291d97
commit
c978bf3f9f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: grf_rh.c,v 1.17 1996/05/19 21:05:37 veego Exp $ */
|
||||
/* $NetBSD: grf_rh.c,v 1.18 1996/05/24 19:26:12 is Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Markus Wild
|
||||
|
@ -1413,7 +1413,7 @@ int rh_mon_max = sizeof (monitor_defs)/sizeof (monitor_defs[0]);
|
|||
int rh_default_mon = 0;
|
||||
int rh_default_gfx = 4;
|
||||
|
||||
static struct MonDef *current_mon;
|
||||
static struct MonDef *current_mon; /* EVIL */
|
||||
|
||||
int rh_mode __P((struct grf_softc *, u_long, void *, u_long, int));
|
||||
void grfrhattach __P((struct device *, struct device *, void *));
|
||||
|
@ -2063,12 +2063,12 @@ rh_blank(gp, on)
|
|||
struct grf_softc *gp;
|
||||
int *on;
|
||||
{
|
||||
struct MonDef *md = (struct MonDef *)gp->g_data;
|
||||
int r;
|
||||
|
||||
r = RSeq(gp->g_regkva, SEQ_ID_CLOCKING_MODE);
|
||||
r &= 0xdf; /* set Bit 5 to 0 */
|
||||
r = 0x01 | ((md->FLG & MDF_CLKDIV2)/ MDF_CLKDIV2 * 8);
|
||||
|
||||
WSeq(gp->g_regkva, SEQ_ID_CLOCKING_MODE, r | (*on ? 0x00 : 0x20));
|
||||
WSeq(gp->g_regkva, SEQ_ID_CLOCKING_MODE, *on ? r : 0x21);
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: grf_rt.c,v 1.27 1996/05/19 21:05:45 veego Exp $ */
|
||||
/* $NetBSD: grf_rt.c,v 1.28 1996/05/24 19:26:15 is Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993 Markus Wild
|
||||
|
@ -1459,12 +1459,12 @@ rt_blank(gp, on)
|
|||
struct grf_softc *gp;
|
||||
int *on;
|
||||
{
|
||||
struct MonDef *md = (struct MonDef *)gp->g_data;
|
||||
int r;
|
||||
|
||||
r = RSeq(gp->g_regkva, SEQ_ID_CLOCKING_MODE);
|
||||
r &= 0xdf; /* set Bit 5 to 0 */
|
||||
r = 0x01 | ((md->FLG & MDF_CLKDIV2)/ MDF_CLKDIV2 * 8));
|
||||
|
||||
WSeq(gp->g_regkva, SEQ_ID_CLOCKING_MODE, r | (*on ? 0x00 : 0x20));
|
||||
WSeq(gp->g_regkva, SEQ_ID_CLOCKING_MODE, *on ? r : 0x21);
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue