Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
7deb1182
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看板
提交
7deb1182
编写于
3月 09, 2012
作者:
F
Francois Romieu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sunhme: stop using net_device.{base_addr, irq}.
Signed-off-by:
N
Francois Romieu
<
romieu@fr.zoreil.com
>
上级
a173460a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
10 deletion
+9
-10
drivers/net/ethernet/sun/sunhme.c
drivers/net/ethernet/sun/sunhme.c
+8
-10
drivers/net/ethernet/sun/sunhme.h
drivers/net/ethernet/sun/sunhme.h
+1
-0
未找到文件。
drivers/net/ethernet/sun/sunhme.c
浏览文件 @
7deb1182
...
...
@@ -2183,11 +2183,12 @@ static int happy_meal_open(struct net_device *dev)
* into a single source which we register handling at probe time.
*/
if
((
hp
->
happy_flags
&
(
HFLAG_QUATTRO
|
HFLAG_PCI
))
!=
HFLAG_QUATTRO
)
{
if
(
request_irq
(
dev
->
irq
,
happy_meal_interrupt
,
IRQF_SHARED
,
dev
->
name
,
(
void
*
)
dev
))
{
res
=
request_irq
(
hp
->
irq
,
happy_meal_interrupt
,
IRQF_SHARED
,
dev
->
name
,
dev
);
if
(
res
)
{
HMD
((
"EAGAIN
\n
"
));
printk
(
KERN_ERR
"happy_meal(SBUS): Can't order irq %d to go.
\n
"
,
dev
->
irq
);
hp
->
irq
);
return
-
EAGAIN
;
}
...
...
@@ -2200,7 +2201,7 @@ static int happy_meal_open(struct net_device *dev)
spin_unlock_irq
(
&
hp
->
happy_lock
);
if
(
res
&&
((
hp
->
happy_flags
&
(
HFLAG_QUATTRO
|
HFLAG_PCI
))
!=
HFLAG_QUATTRO
))
free_irq
(
dev
->
irq
,
dev
);
free_irq
(
hp
->
irq
,
dev
);
return
res
;
}
...
...
@@ -2222,7 +2223,7 @@ static int happy_meal_close(struct net_device *dev)
* time and never unregister.
*/
if
((
hp
->
happy_flags
&
(
HFLAG_QUATTRO
|
HFLAG_PCI
))
!=
HFLAG_QUATTRO
)
free_irq
(
dev
->
irq
,
dev
);
free_irq
(
hp
->
irq
,
dev
);
return
0
;
}
...
...
@@ -2778,7 +2779,7 @@ static int __devinit happy_meal_sbus_probe_one(struct platform_device *op, int i
dev
->
hw_features
=
NETIF_F_SG
|
NETIF_F_HW_CSUM
;
dev
->
features
|=
dev
->
hw_features
|
NETIF_F_RXCSUM
;
dev
->
irq
=
op
->
archdata
.
irqs
[
0
];
hp
->
irq
=
op
->
archdata
.
irqs
[
0
];
#if defined(CONFIG_SBUS) && defined(CONFIG_PCI)
/* Hook up SBUS register/descriptor accessors. */
...
...
@@ -2982,8 +2983,6 @@ static int __devinit happy_meal_pci_probe(struct pci_dev *pdev,
if
(
hme_version_printed
++
==
0
)
printk
(
KERN_INFO
"%s"
,
version
);
dev
->
base_addr
=
(
long
)
pdev
;
hp
=
netdev_priv
(
dev
);
hp
->
happy_dev
=
pdev
;
...
...
@@ -3088,12 +3087,11 @@ static int __devinit happy_meal_pci_probe(struct pci_dev *pdev,
init_timer
(
&
hp
->
happy_timer
);
hp
->
irq
=
pdev
->
irq
;
hp
->
dev
=
dev
;
dev
->
netdev_ops
=
&
hme_netdev_ops
;
dev
->
watchdog_timeo
=
5
*
HZ
;
dev
->
ethtool_ops
=
&
hme_ethtool_ops
;
dev
->
irq
=
pdev
->
irq
;
dev
->
dma
=
0
;
/* Happy Meal can do it all... */
dev
->
hw_features
=
NETIF_F_SG
|
NETIF_F_HW_CSUM
;
...
...
drivers/net/ethernet/sun/sunhme.h
浏览文件 @
7deb1182
...
...
@@ -432,6 +432,7 @@ struct happy_meal {
dma_addr_t
hblock_dvma
;
/* DVMA visible address happy block */
unsigned
int
happy_flags
;
/* Driver state flags */
int
irq
;
enum
happy_transceiver
tcvr_type
;
/* Kind of transceiver in use */
unsigned
int
happy_bursts
;
/* Get your mind out of the gutter */
unsigned
int
paddr
;
/* PHY address for transceiver */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录