Date: Thu, 7 Aug 2003 00:00:30 -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_rl.c if_rlreg.h Message-ID: <200308070700.h7770UCi046852@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
wpaul 2003/08/07 00:00:30 PDT FreeBSD src repository Modified files: sys/pci if_rl.c if_rlreg.h Log: Add preliminary support for the RealTek 8169 gigE chip. Changes: - Fix a bug in rl_dma_map_desc(): set the 'end of ring' bit in the right descriptor (DESC_CNT - 1, not DESC_CNT). The 8139C+ is limited to 64 descriptors and automatically wraps at 64 descriptors even if the EOR bit isn't set, but the 8169 NIC can have up to 1024 descriptors per ring, so we must set the wrap point in the right place. - RealTek moved the RL_TIMERINT register from offset 0x54 to 0x58 in the 8169 -- account for this. - Added rl_gmii_readreg() and rl_gmii_writereg() routines. - Fix rl_probe() to deal with the case where the base type is not RL_8139. The next step is to add jumbo buffer support. Tested with the Xterasys XN-152 NIC (hard to beat $29 for a gigE NIC). Revision Changes Path 1.107 +96 -4 src/sys/pci/if_rl.c 1.30 +5 -0 src/sys/pci/if_rlreg.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308070700.h7770UCi046852>