public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] include/linux/mii.h: update for supporting GE
Date: Thu, 2 Dec 2010 22:41:06 -0500	[thread overview]
Message-ID: <201012022241.07545.vapier@gentoo.org> (raw)
In-Reply-To: <1291346753-10103-1-git-send-email-macpaul@andestech.com>

On Thursday, December 02, 2010 22:25:53 Macpaul Lin wrote:
> This file has been synced (copy) from Linux source code.

pulling in updates is fine, but i dont think it makes sense to pull in 
types/prototypes that arent used in u-boot

> +/* This structure is used in all SIOCxMIIxxx ioctl calls */
> +struct mii_ioctl_data {
> +	__u16		phy_id;
> +	__u16		reg_num;
> +	__u16		val_in;
> +	__u16		val_out;
> +};
> +
> +#ifdef __KERNEL__
> +
> +#include <linux/if.h>
> +
> +struct ethtool_cmd;
> +
> +struct mii_if_info {
> +	int phy_id;
> +	int advertising;
> +	int phy_id_mask;
> +	int reg_num_mask;
> +
> +	unsigned int full_duplex : 1;	/* is full duplex? */
> +	unsigned int force_media : 1;	/* is autoneg. disabled? */
> +	unsigned int supports_gmii : 1; /* are GMII registers supported? */
> +
> +	struct net_device *dev;
> +	int (*mdio_read) (struct net_device *dev, int phy_id, int location);
> +	void (*mdio_write) (struct net_device *dev, int phy_id, int location, int
> val); +};
> +
> +extern int mii_link_ok (struct mii_if_info *mii);
> +extern int mii_nway_restart (struct mii_if_info *mii);
> +extern int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd
> *ecmd); +extern int mii_ethtool_sset(struct mii_if_info *mii, struct
> ethtool_cmd *ecmd); +extern int mii_check_gmii_support(struct mii_if_info
> *mii);
> +extern void mii_check_link (struct mii_if_info *mii);
> +extern unsigned int mii_check_media (struct mii_if_info *mii,
> +				     unsigned int ok_to_print,
> +				     unsigned int init_media);
> +extern int generic_mii_ioctl(struct mii_if_info *mii_if,
> +                            struct mii_ioctl_data *mii_data, int cmd,
> +                            unsigned int *duplex_changed);
> +
> +
> +static inline struct mii_ioctl_data *if_mii(struct ifreq *rq)
> +{
> +	return (struct mii_ioctl_data *) &rq->ifr_ifru;
> +}

i dont think any of this makes sense in u-boot
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101202/dc06ca4f/attachment.pgp 

  reply	other threads:[~2010-12-03  3:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03  3:25 [U-Boot] [PATCH] include/linux/mii.h: update for supporting GE Macpaul Lin
2010-12-03  3:41 ` Mike Frysinger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-12-03  5:24 macpaul at andestech.com
2010-12-03  8:50 ` Mike Frysinger

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=201012022241.07545.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox