Date: Wed, 10 Sep 2003 23:56:46 -0700 (PDT) From: Bill Paul <wpaul@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci if_rlreg.h src/sys/dev/re if_re.c Message-ID: <200309110656.h8B6ukIq070009@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
wpaul 2003/09/10 23:56:46 PDT FreeBSD src repository Modified files: sys/pci if_rlreg.h sys/dev/re if_re.c Log: - For the 8169 chips, read the station address by forcing an EEPROM autoload and then copying the contends of the station address registers. For some reason, reading the EEPROM on the 8169S doesn't work right. This gets around the problem, and allows us to read the station address correctly on the 8169S. - Insert a delay after initiating packet transmition in re_diag() to allow lots of time for the frame to echo back to the host, and wait for both the 'RX complete' and 'timeout expired' bits in the ISR register to be set. - Deal more intelligently with the fact that the frame length field in the RX descriptor is a different width on the 8139C+ than it is on the 8169/8169S/8110S - For the 8169, you have to set bit 17 in the TX config register to enter digital loopback mode, but for the 8139C+, you have to set both bits 17 and 18. Take this into account so that re_diag() works properly for both types of chips. Revision Changes Path 1.5 +59 -27 src/sys/dev/re/if_re.c 1.38 +6 -4 src/sys/pci/if_rlreg.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309110656.h8B6ukIq070009>