From gnb@itga.com.au  Mon Jul  9 00:30:39 2001
Return-Path: <gnb@itga.com.au>
Received: from ns.itga.com.au (ns.itga.com.au [202.53.40.210])
	by hub.freebsd.org (Postfix) with ESMTP id A030B37B406
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Jul 2001 00:30:36 -0700 (PDT)
	(envelope-from gnb@itga.com.au)
Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20])
	by ns.itga.com.au (8.9.3/8.9.3) with ESMTP id RAA83975
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 9 Jul 2001 17:30:34 +1000 (EST)
	(envelope-from gnb@itga.com.au)
Received: from hellcat.itga.com.au (hellcat.itga.com.au [192.168.71.163])
	by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id RAA23959;
	Mon, 9 Jul 2001 17:29:18 +1000 (EST)
Received: (from gnb@localhost)
	by hellcat.itga.com.au (8.11.4/8.11.4) id f697TIO53566;
	Mon, 9 Jul 2001 17:29:18 +1000 (EST)
	(envelope-from gnb)
Message-Id: <200107090729.f697TIO53566@hellcat.itga.com.au>
Date: Mon, 9 Jul 2001 17:29:18 +1000 (EST)
From: Gregory Bond <gnb@itga.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] Stallion driver jumbo patch
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28831
>Category:       i386
>Synopsis:       [patch] Stallion driver jumbo patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    murray
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 09 00:40:01 PDT 2001
>Closed-Date:    Thu Aug 30 15:51:19 PDT 2001
>Last-Modified:  Thu Aug 30 15:51:50 PDT 2001
>Originator:     Gregory Bond
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
ITG Australia Limited
>Environment:
System: FreeBSD hellcat.itga.com.au 4.3-STABLE FreeBSD 4.3-STABLE #21: Mon Jun 18 13:41:36 EST 2001 toor@hellcat.itga.com.au:/usr/obj/usr/src/sys/Hellcat i386


>Description:

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>"



----------

>How-To-Repeat:

Boot FreeBSD on a box with a newer Stallion card (e.g. EasyIO-PCI) and notice
it is not recognised.

>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.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->murray 
Responsible-Changed-By: murray 
Responsible-Changed-When: Fri Jul 20 18:27:30 PDT 2001 
Responsible-Changed-Why:  
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. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28831 
State-Changed-From-To: open->closed 
State-Changed-By: murray 
State-Changed-When: Thu Aug 30 15:51:19 PDT 2001 
State-Changed-Why:  
The driver has been committed to -STABLE and will ship with FreeBSD 
4.4.  Thanks! 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28831 
>Unformatted:
