struct e1000_adapter *adapter = netdev->priv; 
struct e1000_adapter *adapter = netdev_priv(netdev); 
e1000_set_settings(struct net_device *netdev, struct ethtool_cmd *ecmd){	struct e1000_adapter *adapter = netdev->priv;	struct e1000_hw *hw = &adapter->hw;	if(ecmd->autoneg == AUTONEG_ENABLE) {		hw->autoneg = 1;		hw->autoneg_advertised = 0x002F;		ecmd->advertising = 0x002F;	} else		if(e1000_set_spd_dplx(adapter, ecmd->speed + ecmd->duplex))			return -EINVAL;	/* reset the link */	if(netif_running(adapter->netdev)) {		e1000_down(adapter);		e1000_reset(adapter);		e1000_up(adapter);	} else		e1000_reset(adapter);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/60490fe030f3969a8706d94c7cf8469be6330678/e1000_ethtool.c/clean/drivers/net/e1000/e1000_ethtool.c