资源简介
Intel I-219V 网卡驱动 源代码 Ubuntu 16.04编译通过
代码片段和文件信息
/* Intel PRO/1000 Linux driver
* Copyright(c) 1999 - 2016 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* The full GNU General Public License is included in this distribution in
* the file called “COPYING“.
*
* Contact Information:
* Linux NICS
* e1000-devel Mailing List
* Intel Corporation 5200 N.E. Elam Young Parkway Hillsboro OR 97124-6497
*/
/* 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 f
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-11-10 00:39 e1000e-3.3.5.3\
文件 18670 2016-11-10 00:39 e1000e-3.3.5.3\COPYING
文件 11088 2016-11-10 00:39 e1000e-3.3.5.3\e1000e.7
文件 9549 2016-11-10 00:39 e1000e-3.3.5.3\e1000e.spec
文件 4573 2016-11-10 00:39 e1000e-3.3.5.3\pci.updates
文件 30165 2016-11-10 00:39 e1000e-3.3.5.3\README
目录 0 2017-03-31 19:21 e1000e-3.3.5.3\src\
文件 38356 2016-11-10 00:39 e1000e-3.3.5.3\src\80003es2lan.c
文件 3315 2016-11-10 00:39 e1000e-3.3.5.3\src\80003es2lan.h
文件 56257 2016-11-10 00:39 e1000e-3.3.5.3\src\82571.c
文件 1845 2016-11-10 00:39 e1000e-3.3.5.3\src\82571.h
文件 33948 2016-11-10 00:39 e1000e-3.3.5.3\src\defines.h
文件 20144 2016-11-10 00:39 e1000e-3.3.5.3\src\e1000.h
文件 73955 2016-11-10 00:39 e1000e-3.3.5.3\src\ethtool.c
文件 17680 2016-11-10 00:39 e1000e-3.3.5.3\src\hw.h
文件 166328 2016-11-10 00:39 e1000e-3.3.5.3\src\ich8lan.c
文件 13360 2016-11-10 00:39 e1000e-3.3.5.3\src\ich8lan.h
文件 44657 2016-11-10 00:39 e1000e-3.3.5.3\src\kcompat.c
文件 155072 2016-11-10 00:39 e1000e-3.3.5.3\src\kcompat.h
文件 29320 2016-11-10 00:39 e1000e-3.3.5.3\src\kcompat_ethtool.c
文件 53575 2016-11-10 00:39 e1000e-3.3.5.3\src\mac.c
文件 3101 2016-11-10 00:39 e1000e-3.3.5.3\src\mac.h
文件 11863 2016-11-10 00:39 e1000e-3.3.5.3\src\Makefile
文件 9405 2016-11-10 00:39 e1000e-3.3.5.3\src\manage.c
文件 2191 2016-11-10 00:39 e1000e-3.3.5.3\src\manage.h
文件 19 2016-11-10 00:39 e1000e-3.3.5.3\src\Module.supported
文件 249345 2016-11-10 00:39 e1000e-3.3.5.3\src\netdev.c
文件 15690 2017-03-31 19:21 e1000e-3.3.5.3\src\nvm.c
文件 1587 2016-11-10 00:39 e1000e-3.3.5.3\src\nvm.h
文件 16492 2016-11-10 00:39 e1000e-3.3.5.3\src\param.c
文件 89039 2016-11-10 00:39 e1000e-3.3.5.3\src\phy.c
............此处省略4个文件信息
- 上一篇:unity 数据结构树的深度遍历
- 下一篇:DHT11单片机程序及串口发送
评论
共有 条评论