Module Name:    src
Committed By:   jdc
Date:           Sun Jan  3 17:02:03 UTC 2010

Modified Files:
        src/sys/arch/sparc64/dev: com_ebus.c

Log Message:
Match "rsc-console" and set its baud rate to 115200.
Makes the 501-5856 (RSC2) card usuable as console on a Fire 280R.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/sparc64/dev/com_ebus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc64/dev/com_ebus.c
diff -u src/sys/arch/sparc64/dev/com_ebus.c:1.29 src/sys/arch/sparc64/dev/com_ebus.c:1.30
--- src/sys/arch/sparc64/dev/com_ebus.c:1.29	Sat Nov 14 03:43:52 2009
+++ src/sys/arch/sparc64/dev/com_ebus.c	Sun Jan  3 17:02:03 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: com_ebus.c,v 1.29 2009/11/14 03:43:52 nakayama Exp $	*/
+/*	$NetBSD: com_ebus.c,v 1.30 2010/01/03 17:02:03 jdc Exp $	*/
 
 /*
  * Copyright (c) 1999, 2000 Matthew R. Green
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com_ebus.c,v 1.29 2009/11/14 03:43:52 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com_ebus.c,v 1.30 2010/01/03 17:02:03 jdc Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -63,6 +63,7 @@
 static const char *com_names[] = {
 	"su",
 	"su_pnp",
+	"rsc-console",
 	NULL
 };
 
@@ -151,7 +152,10 @@
 		struct consdev *cn_orig;
 
 		/* Record some info to attach console. */
-		kma.kmta_baud = 9600;
+		if (strcmp(ea->ea_name, "rsc-console") == 0)
+			kma.kmta_baud = 115200;
+		else
+			kma.kmta_baud = 9600;
 		kma.kmta_cflag = (CREAD | CS8 | HUPCL);
 
 		/* Attach com as the console. */

Reply via email to