Date: Thu, 14 Feb 2002 01:01:44 -0800 From: "Crist J. Clark" <crist.clark@attbi.com> To: doc@freebsd.org Subject: Fix Kernel Configs in the Serial and UART Tutorial Message-ID: <20020214010144.J33833@blossom.cjclark.org>
next in thread | raw e-mail | index | archive | help
The kernel configuration examples contain the depricated 'tty' flag, http://www.freebsd.org/doc/en_US.ISO8859-1/articles/serial-uart/index.html This will actually break the kernel configuration. Patch look good? I'll commit it, but I wanted to run it by some doc-committers first. Index: doc/en_US.ISO8859-1/articles/serial-uart/article.sgml =================================================================== RCS file: /home/ncvs/doc/en_US.ISO8859-1/articles/serial-uart/article.sgml,v retrieving revision 1.5 diff -u -r1.5 article.sgml --- doc/en_US.ISO8859-1/articles/serial-uart/article.sgml 5 Nov 2001 19:25:52 -0000 1.5 +++ doc/en_US.ISO8859-1/articles/serial-uart/article.sgml 14 Feb 2002 08:50:59 -0000 @@ -1985,14 +1985,14 @@ add <literal>options COM_MULTIPORT</literal> or it will not work very well!</para> - <programlisting>device sio4 at isa? port 0x100 tty flags 0xb05 -device sio5 at isa? port 0x108 tty flags 0xb05 -device sio6 at isa? port 0x110 tty flags 0xb05 -device sio7 at isa? port 0x118 tty flags 0xb05 -device sio8 at isa? port 0x120 tty flags 0xb05 -device sio9 at isa? port 0x128 tty flags 0xb05 -device sio10 at isa? port 0x130 tty flags 0xb05 -device sio11 at isa? port 0x138 tty flags 0xb05 irq 9 vector siointr</programlisting> + <programlisting>device sio4 at isa? port 0x100 flags 0xb05 +device sio5 at isa? port 0x108 flags 0xb05 +device sio6 at isa? port 0x110 flags 0xb05 +device sio7 at isa? port 0x118 flags 0xb05 +device sio8 at isa? port 0x120 flags 0xb05 +device sio9 at isa? port 0x128 flags 0xb05 +device sio10 at isa? port 0x130 flags 0xb05 +device sio11 at isa? port 0x138 flags 0xb05 irq 9 vector siointr</programlisting> <para>The trick in setting this up is that the MSB of the flags represent the last SIO port, in this case 11 so flags @@ -2061,13 +2061,13 @@ Each port is +8 hexadecimal from the previous port, thus the 100h, 108h, 110h... addresses.</para> - <programlisting>device sio1 at isa? port 0x100 tty flags 0x1005 -device sio2 at isa? port 0x108 tty flags 0x1005 -device sio3 at isa? port 0x110 tty flags 0x1005 -device sio4 at isa? port 0x118 tty flags 0x1005 + <programlisting>device sio1 at isa? port 0x100 flags 0x1005 +device sio2 at isa? port 0x108 flags 0x1005 +device sio3 at isa? port 0x110 flags 0x1005 +device sio4 at isa? port 0x118 flags 0x1005 … -device sio15 at isa? port 0x170 tty flags 0x1005 -device sio16 at isa? port 0x178 tty flags 0x1005 irq 3 vector siointr</programlisting> +device sio15 at isa? port 0x170 flags 0x1005 +device sio16 at isa? port 0x178 flags 0x1005 irq 3 vector siointr</programlisting> <para>The flags entry <emphasis>must</emphasis> be changed from this example unless you are using the exact same @@ -2249,11 +2249,11 @@ this example, we would configure:</para> <programlisting># standard on-board COM1 port -device sio0 at isa? port "IO_COM1" tty flags 0x10 +device sio0 at isa? port "IO_COM1" flags 0x10 # patched-up multi-I/O extension board options COM_MULTIPORT -device sio1 at isa? port "IO_COM2" tty flags 0x205 -device sio2 at isa? port "IO_COM3" tty flags 0x205 irq 3</programlisting> +device sio1 at isa? port "IO_COM2" flags 0x205 +device sio2 at isa? port "IO_COM3" flags 0x205 irq 3</programlisting> <para>Note that the <literal>flags</literal> setting for <devicename>sio1</devicename> and @@ -2303,7 +2303,7 @@ kernel configuration (note that your irq and iomem settings may differ).</para> - <programlisting>device cy0 at isa? tty irq 10 iomem 0xd4000 iosiz 0x2000 vector cyintr</programlisting> + <programlisting>device cy0 at isa? irq 10 iomem 0xd4000 iosiz 0x2000 vector cyintr</programlisting> </step> <step> @@ -2386,7 +2386,7 @@ your kernel configuration file, changing the numbers as appropriate:</para> - <programlisting>device si0 at isa? tty iomem 0xd0000 irq 11</programlisting> + <programlisting>device si0 at isa? iomem 0xd0000 irq 11</programlisting> <para>Valid IRQ numbers are 9, 10, 11, 12 and 15 for SX ISA host cards and 11, 12 and 15 for SI/XIO ISA host cards.</para> -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020214010144.J33833>