home | help
SR(4)			  i386 Kernel Interfaces Manual 		   SR(4)

NAME
     sr -- synchronous RISCom/N2 / WANic 400/405 device driver

SYNOPSIS
     device sr0 at isa? port 0x300 irq 10 iomem 0xd0000
     device sr1 at isa? port 0x310 irq 11 flags 0x1 iomem 0xd0000

     pseudo-device sppp

DESCRIPTION
     The  sr  driver  supports the RISCom/N2 ISA cards and the WANic 400/405 PCI
     cards that is based on the HD64570 chip.

     The standard FreeBSD sppp code is used for the link level layer.	The  de-
     fault  protocol used is PPP.  The Cisco HDLC protocol can be used by adding
     link2 to ifconfig(8).

     Alternately, the driver can be compiled to support netgraph(4) (see below).

     The flags field is optional.  If it isn't specified, the driver will assume
     the following:

	   The card has 2 ports.

	   The clock for the serial ports is external and the  transmitter  uses
		   the same clock as the receiver.

     The  flags  are  a bit field and can be used to force a different behaviour
     than the default.

	   0x01    The card has only one port.

	   0x10    Use separate external clocks for transmit and receive on port
		   0.

	   0x40    Use separate external clocks for transmit and receive on port
		   1.

NUMBERING
     Only one line for each card is needed in  the  kernel  configuration  file.
     The  first  card's  ports	will be installed from sr0. The numbering of the
     next card will continue where the first stopped, eg. if the first card is a
     two port card it will use sr0 and sr1. The next card  will  then  start  at
     sr2.

     The card only supports IRQ 3, 4, 5, 7, 10, 11, 12 and 15.

     The iomem area is a 16Kb block and must start at a 16Kb boundary.

NETGRAPH SUPPORT
     If  the  kernel  is  compiled with options NETGRAPH then the sppp and Cisco
     HDLC modes are disabled (and the sppp driver is unneeded), and this  driver
     functions as a netgraph(4) node with a single hook named rawdata.	Connect-
     ing  to  this  hook  enables the transmission of raw HDLC frames.	The node
     will have the same name as  the  device  with  ``sync_''  prepended,  e.g.,
     sync_sr0.

DIAGNOSTICS
     sr%d:  Warning illegal interrupt %d.  The card cannot use the specified in-
     terrupt.  Choose a different one.

FILES
     /sys/i386/isa/ic/hd64570.h
     /sys/i386/isa/if_srregs.h
     /sys/i386/isa/if_sr.c
     /sys/i386/isa/if_sr.h
     /sys/pci/if_sr_p.c

BUGS
     At the moment only the X.21 interface  is	tested.   The  others  may  need
     tweaks to the clock selection code.

     The code can probably stand some optimizing.

SEE ALSO
     ar(4), cx(4), netgraph(4), netintro(4), ifconfig(8)

AUTHORS
     The sr device driver was written by John Hay <jhay@FreeBSD.org>.

     Netgraph support was added by Julian Elischer <julian@FreeBSD.org>.

FreeBSD 4.5			  July 4, 1996				   SR(4)

home | help