From sgu03026@nifty.ne.jp  Sun Jun 18 07:39:11 2000
Return-Path: <sgu03026@nifty.ne.jp>
Received: from smtp1.nifty.ne.jp (smtp1.nifty.ne.jp [202.219.63.53])
	by hub.freebsd.org (Postfix) with ESMTP id A07BF37B99B
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Jun 2000 07:39:03 -0700 (PDT)
	(envelope-from sgu03026@nifty.ne.jp)
Received: from localhost (tckw015n028.ppp.infoweb.ne.jp [211.2.7.92])
	by smtp1.nifty.ne.jp (8.9.3+3.2W/3.7W-991025) with ESMTP id XAA24474
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Jun 2000 23:38:57 +0900 (JST)
Message-Id: <20000618233730B.sgu03026@nifty.ne.jp>
Date: Sun, 18 Jun 2000 23:37:30 +0900
From: SGU03026@nifty.ne.jp
Sender: Koichi Soraku <sgu03026@nifty.ne.jp>
Reply-To: SGU03026@nifty.ne.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: lnc1 is not worked with Am79C973

>Number:         19365
>Category:       i386
>Synopsis:       lnc1 is not worked with Am79C973
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gj
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 18 07:40:00 PDT 2000
>Closed-Date:    Sun Mar 4 04:18:10 PST 2001
>Last-Modified:  Sun Mar 04 04:20:38 PST 2001
>Originator:     Koichi Soraku
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
NIFTY-SERVE Japan
>Environment:

FreeBSD creunoc.magi.nifty.ne.jp.invalid 3.3-RELEASE FreeBSD 3.3-RELEASE #0: Wed Jun 14 18:37:10 JST 2000     root@creunoc.magi.nifty.ne.jp.invalid:/usr/src/sys/compile/CREUNOC  i386

>Description:

	lnc1 is not worked with HITACHI FLORA270SX's internal NIC.
	That use Am79C973 chip. But if_lnc.c and if_lnc.h are not
	supported it's chip-ID.

>How-To-Repeat:

	Setup FreeBSD 3.3-RELEASE i386 on FLORA270SX.

>Fix:

To support Am79C973's chip-ID.

#Patch for if_lnc.c	
---->start---->start---->start---->staet----->
*** /sys/i386/isa/if_lnc.c.org	Mon Aug 30 01:07:22 1999
--- /sys/i386/isa/if_lnc.c	Wed Jun 14 18:32:12 2000
***************
*** 151,156 ****
--- 151,157 ----
  	"PCnet-PCI II",
  	"PCnet-FAST",
  	"PCnet-FAST+",
+ 	"PCnet-FAST III",
  };
  
  static void lnc_setladrf __P((struct lnc_softc *sc));
***************
*** 1192,1197 ****
--- 1193,1200 ----
  				return (PCnet_FAST);
  			case Am79C972:
  				return (PCnet_FASTplus);
+ 			case Am79C973:
+ 				return (PCnet_FAST_III);
  			default:
  				break;
  			}
<---- END <---- END <---- END <---- END <----

#Patch for if_lnc.h
---->start---->start---->start---->staet----->
*** /sys/i386/isa/if_lnc.h.org	Mon Aug 30 01:07:23 1999
--- /sys/i386/isa/if_lnc.h	Wed Jun 14 18:33:19 2000
***************
*** 107,112 ****
--- 107,113 ----
  #define PCnet_PCI_II    8        /* Am79C970A */
  #define PCnet_FAST      9        /* Am79C971 */
  #define PCnet_FASTplus  10       /* Am79C972 */
+ #define PCnet_FAST_III  11       /* Am79C973, Am79C975 */
  
  /* CSR88-89: Chip ID masks */
  #define AMD_MASK  0x003
***************
*** 119,124 ****
--- 120,127 ----
  #define Am79C970A 0x2621
  #define Am79C971  0x2623
  #define Am79C972  0x2624
+ #define Am79C973  0x2625
+ #define Am79C975  0x2627
  
  /* Board types */
  #define UNKNOWN         0
<---- END <---- END <---- END <---- END <----

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gj 
Responsible-Changed-By: johan 
Responsible-Changed-When: Thu Oct 12 12:39:24 PDT 2000 
Responsible-Changed-Why:  
Gary, you committed a similar patch in  
rev 1.5 dev/lnc/if_lnc_isa.c 
rev 1.68.2.2 i386/isa/if_lnc.c 
rev 1.14.2.1 i386/isa/if_lnc.h 
rev 1.19 dev/lnc/if_lncvar.h 
However in this PR there are some changes for Am79C975  
Can you please have a look at it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19365 
State-Changed-From-To: open->closed 
State-Changed-By: gj 
State-Changed-When: Sun Mar 4 04:18:10 PST 2001 
State-Changed-Why:  
Patch applied, thanks ! Sorry for taking so long to do this. 

NOTE: I don't consider it necessary to apply this to HEAD or RELENG_4 since 
they both have the pcn driver which already supports these chips, is 
better maintained and generally superior to lnc, IMHO. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=19365 
>Unformatted:
