All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Bcm43xx-dev@lists.berlios.de, linux-wireless@vger.kernel.org
Subject: Re: [RFC 1 of 6] ssb: Add new SPROM structure while keeping the old
Date: Tue, 6 Nov 2007 20:22:41 +0100	[thread overview]
Message-ID: <200711062022.41248.mb@bu3sch.de> (raw)
In-Reply-To: <4730bd03.rGmiNlJ18XBoW/Yb%Larry.Finger@lwfinger.net>

On Tuesday 06 November 2007 20:14:11 Larry Finger wrote:
> This is patch 1 of 6.
> 
> The SPROM's for various devices utilizing the Sonics Silicon Backplane come
> with various revisions. The Revision 2 SPROM inherited the data layout of 1, and
> Revision 3 inherited the layout of 2. The first instance of Revision 4 has
> now been found in a BCM4328 wireless LAN card. This device does not inherit any
> layout from previous versions. Although it was possible to create a data
> structure that kept all the old layouts, we decided to start fresh, keep only
> those SPROM variables that are used by the drivers that utilize ssb, and to
> do the conversion in such a manner that neither compilation or execution will
> be affected if a bisection lands in the middle of these changes, while keeping
> the patches as small as possible.
> 
> In this patch, the sprom structures are changed while maintaining the old ones.
> 
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> ---
> 
> Index: wireless-2.6/include/linux/ssb/ssb.h
> ===================================================================
> --- wireless-2.6.orig/include/linux/ssb/ssb.h
> +++ wireless-2.6/include/linux/ssb/ssb.h
> @@ -78,8 +78,32 @@ struct ssb_sprom_r3 {
>  	u32 ofdmgpo;		/* G-PHY OFDM Power Offset */
>  };
>  
> -struct ssb_sprom_r4 {
> -	/* TODO */
> +struct ssb_sprom_data {
> +	u8 il0mac[6];		/* MAC address for 802.11b/g */
> +	u8 et0mac[6];		/* MAC address for Ethernet */
> +	u8 et1mac[6];		/* MAC address for 802.11a */
> +	u8 et0phyaddr:5;	/* MII address for enet0 */
> +	u8 et1phyaddr:5;	/* MII address for enet1 */

While we are at it, please also get rid of these ugly foo:X bitfields.

-- 
Greetings Michael.

  reply	other threads:[~2007-11-06 19:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-06 19:14 [RFC 1 of 6] ssb: Add new SPROM structure while keeping the old Larry Finger
2007-11-06 19:22 ` Michael Buesch [this message]
2007-11-06 19:29   ` Larry Finger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200711062022.41248.mb@bu3sch.de \
    --to=mb@bu3sch.de \
    --cc=Bcm43xx-dev@lists.berlios.de \
    --cc=Larry.Finger@lwfinger.net \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.