All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v9] Marvell MV88E61XX Switch Driver support
Date: Mon, 04 May 2009 15:41:56 -0700	[thread overview]
Message-ID: <49FF6F34.6030409@gmail.com> (raw)
In-Reply-To: <1241448927-25881-1-git-send-email-prafulla@marvell.com>

Hi Prafulla,

Prafulla Wadaskar wrote:
<snip>
> diff --git a/include/netdev.h b/include/netdev.h
> index b73aa8e..932d986 100644
> --- a/include/netdev.h
> +++ b/include/netdev.h
> @@ -28,6 +28,34 @@
>  #ifndef _NETDEV_H_
>  #define _NETDEV_H_
>  
> +/* constants for switch configuration */
> +enum switch_cfg_vlan {
> +	SWITCH_VLANCFG_DEFAULT,
> +	SWITCH_VLANCFG_ROUTER
> +};
> +
> +enum switch_cfg_rgmiid {
> +	SWITCH_RGMII_DELAY_DIS,
> +	SWITCH_RGMII_DELAY_EN
> +};
> +
> +enum switch_cfg_prtstt {
> +	SWITCH_PORTSTT_DISABLED,
> +	SWITCH_PORTSTT_BLOCKING,
> +	SWITCH_PORTSTT_LEARNING,
> +	SWITCH_PORTSTT_FORWARDING
> +};
> +
> +/* switch configuration structure */
> +struct switch_config {
> +	char *name;
> +	enum switch_cfg_vlan vlancfg;
> +	enum switch_cfg_rgmiid rgmii_delay;
> +	enum switch_cfg_prtstt portstate;
> +	u32 ports_enabled;
> +	u8 cpuport;
> +};
> +
>   
Now you're in a common file, so namespaces are important.  Keep in mind 
that while yours is the first switch here, it probably won't be the last 
and nobody else is bound to using your definitions.  Please qualify all 
of these names so it's obvious what hardware they refer to.

Please add this stuff to the bottom of this file, and add an appropriate 
comment block in the same theme as I've done with the others.

regards,
Ben

  parent reply	other threads:[~2009-05-04 22:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-04 14:55 [U-Boot] [PATCH v9] Marvell MV88E61XX Switch Driver support Prafulla Wadaskar
2009-05-04 22:12 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-05  3:09   ` Prafulla Wadaskar
2009-05-04 22:41 ` Ben Warren [this message]
2009-05-05  3:10   ` Prafulla Wadaskar

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=49FF6F34.6030409@gmail.com \
    --to=biggerbadderben@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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.