diff options
author | kato <kato@FreeBSD.org> | 2000-01-20 15:16:49 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 2000-01-20 15:16:49 +0000 |
commit | e65ad563e9e153b9857c7a2e9692140f96fa2294 (patch) | |
tree | a0db73249c4ea9f90c11cbded6d03c4a40e54ca9 /sys/pc98/cbus/syscons_cbus.c | |
parent | 6e6fcaf129853c6364edf8ddb3985852490dc07e (diff) | |
download | FreeBSD-src-e65ad563e9e153b9857c7a2e9692140f96fa2294.zip FreeBSD-src-e65ad563e9e153b9857c7a2e9692140f96fa2294.tar.gz |
Synced with the sc driver in the sys/dev/syscons directory.
Submitted by: yokota
Diffstat (limited to 'sys/pc98/cbus/syscons_cbus.c')
-rw-r--r-- | sys/pc98/cbus/syscons_cbus.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/pc98/cbus/syscons_cbus.c b/sys/pc98/cbus/syscons_cbus.c index 514aaca..d4f5bd1 100644 --- a/sys/pc98/cbus/syscons_cbus.c +++ b/sys/pc98/cbus/syscons_cbus.c @@ -69,7 +69,7 @@ static driver_t sc_driver = { sizeof(sc_softc_t), }; -static sc_softc_t main_softc = { 0, 0, 0, -1, NULL, -1, NULL, }; +static sc_softc_t main_softc; static int scprobe(device_t dev) @@ -109,17 +109,17 @@ sc_softc_t return NULL; if (flags & SC_KERNEL_CONSOLE) { /* FIXME: clear if it is wired to another unit! */ - main_softc.unit = unit; - return &main_softc; + sc = &main_softc; } else { sc = (sc_softc_t *)device_get_softc(devclass_get_device(sc_devclass, unit)); - if (!(sc->flags & SC_INIT_DONE)) { - sc->unit = unit; - sc->keyboard = -1; - sc->adapter = -1; - } - return sc; } + sc->unit = unit; + if (!(sc->flags & SC_INIT_DONE)) { + sc->keyboard = -1; + sc->adapter = -1; + sc->mouse_char = SC_MOUSE_CHAR; + } + return sc; } sc_softc_t |