From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 25 13:38:58 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 967FC106566B; Sun, 25 Sep 2011 13:38:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 458B48FC0C; Sun, 25 Sep 2011 13:38:57 +0000 (UTC) Received: by ywp17 with SMTP id 17so4712511ywp.13 for ; Sun, 25 Sep 2011 06:38:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=N5vBYpkLdrqTfvsflZaaa3mh+peHtU2cgQOe/gWMV2I=; b=juzbnQjeUd3iF5z5bI+HvfLG1QX/L/+ogiGNuxyIDjS3fsqrYzlsoMf3q6CLhDdotr E9/NUEzIn7rcPLp+RccnuV1017D3/OgcTBd8SXStgyxGtHKNj83iFVdkNGppdrM9n+4x vlTfqGPIWbZyo6WXhQpBXxcdmUUGcbR7AGyjk= MIME-Version: 1.0 Received: by 10.236.79.72 with SMTP id h48mr34320369yhe.4.1316957937587; Sun, 25 Sep 2011 06:38:57 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Sun, 25 Sep 2011 06:38:57 -0700 (PDT) In-Reply-To: <54FFB452-534A-46C6-950B-880EB36F61C1@gmail.com> References: <54FFB452-534A-46C6-950B-880EB36F61C1@gmail.com> Date: Sun, 25 Sep 2011 21:38:57 +0800 X-Google-Sender-Auth: HexAjqGwz86cNfMbzgvYj8xXNEo Message-ID: From: Adrian Chadd To: Justin Hibbits Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, FreeBSD PowerPC ML Subject: Re: CFT: macio attachment for if_wi 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: Sun, 25 Sep 2011 13:38:58 -0000 On 25 September 2011 20:54, Justin Hibbits wrote: > Attached is a patch adding the macio attachment for the if_wi driver, to > support the airport card in PowerPC macs. =A0To do this I needed to modif= y the > wi_read_bap and wi_write_bap functions to use the bus space stream functi= ons > instead of regular functions, like NetBSD and OpenBSD do. =A0I currently = get a > 'no carrier' status from ifconfig, so I can't fully test connections, onl= y > the attachment. =A0Testing wanted and needed to make sure I didn't break > anything. I think it's worth digging into exactly why this works. Can we find out whether the card firmware does magically speak host endian? Since you haven't seen it associate to anything yet, I can't help but wonder if there are lots of other random endianness issues creeping throughout the driver. Adrian