Merged from sys/isa/syscons_isa.c revision 1.19.

This commit is contained in:
Yoshihiro Takahashi 2002-10-17 12:54:51 +00:00
parent 1f47349cf1
commit 971475a2da
2 changed files with 8 additions and 0 deletions

View File

@ -79,6 +79,7 @@ static int sc_cur_scr;
static int
scsuspend(device_t dev)
{
#ifndef SC_NO_SUSPEND_VTYSWITCH
int retry = 10;
static int dummy;
sc_softc_t *sc;
@ -93,17 +94,20 @@ scsuspend(device_t dev)
tsleep(&dummy, 0, "scsuspend", 100);
} while (retry--);
#endif
return (0);
}
static int
scresume(device_t dev)
{
#ifndef SC_NO_SUSPEND_VTYSWITCH
sc_softc_t *sc;
sc = &main_softc;
sc_switch_scr(sc, sc_cur_scr);
#endif
return (0);
}

View File

@ -79,6 +79,7 @@ static int sc_cur_scr;
static int
scsuspend(device_t dev)
{
#ifndef SC_NO_SUSPEND_VTYSWITCH
int retry = 10;
static int dummy;
sc_softc_t *sc;
@ -93,17 +94,20 @@ scsuspend(device_t dev)
tsleep(&dummy, 0, "scsuspend", 100);
} while (retry--);
#endif
return (0);
}
static int
scresume(device_t dev)
{
#ifndef SC_NO_SUSPEND_VTYSWITCH
sc_softc_t *sc;
sc = &main_softc;
sc_switch_scr(sc, sc_cur_scr);
#endif
return (0);
}