Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb If we're the console keyboard, automatically ena...



details:   https://anonhg.NetBSD.org/src/rev/f539ad2d413d
branches:  trunk
changeset: 473642:f539ad2d413d
user:      wrstuden <wrstuden%NetBSD.org@localhost>
date:      Fri Jun 11 19:05:13 1999 +0000

description:
If we're the console keyboard, automatically enable the keyboard.

Should fix part of console keyboard problems on macppc. The usb keyboard will
now work on boot! Doesn't fix problems with keyboard freaking out when
changing LED state.

Thanks to Mattias & Lennart & Tsubai for input on resolving this problem.

diffstat:

 sys/dev/usb/ukbd.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 458eed9b310c -r f539ad2d413d sys/dev/usb/ukbd.c
--- a/sys/dev/usb/ukbd.c        Fri Jun 11 15:38:40 1999 +0000
+++ b/sys/dev/usb/ukbd.c        Fri Jun 11 19:05:13 1999 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ukbd.c,v 1.33 1999/06/10 15:48:27 augustss Exp $        */
+/*      $NetBSD: ukbd.c,v 1.34 1999/06/11 19:05:13 wrstuden Exp $        */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -345,6 +345,7 @@
        if (sc->sc_console_keyboard) {
                DPRINTF(("ukbd_attach: console keyboard sc=%p\n", sc));
                wskbd_cnattach(&ukbd_consops, sc, &ukbd_keymapdata);
+               ukbd_enable(sc, 1);
        }
 
        a.console = sc->sc_console_keyboard;
@@ -623,6 +624,7 @@
 #elif defined(__FreeBSD__)
        res = leds;
 #endif
+       res |= leds & 0xf8;
        usbd_set_report_async(sc->sc_iface, UHID_OUTPUT_REPORT, 0, &res, 1);
 }
 



Home | Main Index | Thread Index | Old Index