Bug 28831

Summary: [patch] Stallion driver jumbo patch
Product: Base System Reporter: Gregory Bond <gnb>
Component: i386Assignee: Murray Stokely <murray>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description Gregory Bond 2001-07-09 08:40:01 UTC
Update stl(4) and stli(4) drivers to latest 2.0.0 version from Stallion.

As discussed last week on -stable and -bugs, I have built a patch
file (against -Stable) to update the Stallion drivers to the latest
version.  This version supports the newer PCI cards as well as newer ISA
cards with a different UART chip.  It also adds MAKEDEV support.

This patch has been tested with an EasyIO-PCI card (stl driver) and an
Easyconnect8/64 card (stli driver) with no obvious problems, but not all
corner cases of modem signals etc have been exercised.

Note this is against -Stable and still uses the "old compatibility shims".
Whatever that means!

----------

Packed: Wed Jul  4 11:40:34 EST 2001

Patched against: FreeBSD 4-Stable from approx 2001-07-02 07:00 UTC

This patch imports the latest unsupported 2.0.0 version of the
stallion driver from ftp.stallion.com (written by Greg Ungerer
<gerg@stallion.com>).  It is based on work done by Jan L. Peterson
<jlp@flipdog.com> in PR kern/22967 to convert this driver to FreeBSD
4.  The current version of the driver in the source tree is 1.0.0.

I have also changed the default device names made by MAKEDEV to be
more consistent with the rest of the system:
 - stl driver dialin devices are ttyE* as before
 - stli driver dialin devices no longer share the ttyE names, but now use 
    ttyF* names.  This allows stl and stli cards to coexist.
 - dialout devices are now called cuaE* and cuaF* (cf cue*) in line with the 
    rest of the system
 - Only make device nodes for 8 ports/card by default; this keeps the size 
    of /dev down.
See the patched MAKEDEV for more details.

A note of the above device changes should probably go into UPDATING
when this is committed to the source tree.

This patch will supercede/close the following PRs:
        i386/6368
        i386/19890
        kern/22967

The following files are basically unchanged between 1.0.0 and 2.0.0
except for whitespace in comments, so are not patched here:

       sys/i386/include/comstats.h
       sys/i386/isa/ic/scd1400.h

Gregory Bond
gnb@itga.com.au

New files
        sys/i386/isa/ic/sc26198.h
        usr.sbin/stallion/stlstty/stlstty.c
        usr.sbin/stallion/stlstty/stlstty.8
        usr.sbin/stallion/stlstty/Makefile
Patched files
        etc/MAKEDEV
        sys/i386/conf/LINT
        sys/i386/include/cdk.h
        sys/i386/isa/README.stl
        sys/i386/isa/istallion.c
        sys/i386/isa/stallion.c
        usr.sbin/stallion/Makefile
        usr.sbin/stallion/bootcode/2681.sys.uu
        usr.sbin/stallion/bootcode/cdk.sys.uu
        usr.sbin/stallion/bootcode/stl.4
        usr.sbin/stallion/stlload/stlload.c
        usr.sbin/stallion/stlload/stlload.8
        usr.sbin/stallion/stlstats/stlstats.8
        usr.sbin/stallion/stlstats/stlstats.c

To apply, cd to /usr/src and run "patch -p0 < <this file>"



----------

Fix: 

There is a 400k patch file available at
	http://www.itga.com.au/~gnb/console/stal-jumbo-patch
or a 200k compressed version at
	http://www.itga.com.au/~gnb/console/stal-jumbo-patch.gz

I have not attached the path file lest it cause GNATS to choke.  I can 
append it in a followup if there is a need for the patch to be recorded
in the audit trail.
How-To-Repeat: 
Boot FreeBSD on a box with a newer Stallion card (e.g. EasyIO-PCI) and notice
it is not recognised.
Comment 1 Murray Stokely freebsd_committer freebsd_triage 2001-07-21 02:27:30 UTC
Responsible Changed
From-To: freebsd-bugs->murray

Stallion is sending me an EasyIO 4 port card to get this driver working again.  As soon as it arrives I can review the different patches and make sure this hardware works on -STABLE.
Comment 2 Murray Stokely freebsd_committer freebsd_triage 2001-08-30 23:51:19 UTC
State Changed
From-To: open->closed

The driver has been committed to -STABLE and will ship with FreeBSD 
4.4.  Thanks!