From nobody@FreeBSD.ORG Mon Oct  4 11:09:29 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 62F18156E7; Mon,  4 Oct 1999 11:09:29 -0700 (PDT)
Message-Id: <19991004180929.62F18156E7@hub.freebsd.org>
Date: Mon,  4 Oct 1999 11:09:29 -0700 (PDT)
From: boxiao63@hotmail.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: lnc driver is not working
X-Send-Pr-Version: www-1.0

>Number:         14122
>Category:       kern
>Synopsis:       lnc driver is not working
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct  4 11:10:00 PDT 1999
>Closed-Date:    Mon Oct 4 15:22:01 PDT 1999
>Last-Modified:  Tue Oct  5 04:52:14 PDT 1999
>Originator:     bo xiao
>Release:        3.2 and 3.3
>Organization:
>Environment:
>Description:
3.2 and 3.3 claimed AMD fastether chips(79C752) were supported but 
it never worked (for me). Does anyone have it running?

GENERIC does NOT see lnc0. I built my own kernel. It found the card
as lnc1 but failed at port mapping. 

I went in the code pci/if_lnc_p.c and found it failed because 
pci_porten(pcicfgregs *cfg) returned 0 in pci_map_port(). cmdreg
was all 0. I tried to enable the port like many other drivers,
then re-read the cmdreg. It passed this point. So there is an 
order problem.

Then the kernel complains int 255 was too high although I config
it as 0x0a. intline was 0xff. I forced it to 0x0a. 

Now pci_wiredunit(cfg, dvp->pd_name) in pci_drvattach() gives a
huge negitive number. And my unit number is set to 1 after all.

Boots up fine. Finds the device and I can config the card.
But it is getting timeouts all the time and keeps resetting.
Never works. 

So after spending a day on this, it seems a better option
is to get another card. 

But I thought it was worth to report what I saw so some one 
else may get it fixed. 

Thanks.

Bo

>How-To-Repeat:
boot up the kernel.
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed  
State-Changed-By: cpiazza 
State-Changed-When: Mon Oct 4 15:22:01 PDT 1999 
State-Changed-Why:  
Superseded by PR 14123 (this one contains the improper model number) 
>Unformatted:
