From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Thu, 2 Dec 2010 22:41:06 -0500 Subject: [U-Boot] [PATCH] include/linux/mii.h: update for supporting GE In-Reply-To: <1291346753-10103-1-git-send-email-macpaul@andestech.com> References: <1291346753-10103-1-git-send-email-macpaul@andestech.com> Message-ID: <201012022241.07545.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > + > +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