From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 19 01:35:15 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5CEB1065670 for ; Fri, 19 Aug 2011 01:35:15 +0000 (UTC) (envelope-from richo@psych0tik.net) Received: from bedford.accountservergroup.com (bedford.accountservergroup.com [50.22.11.19]) by mx1.freebsd.org (Postfix) with ESMTP id 4882F8FC13 for ; Fri, 19 Aug 2011 01:35:14 +0000 (UTC) Received: from boxand.lnk.telstra.net ([203.45.130.125] helo=richh-desktop.boxdice.com.au) by bedford.accountservergroup.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1QuDzM-002oLd-FU for freebsd-wireless@freebsd.org; Thu, 18 Aug 2011 20:35:13 -0500 Date: Fri, 19 Aug 2011 11:35:02 +1000 From: richo To: freebsd-wireless@freebsd.org Message-ID: <20110819013501.GA29282@richh-desktop.boxdice.com.au> References: <4E4C0DC9.8070808@shadowsun.net> <4E4D50AF.6070908@shadowsun.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline In-Reply-To: <4E4D50AF.6070908@shadowsun.net> X-PGP-Key: http://natalya.psych0tik.net/~richo/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bedford.accountservergroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - psych0tik.net X-Source: X-Source-Args: X-Source-Dir: Subject: Re: BCM4313 support X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2011 01:35:15 -0000 --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 18/08/11 13:49 -0400, Eric McCorkle wrote: >On 8/17/11 7:12 PM, Adrian Chadd wrote: >>On 18 August 2011 02:51, Eric McCorkle wrote: >> >>> >>>I have been working on porting the BroadCom linux driver. I don't have = much >>>time to work on it, though, and it's a rather daunting task. >> >>Cool! Is there anything we can do to help? >> > >Well, my objective is a working BCM 4322 (the card on macbooks)=20 >driver. Someone who better understands linux drivers could take a=20 >look at the wrapper code for the linux driver, and might be able to=20 >port it. > >More info: The broadcom linux driver consists of a closed-source=20 >object file, compiled with standard linux kernel calling conventions,=20 >and a bunch of linux wrapper code. It appears that the Broadcom=20 >engineers did a relatively good job; the object file makes calls to=20 >the kernel via an osl (presumably OS layer) interface, which seems=20 >pretty generic. One of the headers appears to define the linux=20 >instance of this layer, but it would seem others exist (probably for=20 >windows, for instance). The rest of the code is simply linux driver=20 >stuff that sets up interfaces, etc. > >The closed source .o file itself isn't stripped at all, and between=20 >the known compiler flags and the headers that give types for=20 >everything, there's enough information for complete=20 >reverse-compilation. I've been working on this myself, but I have=20 >very limited time to devote to it. Is what you have so far available anywhere? I've been putting off learning more about drivers for some time, and have a macbook 3,1 that I want to install FreeBSD on. I can probably kill two birds with one stone. I also have some older hardware with a broadcom nic of some kind (uses the b43 driver on linux) that I can fiddle with. Cheers richo --=20 richo || Today's excuse:=20 We've picked COBOL as the language of choice. --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOTb3FAAoJEIKiWz6J5yQVGrIIAMIdQ9E+sYo0/TEY3eDDA+fo 45wa9WwWg+KOgEg3xqQkMUES2xzNdqJ2U2CMetJLBqgaIC58NvEUork6/j967aQO 5wCrc73fB6KcwQERAGTA/YidkqOoIALq4zKCWaGZj535kCbQbcZMHxfx0ovjh4GM rcidmQRm35ydsKyGVZs0x2vsGm57njhNFq0TeT2jY0vZopuWOlHJQOzzStm1kavA 4qUaZkKg/K4j//R7i6AqMe8U0wn8ExRuvHOocijYLuw1CPh+zs/jxw9kqeaCSdMW nykoGuKb3qyyl4YVsd77fGJvBmifQjYckKtW/PspQYvdMQj1v0pW0fsmpYKHF2Y= =W+qA -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA--