Date: Sat, 21 Dec 2002 19:25:24 -0800 (PST) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 22604 for review Message-ID: <200212220325.gBM3PO4n070182@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=22604 Change 22604 by marcel@marcel_nfs on 2002/12/21 19:24:26 o Save the divisor latch in siocnprobe so that we can use it later without having to fiddle with DLAB, o Set comdefaultrate and comdefaultrclk in siocninit as we know at that time that we have a serial console. Note that we still don't handle the case of not finding the UART during bus enumeration while it's the serial console. It may be better to deal with that somewhere else... Affected files ... .. //depot/projects/ia64/sys/dev/sio/sio_cons.c#4 edit Differences ... ==== //depot/projects/ia64/sys/dev/sio/sio_cons.c#4 (text+ko) ==== @@ -149,6 +149,8 @@ sio_setreg(&sio_console, com_lcr, lcr); /* XXX barrier */ + sio_console.reg_dl = divisor; + cp->cn_pri = (boothowto & RB_SERIAL) ? CN_REMOTE : CN_NORMAL; } @@ -170,7 +172,7 @@ sio_console.reg_fcr = fcr; /* Set MCR. */ - sio_setreg(&sio_console, com_mcr, MCR_IENABLE | MCR_DTR); + sio_setreg(&sio_console, com_mcr, MCR_IENABLE | MCR_RTS | MCR_DTR); /* XXX barrier */ /* @@ -193,6 +195,9 @@ /* It's official... */ sio_console.consdev = cp; + + comdefaultrclk = sio_console.rclk; + comdefaultrate = (comdefaultrclk / sio_console.reg_dl) >> 4; } static void 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?200212220325.gBM3PO4n070182>