Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
480c2864
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
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看板
提交
480c2864
编写于
3月 09, 2012
作者:
F
Francois Romieu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sis190: stop using net_device.{base_addr, irq}
Signed-off-by:
N
Francois Romieu
<
romieu@fr.zoreil.com
>
上级
c4a9f085
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
15 deletion
+11
-15
drivers/net/ethernet/sis/sis190.c
drivers/net/ethernet/sis/sis190.c
+11
-15
未找到文件。
drivers/net/ethernet/sis/sis190.c
浏览文件 @
480c2864
...
@@ -729,7 +729,7 @@ static void sis190_tx_interrupt(struct net_device *dev,
...
@@ -729,7 +729,7 @@ static void sis190_tx_interrupt(struct net_device *dev,
* The interrupt handler does all of the Rx thread work and cleans up after
* The interrupt handler does all of the Rx thread work and cleans up after
* the Tx thread.
* the Tx thread.
*/
*/
static
irqreturn_t
sis190_i
nterrupt
(
int
irq
,
void
*
__dev
)
static
irqreturn_t
sis190_i
rq
(
int
irq
,
void
*
__dev
)
{
{
struct
net_device
*
dev
=
__dev
;
struct
net_device
*
dev
=
__dev
;
struct
sis190_private
*
tp
=
netdev_priv
(
dev
);
struct
sis190_private
*
tp
=
netdev_priv
(
dev
);
...
@@ -772,11 +772,11 @@ static irqreturn_t sis190_interrupt(int irq, void *__dev)
...
@@ -772,11 +772,11 @@ static irqreturn_t sis190_interrupt(int irq, void *__dev)
static
void
sis190_netpoll
(
struct
net_device
*
dev
)
static
void
sis190_netpoll
(
struct
net_device
*
dev
)
{
{
struct
sis190_private
*
tp
=
netdev_priv
(
dev
);
struct
sis190_private
*
tp
=
netdev_priv
(
dev
);
struct
pci_dev
*
pdev
=
tp
->
pci_dev
;
const
int
irq
=
tp
->
pci_dev
->
irq
;
disable_irq
(
pdev
->
irq
);
disable_irq
(
irq
);
sis190_i
nterrupt
(
pdev
->
irq
,
dev
);
sis190_i
rq
(
irq
,
dev
);
enable_irq
(
pdev
->
irq
);
enable_irq
(
irq
);
}
}
#endif
#endif
...
@@ -1085,7 +1085,7 @@ static int sis190_open(struct net_device *dev)
...
@@ -1085,7 +1085,7 @@ static int sis190_open(struct net_device *dev)
sis190_request_timer
(
dev
);
sis190_request_timer
(
dev
);
rc
=
request_irq
(
dev
->
irq
,
sis190_interrupt
,
IRQF_SHARED
,
dev
->
name
,
dev
);
rc
=
request_irq
(
pdev
->
irq
,
sis190_irq
,
IRQF_SHARED
,
dev
->
name
,
dev
);
if
(
rc
<
0
)
if
(
rc
<
0
)
goto
err_release_timer_2
;
goto
err_release_timer_2
;
...
@@ -1097,11 +1097,9 @@ static int sis190_open(struct net_device *dev)
...
@@ -1097,11 +1097,9 @@ static int sis190_open(struct net_device *dev)
sis190_delete_timer
(
dev
);
sis190_delete_timer
(
dev
);
sis190_rx_clear
(
tp
);
sis190_rx_clear
(
tp
);
err_free_rx_1:
err_free_rx_1:
pci_free_consistent
(
tp
->
pci_dev
,
RX_RING_BYTES
,
tp
->
RxDescRing
,
pci_free_consistent
(
pdev
,
RX_RING_BYTES
,
tp
->
RxDescRing
,
tp
->
rx_dma
);
tp
->
rx_dma
);
err_free_tx_0:
err_free_tx_0:
pci_free_consistent
(
tp
->
pci_dev
,
TX_RING_BYTES
,
tp
->
TxDescRing
,
pci_free_consistent
(
pdev
,
TX_RING_BYTES
,
tp
->
TxDescRing
,
tp
->
tx_dma
);
tp
->
tx_dma
);
goto
out
;
goto
out
;
}
}
...
@@ -1141,7 +1139,7 @@ static void sis190_down(struct net_device *dev)
...
@@ -1141,7 +1139,7 @@ static void sis190_down(struct net_device *dev)
spin_unlock_irq
(
&
tp
->
lock
);
spin_unlock_irq
(
&
tp
->
lock
);
synchronize_irq
(
dev
->
irq
);
synchronize_irq
(
tp
->
pci_
dev
->
irq
);
if
(
!
poll_locked
)
if
(
!
poll_locked
)
poll_locked
++
;
poll_locked
++
;
...
@@ -1161,7 +1159,7 @@ static int sis190_close(struct net_device *dev)
...
@@ -1161,7 +1159,7 @@ static int sis190_close(struct net_device *dev)
sis190_down
(
dev
);
sis190_down
(
dev
);
free_irq
(
dev
->
irq
,
dev
);
free_irq
(
p
dev
->
irq
,
dev
);
pci_free_consistent
(
pdev
,
TX_RING_BYTES
,
tp
->
TxDescRing
,
tp
->
tx_dma
);
pci_free_consistent
(
pdev
,
TX_RING_BYTES
,
tp
->
TxDescRing
,
tp
->
tx_dma
);
pci_free_consistent
(
pdev
,
RX_RING_BYTES
,
tp
->
RxDescRing
,
tp
->
rx_dma
);
pci_free_consistent
(
pdev
,
RX_RING_BYTES
,
tp
->
RxDescRing
,
tp
->
rx_dma
);
...
@@ -1884,8 +1882,6 @@ static int __devinit sis190_init_one(struct pci_dev *pdev,
...
@@ -1884,8 +1882,6 @@ static int __devinit sis190_init_one(struct pci_dev *pdev,
dev
->
netdev_ops
=
&
sis190_netdev_ops
;
dev
->
netdev_ops
=
&
sis190_netdev_ops
;
SET_ETHTOOL_OPS
(
dev
,
&
sis190_ethtool_ops
);
SET_ETHTOOL_OPS
(
dev
,
&
sis190_ethtool_ops
);
dev
->
irq
=
pdev
->
irq
;
dev
->
base_addr
=
(
unsigned
long
)
0xdead
;
dev
->
watchdog_timeo
=
SIS190_TX_TIMEOUT
;
dev
->
watchdog_timeo
=
SIS190_TX_TIMEOUT
;
spin_lock_init
(
&
tp
->
lock
);
spin_lock_init
(
&
tp
->
lock
);
...
@@ -1902,7 +1898,7 @@ static int __devinit sis190_init_one(struct pci_dev *pdev,
...
@@ -1902,7 +1898,7 @@ static int __devinit sis190_init_one(struct pci_dev *pdev,
netdev_info
(
dev
,
"%s: %s at %p (IRQ: %d), %pM
\n
"
,
netdev_info
(
dev
,
"%s: %s at %p (IRQ: %d), %pM
\n
"
,
pci_name
(
pdev
),
pci_name
(
pdev
),
sis_chip_info
[
ent
->
driver_data
].
name
,
sis_chip_info
[
ent
->
driver_data
].
name
,
ioaddr
,
dev
->
irq
,
dev
->
dev_addr
);
ioaddr
,
p
dev
->
irq
,
dev
->
dev_addr
);
netdev_info
(
dev
,
"%s mode.
\n
"
,
netdev_info
(
dev
,
"%s mode.
\n
"
,
(
tp
->
features
&
F_HAS_RGMII
)
?
"RGMII"
:
"GMII"
);
(
tp
->
features
&
F_HAS_RGMII
)
?
"RGMII"
:
"GMII"
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录