1*e5cc2e7eSschwarze.\" $OpenBSD: spif.4,v 1.15 2013/07/16 16:05:50 schwarze Exp $ 210c5dbc2Sjason.\" 310c5dbc2Sjason.\" Copyright (c) 1999-2002 Jason L. Wright (jason@thought.net) 410c5dbc2Sjason.\" All rights reserved. 510c5dbc2Sjason.\" 610c5dbc2Sjason.\" Redistribution and use in source and binary forms, with or without 710c5dbc2Sjason.\" modification, are permitted provided that the following conditions 810c5dbc2Sjason.\" are met: 910c5dbc2Sjason.\" 1. Redistributions of source code must retain the above copyright 1010c5dbc2Sjason.\" notice, this list of conditions and the following disclaimer. 1110c5dbc2Sjason.\" 2. Redistributions in binary form must reproduce the above copyright 1210c5dbc2Sjason.\" notice, this list of conditions and the following disclaimer in the 1310c5dbc2Sjason.\" documentation and/or other materials provided with the distribution. 1410c5dbc2Sjason.\" 1510c5dbc2Sjason.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1610c5dbc2Sjason.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 1710c5dbc2Sjason.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 1810c5dbc2Sjason.\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 1910c5dbc2Sjason.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 2010c5dbc2Sjason.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 2110c5dbc2Sjason.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2210c5dbc2Sjason.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 2310c5dbc2Sjason.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 2410c5dbc2Sjason.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2510c5dbc2Sjason.\" POSSIBILITY OF SUCH DAMAGE. 2610c5dbc2Sjason.\" 27*e5cc2e7eSschwarze.Dd $Mdocdate: July 16 2013 $ 2810c5dbc2Sjason.Dt SPIF 4 sparc64 2910c5dbc2Sjason.Os 3010c5dbc2Sjason.Sh NAME 3110c5dbc2Sjason.Nm spif 3210c5dbc2Sjason.Nd SBus (spiffy) Serial/Parallel Interface 3310c5dbc2Sjason.Sh SYNOPSIS 34afb7f3acSmickey.Cd "spif* at sbus?" 3510c5dbc2Sjason.Cd "stty* at spif?" 3610c5dbc2Sjason.Cd "sbpp* at spif?" 3710c5dbc2Sjason.Sh DESCRIPTION 3810c5dbc2SjasonThe 395cde76c9Smpech.Nm 4010c5dbc2Sjasondriver provides support for the Sun Serial/Parallel Interface card 4110c5dbc2Sjason(Sun part number 501-1931) 4210c5dbc2Sjasonbased around the 4310c5dbc2SjasonCirrus Logic CD180 octal serial controller 4410c5dbc2Sjasonand the 4510c5dbc2SjasonCirrus Logic PPC2 parallel port controller. 4610c5dbc2Sjason.Pp 4710c5dbc2SjasonThe device minor numbers for this driver are encoded as follows: 4810c5dbc2Sjason.Bd -literal 4910c5dbc2Sjason +---+---+---+---+---+---+---+---+ 5010c5dbc2Sjason | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 5110c5dbc2Sjason +---+---+---+---+---+---+---+---+ 5210c5dbc2Sjason | | | | | | | | 5310c5dbc2Sjason | | | | | +---+---+---> port number 5410c5dbc2Sjason | | | | | 5510c5dbc2Sjason | | | | +---------------> unused 5610c5dbc2Sjason | | | | 579f3ad142Sjmc | | | +-------------------> dial-out (on tty ports) 5810c5dbc2Sjason | | | 5910c5dbc2Sjason | | +-----------------------> unused 6010c5dbc2Sjason | | 6110c5dbc2Sjason +---+---------------------------> card number 6210c5dbc2Sjason.Ed 6310c5dbc2Sjason.Pp 6410c5dbc2SjasonUp to four cards are supported in the system. 6510c5dbc2Sjason.Pp 6610c5dbc2SjasonEach of the serial ports has an 8 byte FIFO for receive and transmit as 6710c5dbc2Sjasonwell as automatic hardware (RTS/CTS) flow control. 68908a2779Sjmc.Sh FILES 69908a2779Sjmc.Bl -tag -width /dev/tty[jkl][0-7] -compact 70908a2779Sjmc.It /dev/tty[jkl][0-7] 71908a2779SjmcSerial ports 72908a2779Sjmc.It /dev/sbpp[0-3] 73908a2779SjmcParallel ports 74908a2779Sjmc.El 7510c5dbc2Sjason.Sh DIAGNOSTICS 7610c5dbc2Sjason.Bl -diag 77ffcc7157Stedu.It "spif0: ccr timeout" 7810c5dbc2SjasonA timeout occurred while writing to one of the CD180 registers. 79ffcc7157Stedu.It "stty0-N: ring overflow" 8010c5dbc2SjasonIncoming characters were discarded because the application 8110c5dbc2Sjasonin control of the device did not read the input fast enough. 8210c5dbc2Sjason.El 8310c5dbc2Sjason.Sh SEE ALSO 849cf9dc59Smiod.Xr intro 4 , 85cb2157fcSmpech.Xr sbus 4 , 8610c5dbc2Sjason.Xr tty 4 87908a2779Sjmc.Sh HISTORY 88908a2779SjmcThe 89908a2779Sjmc.Nm 90908a2779Sjmcdriver was first supported in 91908a2779Sjmc.Ox 3.1 . 9210c5dbc2Sjason.Sh AUTHORS 93d281945cSjaredy.An -nosplit 945cde76c9SmpechThe driver was written by 95*e5cc2e7eSschwarze.An Jason Wright Aq Mt jason@thought.net , 965cde76c9Smpechand is heavily based on the 9710c5dbc2Sjason.Xr magma 4 985cde76c9Smpechdriver written by 99*e5cc2e7eSschwarze.An Iain Hibbert Aq Mt plunky@skate.demon.co.uk . 10010c5dbc2Sjason.Sh TODO 10110c5dbc2SjasonThe parallel port is not supported yet. 10210c5dbc2Sjason.Pp 1039f3ad142SjmcDial-out (cua) devices are not yet supported. 104