#ifdef CONFIG_PCI_MSI if(adapter->hw.mac_type > e1000_82547_rev_2) { adapter->have_msi = TRUE; if((err = pci_enable_msi(adapter->pdev))) { DPRINTK(PROBE, ERR, "Unable to allocate MSI interrupt Error: %d\n", err); adapter->have_msi = FALSE; } } #endif 
e1000_up(struct e1000_adapter *adapter){	struct net_device *netdev = adapter->netdev;	int err;	/* hardware has been reset, we need to reload some things */	/* Reset the PHY if it was previously powered down */	if(adapter->hw.media_type == e1000_media_type_copper) {		uint16_t mii_reg;		e1000_read_phy_reg(&adapter->hw, PHY_CTRL, &mii_reg);		if(mii_reg & MII_CR_POWER_DOWN)			e1000_phy_reset(&adapter->hw);	}	e1000_set_multi(netdev);	e1000_restore_vlan(adapter);	e1000_configure_tx(adapter);	e1000_setup_rctl(adapter);	e1000_configure_rx(adapter);	e1000_alloc_rx_buffers(adapter);	if((err = request_irq(adapter->pdev->irq, &e1000_intr,		              SA_SHIRQ | SA_SAMPLE_RANDOM,		              netdev->name, netdev)))		return err;	mod_timer(&adapter->watchdog_timer, jiffies);	e1000_irq_enable(adapter);#ifdef CONFIG_E1000_NAPI	netif_poll_enable(netdev);#endif	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/fa4f7ef3aaa6cee6b04ebe90266ee893e0b2ce07/e1000_main.c/buggy/drivers/net/e1000/e1000_main.c