资源简介
新买的华擎H310CV主板网卡型号为15BC,安装ubuntu14.04 kernel 4.4.0的驱动较老,无法驱动,
这是Intel网卡支持页面下载的驱动源码包,版本3.4.2.1;
之前尝试了几次安装都不成功,折腾来折腾去,不知道改了哪里,今天新装了之后make&make; install又成功了,赶紧打包存起来,
代码片段和文件信息
// SPDX-License-Identifier: GPL-2.0
/* Copyright(c) 1999 - 2018 Intel Corporation. */
/* 80003ES2LAN Gigabit Ethernet Controller (Copper)
* 80003ES2LAN Gigabit Ethernet Controller (Serdes)
*/
#include “e1000.h“
/* A table for the GG82563 cable length where the range is defined
* with a lower bound at “index“ and the upper bound at
* “index + 5“.
*/
static const u16 e1000_gg82563_cable_length_table[] = {
0 60 115 150 150 60 115 150 180 180 0xFF
};
#define GG82563_CABLE_LENGTH_TABLE_SIZE \
(sizeof(e1000_gg82563_cable_length_table) / \
sizeof(e1000_gg82563_cable_length_table[0]))
static s32 e1000_setup_copper_link_80003es2lan(struct e1000_hw *hw);
static s32 e1000_acquire_swfw_sync_80003es2lan(struct e1000_hw *hw u16 mask);
static void e1000_release_swfw_sync_80003es2lan(struct e1000_hw *hw u16 mask);
static void e1000_initialize_hw_bits_80003es2lan(struct e1000_hw *hw);
static void e1000_clear_hw_cntrs_80003es2lan(struct e1000_hw *hw);
static s32 e1000_cfg_kmrn_1000_80003es2lan(struct e1000_hw *hw);
static s32 e1000_cfg_kmrn_10_100_80003es2lan(struct e1000_hw *hw u16 duplex);
static s32 e1000_read_kmrn_reg_80003es2lan(struct e1000_hw *hw u32 offset
u16 *data);
static s32 e1000_write_kmrn_reg_80003es2lan(struct e1000_hw *hw u32 offset
u16 data);
static void e1000_power_down_phy_copper_80003es2lan(struct e1000_hw *hw);
/**
* e1000_init_phy_params_80003es2lan - Init ESB2 PHY func ptrs.
* @hw: pointer to the HW structure
**/
static s32 e1000_init_phy_params_80003es2lan(struct e1000_hw *hw)
{
struct e1000_phy_info *phy = &hw->phy;
s32 ret_val;
if (hw->phy.media_type != e1000_media_type_copper) {
phy->type = e1000_phy_none;
return 0;
} else {
phy->ops.power_up = e1000_power_up_phy_copper;
phy->ops.power_down = e1000_power_down_phy_copper_80003es2lan;
}
phy->addr = 1;
phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT;
phy->reset_delay_us = 100;
phy->type = e1000_phy_gg82563;
/* This can only be done after all function pointers are setup. */
ret_val = e1000e_get_phy_id(hw);
/* Verify phy id */
if (phy->id != GG82563_E_PHY_ID)
return -E1000_ERR_PHY;
return ret_val;
}
/**
* e1000_init_nvm_params_80003es2lan - Init ESB2 NVM func ptrs.
* @hw: pointer to the HW structure
**/
static s32 e1000_init_nvm_params_80003es2lan(struct e1000_hw *hw)
{
struct e1000_nvm_info *nvm = &hw->nvm;
u32 eecd = er32(EECD);
u16 size;
nvm->opcode_bits = 8;
nvm->delay_usec = 1;
switch (nvm->override) {
case e1000_nvm_override_spi_large:
nvm->page_size = 32;
nvm->address_bits = 16;
break;
case e1000_nvm_override_spi_small:
nvm->page_size = 8;
nvm->address_bits = 8;
break;
default:
nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8;
nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8;
break;
}
nvm->type = e1000_nvm_eeprom_spi;
size = (u16)((eecd & E1000_EECD_SIZE_EX_MASK) >>
E1000_EECD_SIZE_EX_SHIFT);
/* Added to a constant “size“ becomes the le
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 17816 2018-08-26 16:33 e1000e-3.4.2.1\COPYING
文件 11318 2018-08-26 16:33 e1000e-3.4.2.1\e1000e.7
文件 9549 2018-08-26 16:33 e1000e-3.4.2.1\e1000e.spec
文件 4727 2018-08-26 16:33 e1000e-3.4.2.1\pci.updates
文件 30205 2018-08-26 16:33 e1000e-3.4.2.1\README
文件 37596 2018-08-26 16:33 e1000e-3.4.2.1\src\80003es2lan.c
文件 2558 2018-08-26 16:33 e1000e-3.4.2.1\src\80003es2lan.h
文件 55498 2018-08-26 16:33 e1000e-3.4.2.1\src\82571.c
文件 1088 2018-08-26 16:33 e1000e-3.4.2.1\src\82571.h
文件 33598 2018-08-26 16:33 e1000e-3.4.2.1\src\defines.h
文件 19740 2018-08-26 16:33 e1000e-3.4.2.1\src\e1000.h
文件 73276 2018-08-26 16:33 e1000e-3.4.2.1\src\ethtool.c
文件 17121 2018-08-26 16:33 e1000e-3.4.2.1\src\hw.h
文件 166075 2018-08-26 16:33 e1000e-3.4.2.1\src\ich8lan.c
文件 12641 2018-08-26 16:33 e1000e-3.4.2.1\src\ich8lan.h
文件 52921 2018-08-26 16:33 e1000e-3.4.2.1\src\kcompat.c
文件 187007 2018-08-26 16:33 e1000e-3.4.2.1\src\kcompat.h
文件 28560 2018-08-26 16:33 e1000e-3.4.2.1\src\kcompat_ethtool.c
文件 52817 2018-08-26 16:33 e1000e-3.4.2.1\src\mac.c
文件 2344 2018-08-26 16:33 e1000e-3.4.2.1\src\mac.h
文件 12008 2018-08-26 16:33 e1000e-3.4.2.1\src\Makefile
文件 8646 2018-08-26 16:33 e1000e-3.4.2.1\src\manage.c
文件 1434 2018-08-26 16:33 e1000e-3.4.2.1\src\manage.h
文件 19 2018-08-26 16:33 e1000e-3.4.2.1\src\Module.supported
文件 250018 2018-08-26 16:33 e1000e-3.4.2.1\src\netdev.c
文件 14920 2018-08-26 16:33 e1000e-3.4.2.1\src\nvm.c
文件 830 2018-08-26 16:33 e1000e-3.4.2.1\src\nvm.h
文件 15732 2018-08-26 16:33 e1000e-3.4.2.1\src\param.c
文件 88279 2018-08-26 16:33 e1000e-3.4.2.1\src\phy.c
文件 9678 2018-08-26 16:33 e1000e-3.4.2.1\src\phy.h
............此处省略8个文件信息
评论
共有 条评论