SPIF(4)               OpenBSD Programmer's Manual (SPARC)              SPIF(4)

NAME
     spif - SPARC (spiffy) Serial/Parallel Interface

SYNOPSIS
     spif* at sbus? slot ? offset ?                 (sun4c/sun4m)
     stty* at spif?                                 (sun4c/sun4m)
     sbpp* at spif?                                 (sun4c/sun4m)

DESCRIPTION
     The spif driver provides support for the Sun Serial/Parallel Interface
     card (Sun part number 501-1931) based around the Cirrus Logic CD180 octal
     serial controller and the Cirrus Logic PPC2 parallel port controller.

     The device minor numbers for this driver are encoded as follows:

         +---+---+---+---+---+---+---+---+
         | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
         +---+---+---+---+---+---+---+---+
           |   |   |   |   |   |   |   |
           |   |   |   |   |   +---+---+---> port number
           |   |   |   |   |
           |   |   |   |   +---------------> unused
           |   |   |   |
           |   |   |   +-------------------> dialout (on tty ports)
           |   |   |
           |   |   +-----------------------> unused
           |   |
           +---+---------------------------> card number

     Up to four cards are supported in the system.

     Each of the serial ports has an 8 byte FIFO for receive and transmit as
     well as automatic hardware (RTS/CTS) flow control.

DIAGNOSTICS
     spif%d: ccr timeout  A timeout occurred while writing to one of the CD180
     registers.

     stty%d-%d: fifo overflow  Incoming characters were discarded because the
     driver's interrupt routine could not read them fast enough from the card.

     stty%d-%d: ring overflow  Incoming characters were discarded because the
     application in control of the device did not read the input fast enough.

FILES
     /dev/tty[jkl][0-7]  Serial ports
     /dev/sbpp[0-3]      Parallel ports

SEE ALSO
     read(2), termios(4), tty(4)

AUTHORS
     The driver was written by Jason Wright <jason@thought.net>, and is heavi-
     ly based on the magma(4) driver written by Iain Hibbert <plunky@skate.de-
     mon.co.uk>.

HISTORY
     The spif driver was first supported in OpenBSD 2.5.

TODO
     The parallel port is not supported yet.

     Dialout (cua) devices are not yet supported.

OpenBSD 2.9                    February 4, 1999                              1
