struct e1000_adapter *adapter = netdev->priv; 
struct e1000_adapter *adapter = netdev_priv(netdev); 
e1000_get_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:		wol->supported = 0;		wol->wolopts   = 0;		return;	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) {			wol->supported = 0;			wol->wolopts   = 0;			return;		}		/* Fall Through */	default:		wol->supported = WAKE_UCAST | WAKE_MCAST |				 WAKE_BCAST | WAKE_MAGIC;		wol->wolopts = 0;		if(adapter->wol & E1000_WUFC_EX)			wol->wolopts |= WAKE_UCAST;		if(adapter->wol & E1000_WUFC_MC)			wol->wolopts |= WAKE_MCAST;		if(adapter->wol & E1000_WUFC_BC)			wol->wolopts |= WAKE_BCAST;		if(adapter->wol & E1000_WUFC_MAG)			wol->wolopts |= WAKE_MAGIC;		return;	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/60490fe030f3969a8706d94c7cf8469be6330678/e1000_ethtool.c/clean/drivers/net/e1000/e1000_ethtool.c