struct e1000_adapter *adapter = netdev->priv;
struct e1000_adapter *adapter = netdev_priv(netdev);
e1000_set_mac(struct net_device *netdev, void *p){	struct e1000_adapter *adapter = netdev->priv;	struct sockaddr *addr = p;	if(!is_valid_ether_addr(addr->sa_data))		return -EADDRNOTAVAIL;	/* 82542 2.0 needs to be in reset to write receive address registers */	if(adapter->hw.mac_type == e1000_82542_rev2_0)		e1000_enter_82542_rst(adapter);	memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len);	memcpy(adapter->hw.mac_addr, addr->sa_data, netdev->addr_len);	e1000_rar_set(&adapter->hw, adapter->hw.mac_addr, 0);	if(adapter->hw.mac_type == e1000_82542_rev2_0)		e1000_leave_82542_rst(adapter);	return 0;}