e1000_init_eeprom_params(hw); 
if(e1000_init_eeprom_params(hw)) { E1000_ERR("EEPROM initialization failed\n"); return -EIO; } 
e1000_sw_init(struct e1000_adapter *adapter){	struct e1000_hw *hw = &adapter->hw;	struct net_device *netdev = adapter->netdev;	struct pci_dev *pdev = adapter->pdev;	/* PCI config space info */	hw->vendor_id = pdev->vendor;	hw->device_id = pdev->device;	hw->subsystem_vendor_id = pdev->subsystem_vendor;	hw->subsystem_id = pdev->subsystem_device;	pci_read_config_byte(pdev, PCI_REVISION_ID, &hw->revision_id);	pci_read_config_word(pdev, PCI_COMMAND, &hw->pci_cmd_word);	adapter->rx_buffer_len = E1000_RXBUFFER_2048;	hw->max_frame_size = netdev->mtu +			     ENET_HEADER_SIZE + ETHERNET_FCS_SIZE;	hw->min_frame_size = MINIMUM_ETHERNET_FRAME_SIZE;	/* identify the MAC */	if(e1000_set_mac_type(hw)) {		DPRINTK(PROBE, ERR, "Unknown MAC Type\n");		return -EIO;	}	/* initialize eeprom parameters */	e1000_init_eeprom_params(hw);	switch(hw->mac_type) {	default:		break;	case e1000_82541:	case e1000_82547:	case e1000_82541_rev_2:	case e1000_82547_rev_2:		hw->phy_init_script = 1;		break;	}	e1000_set_media_type(hw);	hw->wait_autoneg_complete = FALSE;	hw->tbi_compatibility_en = TRUE;	hw->adaptive_ifs = TRUE;	/* Copper options */	if(hw->media_type == e1000_media_type_copper) {		hw->mdix = AUTO_ALL_MODES;		hw->disable_polarity_correction = FALSE;		hw->master_slave = E1000_MASTER_SLAVE;	}	atomic_set(&adapter->irq_sem, 1);	spin_lock_init(&adapter->stats_lock);	spin_lock_init(&adapter->tx_lock);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/2d7edb923a823660b081bd4c660300ee19adca8d/e1000_main.c/clean/drivers/net/e1000/e1000_main.c