Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
3b8f5945
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3b8f5945
编写于
1月 14, 2011
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/jkirsher/net-2.6
上级
886d7f44
af667a29
变更
13
展开全部
隐藏空白更改
内联
并排
Showing
13 changed file
with
147 addition
and
136 deletion
+147
-136
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+9
-1
drivers/net/e1000e/82571.c
drivers/net/e1000e/82571.c
+2
-2
drivers/net/e1000e/Makefile
drivers/net/e1000e/Makefile
+1
-1
drivers/net/e1000e/defines.h
drivers/net/e1000e/defines.h
+1
-1
drivers/net/e1000e/e1000.h
drivers/net/e1000e/e1000.h
+1
-1
drivers/net/e1000e/es2lan.c
drivers/net/e1000e/es2lan.c
+1
-1
drivers/net/e1000e/ethtool.c
drivers/net/e1000e/ethtool.c
+1
-1
drivers/net/e1000e/hw.h
drivers/net/e1000e/hw.h
+2
-2
drivers/net/e1000e/ich8lan.c
drivers/net/e1000e/ich8lan.c
+1
-1
drivers/net/e1000e/lib.c
drivers/net/e1000e/lib.c
+10
-10
drivers/net/e1000e/netdev.c
drivers/net/e1000e/netdev.c
+113
-110
drivers/net/e1000e/param.c
drivers/net/e1000e/param.c
+3
-3
drivers/net/e1000e/phy.c
drivers/net/e1000e/phy.c
+2
-2
未找到文件。
drivers/net/e1000/e1000_main.c
浏览文件 @
3b8f5945
...
...
@@ -3478,9 +3478,17 @@ static irqreturn_t e1000_intr(int irq, void *data)
struct
e1000_hw
*
hw
=
&
adapter
->
hw
;
u32
icr
=
er32
(
ICR
);
if
(
unlikely
((
!
icr
)
||
test_bit
(
__E1000_DOWN
,
&
adapter
->
flags
)
))
if
(
unlikely
((
!
icr
)))
return
IRQ_NONE
;
/* Not our interrupt */
/*
* we might have caused the interrupt, but the above
* read cleared it, and just in case the driver is
* down there is nothing to do so return handled
*/
if
(
unlikely
(
test_bit
(
__E1000_DOWN
,
&
adapter
->
flags
)))
return
IRQ_HANDLED
;
if
(
unlikely
(
icr
&
(
E1000_ICR_RXSEQ
|
E1000_ICR_LSC
)))
{
hw
->
get_link_status
=
1
;
/* guard against interrupt when we're going down */
...
...
drivers/net/e1000e/82571.c
浏览文件 @
3b8f5945
/*******************************************************************************
Intel PRO/1000 Linux driver
Copyright(c) 1999 - 201
0
Intel Corporation.
Copyright(c) 1999 - 201
1
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,
...
...
@@ -1310,7 +1310,7 @@ static void e1000_initialize_hw_bits_82571(struct e1000_hw *hw)
* apply workaround for hardware errata documented in errata
* docs Fixes issue where some error prone or unreliable PCIe
* completions are occurring, particularly with ASPM enabled.
* Without fix, issue can cause
t
x timeouts.
* Without fix, issue can cause
T
x timeouts.
*/
reg
=
er32
(
GCR2
);
reg
|=
1
;
...
...
drivers/net/e1000e/Makefile
浏览文件 @
3b8f5945
################################################################################
#
# Intel PRO/1000 Linux driver
# Copyright(c) 1999 - 20
08
Intel Corporation.
# Copyright(c) 1999 - 20
11
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,
...
...
drivers/net/e1000e/defines.h
浏览文件 @
3b8f5945
/*******************************************************************************
Intel PRO/1000 Linux driver
Copyright(c) 1999 - 201
0
Intel Corporation.
Copyright(c) 1999 - 201
1
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,
...
...
drivers/net/e1000e/e1000.h
浏览文件 @
3b8f5945
/*******************************************************************************
Intel PRO/1000 Linux driver
Copyright(c) 1999 - 201
0
Intel Corporation.
Copyright(c) 1999 - 201
1
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,
...
...
drivers/net/e1000e/es2lan.c
浏览文件 @
3b8f5945
/*******************************************************************************
Intel PRO/1000 Linux driver
Copyright(c) 1999 - 201
0
Intel Corporation.
Copyright(c) 1999 - 201
1
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,
...
...
drivers/net/e1000e/ethtool.c
浏览文件 @
3b8f5945
/*******************************************************************************
Intel PRO/1000 Linux driver
Copyright(c) 1999 - 201
0
Intel Corporation.
Copyright(c) 1999 - 201
1
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,
...
...
drivers/net/e1000e/hw.h
浏览文件 @
3b8f5945
/*******************************************************************************
Intel PRO/1000 Linux driver
Copyright(c) 1999 - 201
0
Intel Corporation.
Copyright(c) 1999 - 201
1
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,
...
...
@@ -102,7 +102,7 @@ enum e1e_registers {
E1000_RDTR
=
0x02820
,
/* Rx Delay Timer - RW */
E1000_RXDCTL_BASE
=
0x02828
,
/* Rx Descriptor Control - RW */
#define E1000_RXDCTL(_n) (E1000_RXDCTL_BASE + (_n << 8))
E1000_RADV
=
0x0282C
,
/* R
X
Interrupt Absolute Delay Timer - RW */
E1000_RADV
=
0x0282C
,
/* R
x
Interrupt Absolute Delay Timer - RW */
/* Convenience macros
*
...
...
drivers/net/e1000e/ich8lan.c
浏览文件 @
3b8f5945
/*******************************************************************************
Intel PRO/1000 Linux driver
Copyright(c) 1999 - 201
0
Intel Corporation.
Copyright(c) 1999 - 201
1
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,
...
...
drivers/net/e1000e/lib.c
浏览文件 @
3b8f5945
/*******************************************************************************
Intel PRO/1000 Linux driver
Copyright(c) 1999 - 201
0
Intel Corporation.
Copyright(c) 1999 - 201
1
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,
...
...
@@ -533,7 +533,7 @@ s32 e1000e_check_for_fiber_link(struct e1000_hw *hw)
mac
->
autoneg_failed
=
1
;
return
0
;
}
e_dbg
(
"NOT R
X
ing /C/, disable AutoNeg and force link.
\n
"
);
e_dbg
(
"NOT R
x'
ing /C/, disable AutoNeg and force link.
\n
"
);
/* Disable auto-negotiation in the TXCW register */
ew32
(
TXCW
,
(
mac
->
txcw
&
~
E1000_TXCW_ANE
));
...
...
@@ -556,7 +556,7 @@ s32 e1000e_check_for_fiber_link(struct e1000_hw *hw)
* and disable forced link in the Device Control register
* in an attempt to auto-negotiate with our link partner.
*/
e_dbg
(
"R
X
ing /C/, enable AutoNeg and stop forcing link.
\n
"
);
e_dbg
(
"R
x'
ing /C/, enable AutoNeg and stop forcing link.
\n
"
);
ew32
(
TXCW
,
mac
->
txcw
);
ew32
(
CTRL
,
(
ctrl
&
~
E1000_CTRL_SLU
));
...
...
@@ -598,7 +598,7 @@ s32 e1000e_check_for_serdes_link(struct e1000_hw *hw)
mac
->
autoneg_failed
=
1
;
return
0
;
}
e_dbg
(
"NOT R
X
ing /C/, disable AutoNeg and force link.
\n
"
);
e_dbg
(
"NOT R
x'
ing /C/, disable AutoNeg and force link.
\n
"
);
/* Disable auto-negotiation in the TXCW register */
ew32
(
TXCW
,
(
mac
->
txcw
&
~
E1000_TXCW_ANE
));
...
...
@@ -621,7 +621,7 @@ s32 e1000e_check_for_serdes_link(struct e1000_hw *hw)
* and disable forced link in the Device Control register
* in an attempt to auto-negotiate with our link partner.
*/
e_dbg
(
"R
X
ing /C/, enable AutoNeg and stop forcing link.
\n
"
);
e_dbg
(
"R
x'
ing /C/, enable AutoNeg and stop forcing link.
\n
"
);
ew32
(
TXCW
,
mac
->
txcw
);
ew32
(
CTRL
,
(
ctrl
&
~
E1000_CTRL_SLU
));
...
...
@@ -800,9 +800,9 @@ static s32 e1000_commit_fc_settings_generic(struct e1000_hw *hw)
* The possible values of the "fc" parameter are:
* 0: Flow control is completely disabled
* 1: Rx flow control is enabled (we can receive pause frames,
*
but not send pause frames).
*
but not send pause frames).
* 2: Tx flow control is enabled (we can send pause frames but we
*
do not support receiving pause frames).
*
do not support receiving pause frames).
* 3: Both Rx and Tx flow control (symmetric) are enabled.
*/
switch
(
hw
->
fc
.
current_mode
)
{
...
...
@@ -1031,9 +1031,9 @@ s32 e1000e_force_mac_fc(struct e1000_hw *hw)
* The possible values of the "fc" parameter are:
* 0: Flow control is completely disabled
* 1: Rx flow control is enabled (we can receive pause
*
frames but not send pause frames).
*
frames but not send pause frames).
* 2: Tx flow control is enabled (we can send pause frames
*
frames but we do not receive pause frames).
*
frames but we do not receive pause frames).
* 3: Both Rx and Tx flow control (symmetric) is enabled.
* other: No other values should be possible at this point.
*/
...
...
@@ -1189,7 +1189,7 @@ s32 e1000e_config_fc_after_link_up(struct e1000_hw *hw)
}
else
{
hw
->
fc
.
current_mode
=
e1000_fc_rx_pause
;
e_dbg
(
"Flow Control = "
"RX
PAUSE frames only.
\r\n
"
);
"Rx
PAUSE frames only.
\r\n
"
);
}
}
/*
...
...
drivers/net/e1000e/netdev.c
浏览文件 @
3b8f5945
此差异已折叠。
点击以展开。
drivers/net/e1000e/param.c
浏览文件 @
3b8f5945
/*******************************************************************************
Intel PRO/1000 Linux driver
Copyright(c) 1999 - 201
0
Intel Corporation.
Copyright(c) 1999 - 201
1
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,
...
...
@@ -62,10 +62,9 @@ MODULE_PARM_DESC(copybreak,
module_param_array_named(X, X, int, &num_##X, 0); \
MODULE_PARM_DESC(X, desc);
/*
* Transmit Interrupt Delay in units of 1.024 microseconds
* Tx interrupt delay needs to typically be set to something non
zero
* Tx interrupt delay needs to typically be set to something non
-
zero
*
* Valid Range: 0-65535
*/
...
...
@@ -112,6 +111,7 @@ E1000_PARAM(InterruptThrottleRate, "Interrupt Throttling Rate");
#define DEFAULT_ITR 3
#define MAX_ITR 100000
#define MIN_ITR 100
/* IntMode (Interrupt Mode)
*
* Valid Range: 0 - 2
...
...
drivers/net/e1000e/phy.c
浏览文件 @
3b8f5945
/*******************************************************************************
Intel PRO/1000 Linux driver
Copyright(c) 1999 - 201
0
Intel Corporation.
Copyright(c) 1999 - 201
1
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,
...
...
@@ -640,7 +640,7 @@ s32 e1000_copper_link_setup_82577(struct e1000_hw *hw)
s32
ret_val
;
u16
phy_data
;
/* Enable CRS on T
X
. This must be set for half-duplex operation. */
/* Enable CRS on T
x
. This must be set for half-duplex operation. */
ret_val
=
e1e_rphy
(
hw
,
I82577_CFG_REG
,
&
phy_data
);
if
(
ret_val
)
goto
out
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录