int gfar_gsettings(struct net_device *dev, struct ethtool_cmd *cmd) 
static int gfar_gsettings(struct net_device *dev, struct ethtool_cmd *cmd) 
int gfar_gsettings(struct net_device *dev, struct ethtool_cmd *cmd){	struct gfar_private *priv = netdev_priv(dev);	uint gigabit_support = 		priv->einfo->device_flags & FSL_GIANFAR_DEV_HAS_GIGABIT ?			SUPPORTED_1000baseT_Full : 0;	uint gigabit_advert = 		priv->einfo->device_flags & FSL_GIANFAR_DEV_HAS_GIGABIT ?			ADVERTISED_1000baseT_Full: 0;	cmd->supported = (SUPPORTED_10baseT_Half			  | SUPPORTED_100baseT_Half			  | SUPPORTED_100baseT_Full			  | gigabit_support | SUPPORTED_Autoneg);	/* For now, we always advertise everything */	cmd->advertising = (ADVERTISED_10baseT_Half			    | ADVERTISED_100baseT_Half			    | ADVERTISED_100baseT_Full			    | gigabit_advert | ADVERTISED_Autoneg);	cmd->speed = priv->mii_info->speed;	cmd->duplex = priv->mii_info->duplex;	cmd->port = PORT_MII;	cmd->phy_address = priv->mii_info->mii_id;	cmd->transceiver = XCVR_EXTERNAL;	cmd->autoneg = AUTONEG_ENABLE;	cmd->maxtxpkt = priv->txcount;	cmd->maxrxpkt = priv->rxcount;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/0bbaf069f053957e8d733784e18a2992afd1dd3c/gianfar_ethtool.c/buggy/drivers/net/gianfar_ethtool.c