[U-Boot] [PATCH] include/linux/mii.h: update for supporting GE
Mike Frysinger
vapier at gentoo.org
Fri Dec 3 04:41:06 CET 2010
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
More information about the U-Boot
mailing list