PERFORCE change 209327 for review
Robert Watson
rwatson at FreeBSD.org
Tue Apr 10 00:26:31 UTC 2012
http://p4web.freebsd.org/@@209327?ac=10
Change 209327 by rwatson at 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);
More information about the p4-projects
mailing list