From owner-freebsd-hackers@FreeBSD.ORG Mon May 16 23:27:33 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB43516A4CE for ; Mon, 16 May 2005 23:27:33 +0000 (GMT) Received: from mx.nts.ch (mail.nts.ch [212.103.67.20]) by mx1.FreeBSD.org (Postfix) with SMTP id CC2A243DD1 for ; Mon, 16 May 2005 23:27:32 +0000 (GMT) (envelope-from stefan@aeschbacher.ch) Received: (qmail 27372 invoked by uid 7650); 16 May 2005 23:30:34 -0000 Received: from stefan@aeschbacher.ch by bernoulli by uid 64011 with qmail-scanner-1.21 Clear:RC:1(212.103.64.3):. Processed in 0.019679 secs); 16 May 2005 23:30:34 -0000 Received: from localhost ([212.103.64.3]) by mx.nts.ch ([192.168.123.34]) with ESMTP via TCP; 16 May 2005 23:30:34 -0000 Received: from ftp.nts.ch (ftp.nts.ch [212.103.67.6]) by horde.nts.ch (IMP) with HTTP for ; Tue, 17 May 2005 01:27:50 +0200 Message-ID: <1116286070.42892c769f613@horde.nts.ch> Date: Tue, 17 May 2005 01:27:50 +0200 From: stefan@aeschbacher.ch To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.3-cvs X-Originating-IP: 212.103.67.6 Subject: Broadcom 5789 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 23:27:34 -0000 Hi I just setup a FreeBSD 5.4 stable on a machine using a Gigabyte GA-8I915P Duo Pro motherboard. Contrary to the documentation, the board I have does not use the Broadcom 5751 chip but the 5789 which is not recognized by the bge(4) driver. The 5788 is already in the list of supported chips by the bge driver. From this I guessed that the driver could alsow work with the 5789. I tried the following patch and at least from my minimal testing (only 100Mbit) it looks as if it works. Could someone with knowledge of the Broadcom ethernet chips and the bge driver check if adding support for the 5789 is really that easy and if yes, initiate the needed steps to get the device id's in the kernel? regards Stefan Aeschbacher The patches I used to get it working: --- if_bge.c Sun May 15 01:03:07 2005 +++ if_bge.c.new Sun May 15 01:04:01 2005 @@ -169,6 +169,8 @@ "Broadcom BCM5782 Gigabit Ethernet" }, { BCOM_VENDORID, BCOM_DEVICEID_BCM5788, "Broadcom BCM5788 Gigabit Ethernet" }, + { BCOM_VENDORID, BCOM_DEVICEID_BCM5789, + "Broadcom BCM5789 Gigabit Ethernet" }, { BCOM_VENDORID, BCOM_DEVICEID_BCM5901, "Broadcom BCM5901 Fast Ethernet" }, { BCOM_VENDORID, BCOM_DEVICEID_BCM5901A2, --- if_bgereg.h Sun May 15 01:03:19 2005 +++ if_bgereg.h.new Sun May 15 01:04:01 2005 @@ -1874,6 +1874,7 @@ #define BCOM_DEVICEID_BCM5751M 0x167D #define BCOM_DEVICEID_BCM5782 0x1696 #define BCOM_DEVICEID_BCM5788 0x169C +#define BCOM_DEVICEID_BCM5789 0x169D #define BCOM_DEVICEID_BCM5901 0x170D #define BCOM_DEVICEID_BCM5901A2 0x170E