From owner-freebsd-ppc@FreeBSD.ORG Mon Sep 26 02:20:05 2011 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B7961065673; Mon, 26 Sep 2011 02:20:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id C3CC98FC0A; Mon, 26 Sep 2011 02:20:04 +0000 (UTC) Received: by gxk26 with SMTP id 26so4004526gxk.13 for ; Sun, 25 Sep 2011 19:20:04 -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=lL+CRDRj+wRvUJwjT7mn3OtcKGeh3FzuN2+bPqw/6eI=; b=XFDxjfy4FKw1MGAYmcqfRoC0vRm8vm4WKlXbZamY68N30KpJ53n+b8QsDizkiqXp+e 8fA5GbxazBlWa/heZXQoq59lqKD3dIGnwfsGbXiKZ+rqez5X9yib086kKtSmjJA9zhSJ 9B1LCXXz/p/Q4UzzzX2CZkVuoS/4QPxAZr7eA= MIME-Version: 1.0 Received: by 10.236.129.165 with SMTP id h25mr35841431yhi.38.1317003603959; Sun, 25 Sep 2011 19:20:03 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Sun, 25 Sep 2011 19:20:03 -0700 (PDT) In-Reply-To: <20110926015215.GB1702@michelle.cdnetworks.com> References: <54FFB452-534A-46C6-950B-880EB36F61C1@gmail.com> <20110926015215.GB1702@michelle.cdnetworks.com> Date: Mon, 26 Sep 2011 10:20:03 +0800 X-Google-Sender-Auth: HF3z2s-DfKvhwCFy6OzEiE7UEyg Message-ID: From: Adrian Chadd To: pyunyh@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, Justin Hibbits , FreeBSD PowerPC ML Subject: Re: CFT: macio attachment for if_wi X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 02:20:05 -0000 On 26 September 2011 09:52, YongHyeon PYUN wrote: > It seems the WI_DATA0/WI_DATA1 registers provide access to data > with FIFO style. =A0This indicates driver have to read raw data and > subsequent access would have to use htoleXX() macro to compare it > with the raw data instead of converting it from little-endian to > host byte order. > So your patch looks like the first step that goes to right > direction. =A0As Adrian said, there could be multiple places that > used wrong data from endianess view. Cool; I'll try to remember to get this committed to -HEAD once it's unlocked for bug fixes. Adrian