From owner-freebsd-net Sun Mar 25 23:19: 0 2001 Delivered-To: freebsd-net@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id 0C25B37B719; Sun, 25 Mar 2001 23:18:57 -0800 (PST) Subject: Re: D-Link problem In-Reply-To: from Ed Wynn at "Mar 25, 2001 10:50:49 pm" To: edwynn42@hotmail.com (Ed Wynn) Date: Sun, 25 Mar 2001 23:18:57 -0800 (PST) Cc: freebsd-net@freebsd.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20010326071857.0C25B37B719@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Alas, that patch is exactly what I have already done. I was hoping you'd > found somewhere that I missed an update, but I already had those three spots > covered. Fine. I'm including another patch with a slight change. I don't know if this will make a difference or not since I've never known this step to be necessary. If this doesn't work, I suggest putting the card in a different PCI slot. No, really. Humor me. Also, in a previous post, you reported the dmesg output from when the card was probed, but you "cleverly" decided to replace the MAC address with "xx:xx:xx:xx:xx:xx". By doing this, you prevented me from seeing whether or not the driver actually read a valid ethernet address from the EEPROM. Yes, this information is important, yes you made a mistake by omitting it, no the world will not end if you reveal it to us. Go back and paste the information again, and this time don't mangle it. There is a slight possibility that you have tried to attach the RealTek driver to what might be a VIA Rhine card. This would imply some lameness on D-Link's part, but stranger things have happened. -Bill *** if_rl.c.orig Sun Mar 25 19:08:34 2001 --- if_rl.c Sun Mar 25 23:14:00 2001 *************** *** 149,154 **** --- 149,156 ---- "Delta Electronics 8139 10/100BaseTX" }, { ADDTRON_VENDORID, ADDTRON_DEVICEID_8139, "Addtron Technolgy 8139 10/100BaseTX" }, + { DLINK_VENDORID, DLINK_DEVICEID_530TXPLUS, + "D-Link DFE-530TX+ 10/100BaseTX" }, { 0, 0, NULL } }; *************** *** 878,883 **** --- 880,888 ---- /* Reset the adapter. */ rl_reset(sc); + /* Bring chip out of low-power mode? */ + CSR_WRITE_1(sc, RL_CFG1, 0x00); + /* * Get station address from the EEPROM. */ *************** *** 898,904 **** rl_read_eeprom(sc, (caddr_t)&rl_did, RL_EE_PCI_DID, 1, 0); if (rl_did == RT_DEVICEID_8139 || rl_did == ACCTON_DEVICEID_5030 || ! rl_did == DELTA_DEVICEID_8139 || rl_did == ADDTRON_DEVICEID_8139) sc->rl_type = RL_8139; else if (rl_did == RT_DEVICEID_8129) sc->rl_type = RL_8129; --- 903,910 ---- rl_read_eeprom(sc, (caddr_t)&rl_did, RL_EE_PCI_DID, 1, 0); if (rl_did == RT_DEVICEID_8139 || rl_did == ACCTON_DEVICEID_5030 || ! rl_did == DELTA_DEVICEID_8139 || rl_did == ADDTRON_DEVICEID_8139 || ! rl_did == DLINK_DEVICEID_530TXPLUS) sc->rl_type = RL_8139; else if (rl_did == RT_DEVICEID_8129) sc->rl_type = RL_8129; *** if_rlreg.h.orig Sun Mar 25 19:08:34 2001 --- if_rlreg.h Sun Mar 25 19:10:12 2001 *************** *** 433,438 **** --- 433,448 ---- #define ADDTRON_DEVICEID_8139 0x1360 /* + * D-Link vendor ID. + */ + #define DLINK_VENDORID 0x1186 + + /* + * D-Link DFE-530TX+ device ID + */ + #define DLINK_DEVICEID_530TXPLUS 0x1300 + + /* * PCI low memory base and low I/O base register, and * other PCI registers. */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message