Subject: Re: DP83843 media interface and the tlp driver
To: Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 12/06/1999 23:22:03
On Tue, 07 Dec 1999 11:03:56 +0900 
 Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp> wrote:

 > tlp driver clear sleep mode.but,do not clear for 21143.

Ah, thanks for noticing this!

 > Index: sys/dev/ic/tulip.c
 > ===================================================================
 > RCS file: /usr/ftp/cvs/syssrc/sys/dev/ic/tulip.c,v
 > retrieving revision 1.33
 > diff -u -r1.33 tulip.c
 > --- sys/dev/ic/tulip.c	1999/11/19 18:22:42	1.33
 > +++ sys/dev/ic/tulip.c	1999/12/02 15:47:34
 > @@ -1939,6 +1939,10 @@
 >  {
 >  	u_int32_t crc;
 >  
 > +	crc = tlp_crc32(romdata, TULIP_ROM_CRC32_CHECKSUM1);
 > +	crc = (crc & 0xffff) ^ 0xffff;
 > +	if (crc == TULIP_ROM_GETW(romdata, TULIP_ROM_CRC32_CHECKSUM1))
 > +		return (1);
 >  	crc = tlp_crc32(romdata, TULIP_ROM_CRC32_CHECKSUM);
 >  	crc = (crc & 0xffff) ^ 0xffff;
 >  	if (crc == TULIP_ROM_GETW(romdata, TULIP_ROM_CRC32_CHECKSUM))

I suspect this isn't actually necessary.  I've just committed a change
to if_tlp_pci.c which should deal with the 512-byte SROM on the 21143
Pass 4.1 correctly in PCI cards, too (it already worked in the CardBus
card).

Please verify by updating your if_tlp_pci.c file.

        -- Jason R. Thorpe <thorpej@nas.nasa.gov>