Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2012 00:26:30 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 209327 for review
Message-ID:  <201204100026.q3A0QU9U079631@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@209327?ac=10

Change 209327 by rwatson@rwatson_svr_ctsrd_mipsbuild on 2012/04/10 00:25:33

	Use the name 'ttyu0' rather than 'ajuart' for the Altera JTAG UART
	so that /etc/ttys as shipped by default on MIPS will "just work"
	when going to multiuser mode, rather than requiring a custom entry
	to enable a getty/login session.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/jtag_uart/altera_jtag_uart.c#2 edit

Differences ...

==== //depot/projects/ctsrd/beribsd/src/sys/dev/altera/jtag_uart/altera_jtag_uart.c#2 (text+ko) ====

@@ -41,6 +41,8 @@
 
 #include <ddb/ddb.h>
 
+#define	AJU_TTYNAME	"ttyu0"
+
 #define	AJU_LOCK_INIT()		mtx_init(&aj_uart_lock, "aj_uart_lock",	\
 				    NULL, MTX_SPIN)
 
@@ -294,7 +296,7 @@
 aj_uart_cnprobe(struct consdev *cp)
 {
 
-	sprintf(cp->cn_name, "ajuart");
+	sprintf(cp->cn_name, "ttyu0");
 	cp->cn_pri = CN_NORMAL;
 }
 
@@ -355,7 +357,7 @@
 
 	tp = tty_alloc(&aj_uart_ttydevsw, NULL);
 	tty_init_console(tp, 0);
-	tty_makedev(tp, NULL, "%s", "ajuart");
+	tty_makedev(tp, NULL, "%s", AJU_TTYNAME);
 	callout_init(&aj_uart_callout, CALLOUT_MPSAFE);
 	callout_reset(&aj_uart_callout, aj_uart_polltime, aj_uart_timeout,
 	    tp);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204100026.q3A0QU9U079631>