From 262b9a31033601fdb777d1e605e4ef4d3b02f712 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Tue, 4 Jun 2002 19:26:50 +0000 Subject: identify keyboard/mouse ports --- sys/arch/sparc64/dev/com_ebus.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/arch/sparc64/dev/com_ebus.c b/sys/arch/sparc64/dev/com_ebus.c index 4da384810da..7b5b2ca7c02 100644 --- a/sys/arch/sparc64/dev/com_ebus.c +++ b/sys/arch/sparc64/dev/com_ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_ebus.c,v 1.6 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: com_ebus.c,v 1.7 2002/06/04 19:26:49 jason Exp $ */ /* $NetBSD: com_ebus.c,v 1.6 2001/07/24 19:27:10 eeh Exp $ */ /* @@ -163,7 +163,12 @@ com_ebus_attach(parent, self, aux) if (com_is_output) cn_tab->cn_putc = comcnputc; } + + if (OF_getproplen(ea->ea_node, "keyboard") == 0) + printf(", keyboard"); + else if (OF_getproplen(ea->ea_node, "mouse") == 0) + printf(", mouse"); + /* Now attach the driver */ com_attach_subr(sc); } - -- cgit v1.2.3