struct e1000_adapter *adapter = netdev->priv;
struct e1000_adapter *adapter = netdev_priv(netdev);
e1000_remove(struct pci_dev *pdev){	struct net_device *netdev = pci_get_drvdata(pdev);	struct e1000_adapter *adapter = netdev->priv;	uint32_t manc, swsm;	flush_scheduled_work();	if(adapter->hw.mac_type >= e1000_82540 &&	   adapter->hw.media_type == e1000_media_type_copper) {		manc = E1000_READ_REG(&adapter->hw, MANC);		if(manc & E1000_MANC_SMBUS_EN) {			manc |= E1000_MANC_ARP_EN;			E1000_WRITE_REG(&adapter->hw, MANC, manc);		}	}	switch(adapter->hw.mac_type) {	case e1000_82573:		swsm = E1000_READ_REG(&adapter->hw, SWSM);		E1000_WRITE_REG(&adapter->hw, SWSM,				swsm & ~E1000_SWSM_DRV_LOAD);		break;	default:		break;	}	unregister_netdev(netdev);	if(!e1000_check_phy_reset_block(&adapter->hw))		e1000_phy_hw_reset(&adapter->hw);	iounmap(adapter->hw.hw_addr);	pci_release_regions(pdev);	free_netdev(netdev);	pci_disable_device(pdev);}