From owner-freebsd-current@FreeBSD.ORG Fri Nov 16 14:40:32 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FB2E16A417 for ; Fri, 16 Nov 2007 14:40:32 +0000 (UTC) (envelope-from jackqqpro@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id 8F1A413C44B for ; Fri, 16 Nov 2007 14:40:31 +0000 (UTC) (envelope-from jackqqpro@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so832591nfb for ; Fri, 16 Nov 2007 06:40:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=pca6XmvJ08MuQaSUXKpAggHlvCumyyS1Kve8+wdjlJE=; b=eiWcRVzjuMQ53oxBNrRcHTWmjR5tTubGUJ7OFfqwaO4mBX/9XOmFqKxulYOtvhGE6GLr6LlCyN7fAmncNbGMkRPq+cF23i7Ay7rqKRgw4qmxrGWmGZLm8q9BH1Oik7RO5HE1+Hh7ZvNeBIRGEO/AMjMrxungs3zWOMchUQ8jz1A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ME34tWL1wBGKdiYngj7/FVDSBf4DmPkANG4WsuFwlLbiTz1Kx2faVs5HviBhp0TVbkSHUpn7rLYemDnxul2SQNyHCgyULT6+a99h66lxZwzy1x5062R4hD46DdMskO8BzSaJu2TmOCM+a6CiEBo5ok5zXWFNFcweV/cymz3WRM0= Received: by 10.78.170.6 with SMTP id s6mr2006215hue.1195222548294; Fri, 16 Nov 2007 06:15:48 -0800 (PST) Received: by 10.78.185.18 with HTTP; Fri, 16 Nov 2007 06:15:43 -0800 (PST) Message-ID: <890a507f0711160615i371a60e1o1b8695176e92dcda@mail.gmail.com> Date: Fri, 16 Nov 2007 22:15:43 +0800 From: "Quan Qiu" To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Onboard RTL8111C not attached to by re(4) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2007 14:40:32 -0000 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? -- Quan Qiu