Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev Match "rsc-console" and set its baud ra...



details:   https://anonhg.NetBSD.org/src/rev/6fe352b27c87
branches:  trunk
changeset: 750505:6fe352b27c87
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sun Jan 03 17:02:03 2010 +0000

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

diffstat:

 sys/arch/sparc64/dev/com_ebus.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r b80cc5d200c9 -r 6fe352b27c87 sys/arch/sparc64/dev/com_ebus.c
--- a/sys/arch/sparc64/dev/com_ebus.c   Sun Jan 03 16:38:15 2010 +0000
+++ b/sys/arch/sparc64/dev/com_ebus.c   Sun Jan 03 17:02:03 2010 +0000
@@ -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. */



Home | Main Index | Thread Index | Old Index