1.\" $OpenBSD: com.4,v 1.34 2009/05/17 22:08:32 miod Exp $ 2.\" $NetBSD: com.4,v 1.5 1996/03/16 00:07:08 thorpej Exp $ 3.\" 4.\" Copyright (c) 1990, 1991 The Regents of the University of California. 5.\" All rights reserved. 6.\" 7.\" This code is derived from software contributed to Berkeley by 8.\" the Systems Programming Group of the University of Utah Computer 9.\" Science Department. 10.\" Redistribution and use in source and binary forms, with or without 11.\" modification, are permitted provided that the following conditions 12.\" are met: 13.\" 1. Redistributions of source code must retain the above copyright 14.\" notice, this list of conditions and the following disclaimer. 15.\" 2. Redistributions in binary form must reproduce the above copyright 16.\" notice, this list of conditions and the following disclaimer in the 17.\" documentation and/or other materials provided with the distribution. 18.\" 3. Neither the name of the University nor the names of its contributors 19.\" may be used to endorse or promote products derived from this software 20.\" without specific prior written permission. 21.\" 22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" 34.\" from: @(#)dca.4 5.2 (Berkeley) 3/27/91 35.\" 36.Dd $Mdocdate: May 17 2009 $ 37.Dt COM 4 38.Os 39.Sh NAME 40.Nm com 41.Nd serial communications interface 42.Sh SYNOPSIS 43.Cd "# com attachments" 44.Cd "#" 45.Cd "# i386" 46.Cd "com0 at isa? port 0x3f8 irq 4" 47.Cd "com1 at isa? port 0x2f8 irq 3" 48.Cd "com2 at isa? port 0x3e8 irq 5" 49.Cd "com3 at isa? port 0x2e8 irq 9" 50.Cd "com* at isapnp?" 51.Cd "com* at pcmcia?" 52.Cd "com* at puc?" 53.Cd "com* at cardbus?" 54.Pp 55.Cd "com* at addcom?" 56.Cd "com* at ast?" 57.Cd "com* at boca?" 58.Cd "com* at hsq?" 59.Cd "com* at rtfps?" 60.Pp 61.Cd "# alpha and amd64" 62.Cd "com0 at isa? port 0x3f8 irq 4" 63.Cd "com1 at isa? port 0x2f8 irq 3" 64.Pp 65.Cd "# armish" 66.Cd "com0 at obio? addr 0xfe800000 xint 3" 67.Pp 68.Cd "# hppa" 69.Cd "com0 at gsc? offset 0x5000 irq 5" 70.Cd "com0 at gsc? offset 0x823000 irq 5" 71.Cd "com1 at gsc? offset 0x822000 irq 6" 72.Cd "com2 at gsc? irq 13" 73.Cd "com1 at dino? irq 11" 74.Cd "com0 at ssio? irq 4" 75.Cd "com1 at ssio? irq 3" 76.Pp 77.Cd "# macppc" 78.Cd "com* at puc?" 79.Cd "com* at pcmcia?" 80.Cd "com* at cardbus?" 81.Pp 82.Cd "# sgi" 83.Cd "com0 at macebus0 base 0x00390000 irq 5" 84.Cd "com1 at macebus0 base 0x00398000 irq 5" 85.Cd "com0 at ioc? base 0x00020178" 86.Cd "com1 at ioc? base 0x00020170" 87.Pp 88.Cd "# socppc" 89.Cd "com0 at obio? addr 0x04500 ivec 9" 90.Cd "com1 at obio? addr 0x04600 ivec 10" 91.Pp 92.Cd "# sparc" 93.Cd "com* at obio? " Pq "built-in modem on SPARCbook" 94.Pp 95.Cd "# sparc64" 96.Cd "com* at asio?" 97.Cd "com* at ebus?" 98.Cd "com* at puc?" 99.Pp 100.Cd "# zaurus" 101.Cd "com0 at pxaip? addr 0x40100000 intr 22 " Pq "full function UART" 102.Cd "com1 at pxaip? addr 0x40200000 intr 21 " Pq "bluetooth UART" 103.Cd "com2 at pxaip? addr 0x40700000 intr 20 " Pq "slow infrared UART" 104.Cd "com* at pcmcia?" 105.Sh DESCRIPTION 106The 107.Nm com 108driver provides support for NS8250-, NS16450-, NS16550-, ST16650-, 109ST16C654-, and TI16750-based 110.\" XR16850- 111.Tn EIA 112.Tn RS-232C 113.Pf ( Tn CCITT 114.Tn V.28 ) 115communications interfaces. 116.Pp 117The NS8250 and NS16450 have single 118character buffers, the NS16550 has a 16 character buffer, while 119the ST16650 has a 32 character buffer, and the TI16750 has a 64 character 120buffer. 121.\" The XR16850 has a 128 character buffer. 122.Pp 123Input and output for each line may be set to one of following baud rates; 12450, 75, 110, 134.5, 150, 300, 600, 1200, 1800, 2400, 4800, 9600, 12519200, 38400, 57600, or 115200, or any other baud rate which is a factor 126of 115200. 127.Sh FILES 128.Bl -tag -width Pa -compact 129.It Pa /dev/tty00 130.It Pa /dev/tty01 131.It Pa /dev/cua00 132.It Pa /dev/cua01 133.El 134.Sh DIAGNOSTICS 135.Bl -diag 136.It com%d: %d silo overflows 137The input 138.Dq silo 139has overflowed and incoming data has been lost. 140.It com%d: weird interrupt: iir=%x 141The device has generated an unexpected interrupt 142with the code listed. 143.El 144.Sh SEE ALSO 145.Xr addcom 4 , 146.Xr asio 4 , 147.Xr ast 4 , 148.Xr boca 4 , 149.Xr cardbus 4 , 150.Xr dino 4 , 151.Xr ebus 4 , 152.Xr gsc 4 , 153.Xr hsq 4 , 154.Xr intro 4 , 155.Xr isa 4 , 156.Xr isapnp 4 , 157.Xr pcmcia 4 , 158.Xr puc 4 , 159.Xr pxaip 4 , 160.Xr rtfps 4 , 161.Xr ssio 4 , 162.Xr tty 4 163.Sh HISTORY 164The 165.Nm 166driver was originally derived from the 167.Nm HP9000/300 168.Nm dca 169driver. 170.Sh BUGS 171Data loss is possible on busy systems with unbuffered UARTs at high speed. 172.Pp 173The name of this driver and the constants which define the locations 174of the various serial ports are holdovers from 175.Nm DOS . 176