Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Attach kbd slot to console



details:   https://anonhg.NetBSD.org/src/rev/90d49d3eb569
branches:  trunk
changeset: 824461:90d49d3eb569
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Jun 06 00:26:16 2017 +0000

description:
Attach kbd slot to console

diffstat:

 sys/dev/ic/pl050.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 978456673393 -r 90d49d3eb569 sys/dev/ic/pl050.c
--- a/sys/dev/ic/pl050.c        Tue Jun 06 00:25:48 2017 +0000
+++ b/sys/dev/ic/pl050.c        Tue Jun 06 00:26:16 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pl050.c,v 1.1 2017/06/03 17:03:36 jmcneill Exp $ */
+/* $NetBSD: pl050.c,v 1.2 2017/06/06 00:26:16 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pl050.c,v 1.1 2017/06/03 17:03:36 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pl050.c,v 1.2 2017/06/06 00:26:16 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -164,6 +164,9 @@
                        sc->sc_slot = slot;
                        break;
                }
+
+       if (sc->sc_slot == PCKBPORT_KBD_SLOT)
+               pckbport_cnattach(sc, &plkmi_ops, sc->sc_slot);
 }
 
 int



Home | Main Index | Thread Index | Old Index