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/c6d10fd853c9
branches: trunk
changeset: 354160:c6d10fd853c9
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 c97429c14bf1 -r c6d10fd853c9 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