From mboxrd@z Thu Jan 1 00:00:00 1970 From: Larry Finger Date: Sun, 22 Aug 2010 15:29:55 -0500 Subject: [PATCH 2/2] b43: N-PHY: add sub calls of band width setting In-Reply-To: References: <1282506589-8220-1-git-send-email-zajec5@gmail.com> <1282506589-8220-2-git-send-email-zajec5@gmail.com> Message-ID: <4C7188C3.90702@lwfinger.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: =?ISO-8859-2?Q?G=E1bor_Stefanik?= Cc: =?ISO-8859-2?Q?Rafa=B3_Mi=B3ecki?= , linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org On 08/22/2010 03:04 PM, G?bor Stefanik wrote: > > Sorry, I'm on a Windows-only machine right now. > However, the general rule of translation is: > mhf(a, b, c, d) -> b43_hf_write(dev, (b43_hf_read(dev) & (~b << > (a*16))) | (c << (a*16))) > (Yes, the last parameter is ignored; it seems to be just Broadcrap - > crap written by Broadcom.) > IIRC, the d part is a flag used to save the state and avoid writes if the code is setting a state already available. As these writes are not very expensive, this part can indeed be called Broadcrap. Larry