Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2002 00:28:04 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 22698 for review
Message-ID:  <200212240828.gBO8S4jb005691@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=22698

Change 22698 by marcel@marcel_nfs on 2002/12/24 00:27:44

	When we initialize FCR and MCR, update the softc where we
	keep an image of them.

Affected files ...

.. //depot/projects/ia64/sys/dev/sio/sio_cons.c#8 edit

Differences ...

==== //depot/projects/ia64/sys/dev/sio/sio_cons.c#8 (text+ko) ====

@@ -162,12 +162,13 @@
 	/* XXX barrier */
 
 	/* Disable the FIFO (if present). */
-	sio_setreg(&sio_console, com_fcr, 0);
+	sio_console.reg_fcr = 0;
+	sio_setreg(&sio_console, com_fcr, sio_console.reg_fcr);
 	/* XXX barrier */
-	sio_console.reg_fcr = 0;
 
 	/* Set MCR. */
-	sio_setreg(&sio_console, com_mcr, MCR_IENABLE | MCR_RTS | MCR_DTR);
+	sio_console.reg_mcr = MCR_IENABLE | MCR_RTS | MCR_DTR;
+	sio_setreg(&sio_console, com_mcr, sio_console.reg_mcr);
 	/* XXX barrier */
 
 	/*

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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