Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2003 19:50:11 -0800 (PST)
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/44092: dc(4) assigns incorrect link address with Davicom DM9102A chipsets
Message-ID:  <200302010350.h113oBoG081038@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/44092; it has been noted by GNATS.

From: Giorgos Keramidas <keramida@freebsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/44092: dc(4) assigns incorrect link address with Davicom DM9102A chipsets
Date: Sat, 1 Feb 2003 05:43:49 +0200

 [-- Adding to audit trail --]
 
 : Message-Id: <20030127083701.GK49658@goddamnbastard.org>
 : Date: Mon, 27 Jan 2003 02:37:01 -0600
 : From: ryan beasley <ryanb@goddamnbastard.org>
 : To: freebsd-gnats-submit@freebsd.org
 : Cc: Warner Losh <imp@village.org>
 : Subject: pending/47537: Re: dc(4) assigns incorrect link address with Davicom DM9102A chipsets
 :
 : As it turns out, everything but the first chunk of the if_dc.c patch is
 : bogus.  It is necessary to perform the SROM read as dc_romwidth is
 : referenced later on in dc_eeprom_putbyte.  The attached patch is just a
 : trimmed version of the first one submitted, and it seems to do the job.
 :
 : I'm cc'ng Warner since he committed the dynamically sized srom code.
 :
 : Index: src/sys/pci/if_dc.c
 : --- sys/pci/if_dc.c.orig	Mon Jan 27 02:15:04 2003
 : +++ sys/pci/if_dc.c	Mon Jan 27 02:12:33 2003
 : @@ -1979,6 +1983,8 @@
 :  		command &= 0xFFFF00FF;
 :  		command |= 0x00008000;
 :  		pci_write_config(dev, DC_PCI_CFLT, command, 4);
 : +		dc_eeprom_width(sc);
 : +		dc_read_srom(sc, sc->dc_romwidth);
 :  		break;
 :  	case DC_DEVICEID_AL981:
 :  		sc->dc_type = DC_TYPE_AL981;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302010350.h113oBoG081038>