From owner-freebsd-usb@FreeBSD.ORG Sun Feb 1 19:12:11 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 044A810656D2; Sun, 1 Feb 2009 19:12:11 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.swip.net [212.247.155.225]) by mx1.freebsd.org (Postfix) with ESMTP id 645BB8FC1E; Sun, 1 Feb 2009 19:12:09 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=HnWwmabpZgrjc_24w5IA:9 a=AwdpbGDWJQTKGqeq8NbcrtLDWfkA:4 a=50e4U0PicR4A:10 Received: from [85.19.218.115] (account mc467741@c2i.net HELO [10.37.1.92]) by mailfe16.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 446152277; Sun, 01 Feb 2009 20:12:08 +0100 From: Hans Petter Selasky To: Andrew Thompson Date: Sun, 1 Feb 2009 20:14:29 +0100 User-Agent: KMail/1.9.7 References: <20090131231957.GB31825@citylink.fud.org.nz> <200902011922.16810.hselasky@c2i.net> <20090201190820.GB32503@citylink.fud.org.nz> In-Reply-To: <20090201190820.GB32503@citylink.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902012014.32190.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB2 patches X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2009 19:12:11 -0000 Hi Andrew, On Sunday 01 February 2009, Andrew Thompson wrote: > On Sun, Feb 01, 2009 at 07:22:15PM +0100, Hans Petter Selasky wrote: > > The code should be, > That's what I'm doing already ... I pre-copy all channel & bssid stuff into a message structure ... > xxx_set_channel() > { > ieee80211_channel c = wlan->curchan; > > hw_reg = array1[c]; > write USB register; > hw_reg = array2[c]; > write USB register; > } And don't forget "volatile" ... --HPS