struct e1000_adapter *adapter = netdev->priv; 
struct e1000_adapter *adapter = netdev_priv(netdev); 
e1000_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol){	struct e1000_adapter *adapter = netdev->priv;	struct e1000_hw *hw = &adapter->hw;	switch(adapter->hw.device_id) {	case E1000_DEV_ID_82542:	case E1000_DEV_ID_82543GC_FIBER:	case E1000_DEV_ID_82543GC_COPPER:	case E1000_DEV_ID_82544EI_FIBER:	case E1000_DEV_ID_82546EB_QUAD_COPPER:	case E1000_DEV_ID_82545EM_FIBER:	case E1000_DEV_ID_82545EM_COPPER:		return wol->wolopts ? -EOPNOTSUPP : 0;	case E1000_DEV_ID_82546EB_FIBER:	case E1000_DEV_ID_82546GB_FIBER:		/* Wake events only supported on port A for dual fiber */		if(E1000_READ_REG(hw, STATUS) & E1000_STATUS_FUNC_1)			return wol->wolopts ? -EOPNOTSUPP : 0;		/* Fall Through */	default:		if(wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE))			return -EOPNOTSUPP;		adapter->wol = 0;		if(wol->wolopts & WAKE_UCAST)			adapter->wol |= E1000_WUFC_EX;		if(wol->wolopts & WAKE_MCAST)			adapter->wol |= E1000_WUFC_MC;		if(wol->wolopts & WAKE_BCAST)			adapter->wol |= E1000_WUFC_BC;		if(wol->wolopts & WAKE_MAGIC)			adapter->wol |= E1000_WUFC_MAG;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/60490fe030f3969a8706d94c7cf8469be6330678/e1000_ethtool.c/clean/drivers/net/e1000/e1000_ethtool.c