summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-06-04 19:26:50 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-06-04 19:26:50 +0000
commit262b9a31033601fdb777d1e605e4ef4d3b02f712 (patch)
treebb5e630820e3c60ce1ab5ff88ac7b5277d75ee71 /sys/arch
parent1182df00f0a31834b42e85599fa3604e5aa51cb6 (diff)
identify keyboard/mouse ports
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/com_ebus.c9
1 files changed, 7 insertions, 2 deletions
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);
}
-