Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 May 2012 08:26:25 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 210519 for review
Message-ID:  <201205020826.q428QPkm057449@skunkworks.freebsd.org>

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

Change 210519 by rwatson@rwatson_cinnamon on 2012/05/02 08:25:57

	As done recently in the Altera JTAG UART device driver, rename
	the gxemul console device from a device-specific name to "ttyu0",
	allowing it to be used with the default /etc/ttys on
	FreeBSD/mips.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/sys/dev/gxemul/cons/gxemul_cons.c#3 edit

Differences ...

==== //depot/projects/ctsrd/beribsd/src/sys/dev/gxemul/cons/gxemul_cons.c#3 (text+ko) ====

@@ -218,7 +218,7 @@
 gxemul_cons_cnprobe(struct consdev *cp)
 {
 
-	sprintf(cp->cn_name, "gxcons");
+	sprintf(cp->cn_name, "ttyu0");
 	cp->cn_pri = CN_NORMAL;
 }
 
@@ -279,7 +279,7 @@
 
 	tp = tty_alloc(&gxemul_cons_ttydevsw, NULL);
 	tty_init_console(tp, 0);
-	tty_makedev(tp, NULL, "%s", "gxcons");
+	tty_makedev(tp, NULL, "%s", "ttyu0");
 	callout_init(&gxemul_cons_callout, CALLOUT_MPSAFE);
 	callout_reset(&gxemul_cons_callout, gxemul_cons_polltime,
 	    gxemul_cons_timeout, tp);



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