Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
c4a9f085
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看板
提交
c4a9f085
编写于
3月 09, 2012
作者:
F
Francois Romieu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sc92031: stop using net_device.{base_addr, irq}
Signed-off-by:
N
Francois Romieu
<
romieu@fr.zoreil.com
>
上级
c0bd55ef
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
23 deletion
+11
-23
drivers/net/ethernet/silan/sc92031.c
drivers/net/ethernet/silan/sc92031.c
+11
-23
未找到文件。
drivers/net/ethernet/silan/sc92031.c
浏览文件 @
c4a9f085
...
...
@@ -39,9 +39,7 @@
#define SC92031_NAME "sc92031"
/* BAR 0 is MMIO, BAR 1 is PIO */
#ifndef SC92031_USE_BAR
#define SC92031_USE_BAR 0
#endif
#define SC92031_USE_PIO 0
/* Maximum number of multicast addresses to filter (vs. Rx-all-multicast). */
static
int
multicast_filter_limit
=
64
;
...
...
@@ -366,7 +364,7 @@ static void sc92031_disable_interrupts(struct net_device *dev)
mmiowb
();
/* wait for any concurrent interrupt/tasklet to finish */
synchronize_irq
(
dev
->
irq
);
synchronize_irq
(
priv
->
p
dev
->
irq
);
tasklet_disable
(
&
priv
->
tasklet
);
}
...
...
@@ -1114,10 +1112,13 @@ static void sc92031_tx_timeout(struct net_device *dev)
#ifdef CONFIG_NET_POLL_CONTROLLER
static
void
sc92031_poll_controller
(
struct
net_device
*
dev
)
{
disable_irq
(
dev
->
irq
);
if
(
sc92031_interrupt
(
dev
->
irq
,
dev
)
!=
IRQ_NONE
)
struct
sc92031_priv
*
priv
=
netdev_priv
(
dev
);
const
int
irq
=
priv
->
pdev
->
irq
;
disable_irq
(
irq
);
if
(
sc92031_interrupt
(
irq
,
dev
)
!=
IRQ_NONE
)
sc92031_tasklet
((
unsigned
long
)
dev
);
enable_irq
(
dev
->
irq
);
enable_irq
(
irq
);
}
#endif
...
...
@@ -1402,7 +1403,6 @@ static int __devinit sc92031_probe(struct pci_dev *pdev,
struct
net_device
*
dev
;
struct
sc92031_priv
*
priv
;
u32
mac0
,
mac1
;
unsigned
long
base_addr
;
err
=
pci_enable_device
(
pdev
);
if
(
unlikely
(
err
<
0
))
...
...
@@ -1422,7 +1422,7 @@ static int __devinit sc92031_probe(struct pci_dev *pdev,
if
(
unlikely
(
err
<
0
))
goto
out_request_regions
;
port_base
=
pci_iomap
(
pdev
,
SC92031_USE_
BAR
,
0
);
port_base
=
pci_iomap
(
pdev
,
SC92031_USE_
PIO
,
0
);
if
(
unlikely
(
!
port_base
))
{
err
=
-
EIO
;
goto
out_iomap
;
...
...
@@ -1437,14 +1437,6 @@ static int __devinit sc92031_probe(struct pci_dev *pdev,
pci_set_drvdata
(
pdev
,
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
#if SC92031_USE_BAR == 0
dev
->
mem_start
=
pci_resource_start
(
pdev
,
SC92031_USE_BAR
);
dev
->
mem_end
=
pci_resource_end
(
pdev
,
SC92031_USE_BAR
);
#elif SC92031_USE_BAR == 1
dev
->
base_addr
=
pci_resource_start
(
pdev
,
SC92031_USE_BAR
);
#endif
dev
->
irq
=
pdev
->
irq
;
/* faked with skb_copy_and_csum_dev */
dev
->
features
=
NETIF_F_SG
|
NETIF_F_HIGHDMA
|
NETIF_F_IP_CSUM
|
NETIF_F_IPV6_CSUM
;
...
...
@@ -1478,13 +1470,9 @@ static int __devinit sc92031_probe(struct pci_dev *pdev,
if
(
err
<
0
)
goto
out_register_netdev
;
#if SC92031_USE_BAR == 0
base_addr
=
dev
->
mem_start
;
#elif SC92031_USE_BAR == 1
base_addr
=
dev
->
base_addr
;
#endif
printk
(
KERN_INFO
"%s: SC92031 at 0x%lx, %pM, IRQ %d
\n
"
,
dev
->
name
,
base_addr
,
dev
->
dev_addr
,
dev
->
irq
);
(
long
)
pci_resource_start
(
pdev
,
SC92031_USE_PIO
),
dev
->
dev_addr
,
pdev
->
irq
);
return
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录