Date: Fri, 16 Nov 2007 15:41:50 +0100 From: Remko Lodder <remko@elvandar.org> To: Quan Qiu <jackqqpro@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: Onboard RTL8111C not attached to by re(4) Message-ID: <20071116144149.GF1600@elvandar.org> In-Reply-To: <890a507f0711160615i371a60e1o1b8695176e92dcda@mail.gmail.com> References: <890a507f0711160615i371a60e1o1b8695176e92dcda@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 16, 2007 at 10:15:43PM +0800, Quan Qiu wrote: > Hi there, > > I've just bought a Gigabyte GA-945GCM-S2L motherboard. It incorporates > an onboard gigabit ethernet chip, RTL8111C. But after booting > 7.0-BETA2, there is no network device created for it. It seems that > re(4) should be the closest driver to match. > > First, 'pciconf' shows that the Vendor ID and Device ID are matched. > > # pciconf -vl | grep -C 3 -i realtek > none2@pci0:2:0:0: class=0x020000 card=0xe0001458 chip=0x816810ec > rev=0x02 hdr=0x00 > vendor = 'Realtek Semiconductor' > device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' > class = network > subclass = ethernet > > > However, the table in /sys/dev/re/if_re.c contained only 2 devices > that match the 0x8168 Device ID, and they are constrained by another > factor, HWREV. So I think no matching HWREV in the table is the cause > of the driver not attaching to the device. > > { RT_VENDORID, RT_DEVICEID_8168, RL_HWREV_8168_SPIN1, > "RealTek 8168/8111B PCIe Gigabit Ethernet" }, > { RT_VENDORID, RT_DEVICEID_8168, RL_HWREV_8168_SPIN2, > "RealTek 8168/8111B PCIe Gigabit Ethernet" }, > > > Finally, in /sys/pci/if_rlreg.h, I found the HWREV's. But they are > quite different with the 'rev' (rev=0x02) from 'pciconf'. > > #define RL_HWREV_8168_SPIN1 0x30000000 > #define RL_HWREV_8168_SPIN2 0x38000000 > > > Could someone help on how I can find out the HWREV value of my NIC? > > By the way, is support for RTL8111C already on the schedule? > > I'll see what I can do later tonight (when I am home from work). Cheers remko -- /"\ Best regards, | remko@FreeBSD.org \ / Remko Lodder | remko@EFnet X http://www.evilcoder.org/ | / \ ASCII Ribbon Campaign | Against HTML Mail and News
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071116144149.GF1600>