Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
be2b28ed
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
be2b28ed
编写于
10月 04, 2005
作者:
J
Jeff Garzik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
e1000: fix warnings
上级
a7990ba6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
6 deletion
+9
-6
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+9
-6
未找到文件。
drivers/net/e1000/e1000_main.c
浏览文件 @
be2b28ed
...
@@ -777,12 +777,12 @@ e1000_remove(struct pci_dev *pdev)
...
@@ -777,12 +777,12 @@ e1000_remove(struct pci_dev *pdev)
struct
e1000_adapter
*
adapter
=
netdev_priv
(
netdev
);
struct
e1000_adapter
*
adapter
=
netdev_priv
(
netdev
);
uint32_t
ctrl_ext
;
uint32_t
ctrl_ext
;
uint32_t
manc
,
swsm
;
uint32_t
manc
,
swsm
;
flush_scheduled_work
();
#ifdef CONFIG_E1000_NAPI
#ifdef CONFIG_E1000_NAPI
int
i
;
int
i
;
#endif
#endif
flush_scheduled_work
();
if
(
adapter
->
hw
.
mac_type
>=
e1000_82540
&&
if
(
adapter
->
hw
.
mac_type
>=
e1000_82540
&&
adapter
->
hw
.
media_type
==
e1000_media_type_copper
)
{
adapter
->
hw
.
media_type
==
e1000_media_type_copper
)
{
manc
=
E1000_READ_REG
(
&
adapter
->
hw
,
MANC
);
manc
=
E1000_READ_REG
(
&
adapter
->
hw
,
MANC
);
...
@@ -3100,7 +3100,9 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
...
@@ -3100,7 +3100,9 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
struct
e1000_adapter
*
adapter
=
netdev_priv
(
netdev
);
struct
e1000_adapter
*
adapter
=
netdev_priv
(
netdev
);
struct
e1000_hw
*
hw
=
&
adapter
->
hw
;
struct
e1000_hw
*
hw
=
&
adapter
->
hw
;
uint32_t
icr
=
E1000_READ_REG
(
hw
,
ICR
);
uint32_t
icr
=
E1000_READ_REG
(
hw
,
ICR
);
#ifdef CONFIG_E1000_MQ
int
i
;
int
i
;
#endif
if
(
unlikely
(
!
icr
))
if
(
unlikely
(
!
icr
))
return
IRQ_NONE
;
/* Not our interrupt */
return
IRQ_NONE
;
/* Not our interrupt */
...
@@ -3128,13 +3130,14 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
...
@@ -3128,13 +3130,14 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
}
else
{
}
else
{
printk
(
"call_data.count == %u
\n
"
,
atomic_read
(
&
adapter
->
rx_sched_call_data
.
count
));
printk
(
"call_data.count == %u
\n
"
,
atomic_read
(
&
adapter
->
rx_sched_call_data
.
count
));
}
}
#else
#else
/* if !CONFIG_E1000_MQ */
if
(
likely
(
netif_rx_schedule_prep
(
&
adapter
->
polling_netdev
[
0
])))
if
(
likely
(
netif_rx_schedule_prep
(
&
adapter
->
polling_netdev
[
0
])))
__netif_rx_schedule
(
&
adapter
->
polling_netdev
[
0
]);
__netif_rx_schedule
(
&
adapter
->
polling_netdev
[
0
]);
else
else
e1000_irq_enable
(
adapter
);
e1000_irq_enable
(
adapter
);
#endif
#endif
/* CONFIG_E1000_MQ */
#else
#else
/* if !CONFIG_E1000_NAPI */
/* Writing IMC and IMS is needed for 82547.
/* Writing IMC and IMS is needed for 82547.
Due to Hub Link bus being occupied, an interrupt
Due to Hub Link bus being occupied, an interrupt
de-assertion message is not able to be sent.
de-assertion message is not able to be sent.
...
@@ -3158,7 +3161,7 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
...
@@ -3158,7 +3161,7 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
if
(
hw
->
mac_type
==
e1000_82547
||
hw
->
mac_type
==
e1000_82547_rev_2
)
if
(
hw
->
mac_type
==
e1000_82547
||
hw
->
mac_type
==
e1000_82547_rev_2
)
e1000_irq_enable
(
adapter
);
e1000_irq_enable
(
adapter
);
#endif
#endif
/* CONFIG_E1000_NAPI */
return
IRQ_HANDLED
;
return
IRQ_HANDLED
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录