summaryrefslogtreecommitdiffstats
path: root/sys/isa/syscons_isa.c
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>2000-01-12 12:30:33 +0000
committeryokota <yokota@FreeBSD.org>2000-01-12 12:30:33 +0000
commitd7a68849c148b5b010836c7f0204f35e8c609465 (patch)
tree0bb4b6407b3d6a985d895dff3260d28e567fa771 /sys/isa/syscons_isa.c
parent639e3cda8a1ad1f67c22408c63e3a929b4d7ebb2 (diff)
downloadFreeBSD-src-d7a68849c148b5b010836c7f0204f35e8c609465.zip
FreeBSD-src-d7a68849c148b5b010836c7f0204f35e8c609465.tar.gz
Make the mouse cursor char code configurable via the CONS_MOUSECTL
ioctl. By popular demand.
Diffstat (limited to 'sys/isa/syscons_isa.c')
-rw-r--r--sys/isa/syscons_isa.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/isa/syscons_isa.c b/sys/isa/syscons_isa.c
index dc0bb6f..cbaa1b8 100644
--- a/sys/isa/syscons_isa.c
+++ b/sys/isa/syscons_isa.c
@@ -82,7 +82,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)
@@ -122,17 +122,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
OpenPOWER on IntegriCloud