From owner-freebsd-current Wed Nov 1 13:57:56 2000 Delivered-To: freebsd-current@freebsd.org Received: from gatekeeper.radio-do.de (gatekeeper.Radio-do.de [193.101.164.1]) by hub.freebsd.org (Postfix) with ESMTP id E36BF37B4CF for ; Wed, 1 Nov 2000 13:57:50 -0800 (PST) Received: from trinity.radio-do.de (trinity.Radio-do.de [193.101.164.3]) by gatekeeper.radio-do.de (Postfix) with ESMTP id A608817E0D for ; Wed, 1 Nov 2000 22:57:44 +0100 (CET) Received: (from fn@localhost) by trinity.radio-do.de (8.11.0/8.9.3) id eA1LviW00777 for current@FreeBSD.org; Wed, 1 Nov 2000 22:57:44 +0100 (CET) (envelope-from fn@gatekeeper.radio-do.de) Date: Wed, 1 Nov 2000 22:57:44 +0100 From: Frank Nobis To: current@FreeBSD.org Subject: if_rl.c broken ? Realtek 8139 not longer recognised. Message-ID: <20001101225744.A752@radio-do.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have a realtek ethernet card. The normal dmesg is this: rl0: port 0xb400-0xb4ff mem 0xd9000000-0xd90000ff irq 10 at device 11.0 on pci0 rl0: Ethernet address: 00:e0:7d:7d:cd:35 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto With the change to 8bit wide eeprom reads instead of the 6bit wide reads, the message is now: rl0: port 0xb400-0xb4ff mem 0xd9000000-0xd90000ff irq 10 at device 11.0 on pci0 rl0: Ethernet address: 00:e0:7d:7d:cd:35 rl0: unknown device ID: 4a7 I changed if_rl.c to confirm that it really is the 6/8 bit change: === trinity(17)/usr/src/sys/pci # cvs diff if_rl.c Index: if_rl.c =================================================================== RCS file: /export5/full.src/src/sys/pci/if_rl.c,v retrieving revision 1.49 diff -c -r1.49 if_rl.c *** if_rl.c 2000/10/30 07:54:38 1.49 --- if_rl.c 2000/11/01 19:39:02 *************** *** 896,903 **** --- 896,905 ---- rl_reset(sc); sc->rl_eecmd_read = RL_EECMD_READ_6BIT; rl_read_eeprom(sc, (caddr_t)&rl_did, 0, 1, 0); + #ifdef notyet if (rl_did != 8129) sc->rl_eecmd_read = RL_EECMD_READ_8BIT; + #endif This is not meant as a patch, just a trick for me to confirm it was the 6/8 bit change. The change occured from 1.48 to 1.49 of if_rl.c Regards, Frank -- ~/.signature not found: wellknown error 42 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message