Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
56e2e5de
K
Kernel
项目概览
openeuler
/
Kernel
大约 2 年 前同步成功
通知
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看板
提交
56e2e5de
编写于
4月 20, 2021
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
korina: Fix conflict with global symbol desc_empty on x86.
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
ff254dad
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
8 deletion
+8
-8
drivers/net/ethernet/korina.c
drivers/net/ethernet/korina.c
+8
-8
未找到文件。
drivers/net/ethernet/korina.c
浏览文件 @
56e2e5de
/*
>
/*
* Driver for the IDT RC32434 (Korina) on-chip ethernet controller.
* Driver for the IDT RC32434 (Korina) on-chip ethernet controller.
*
*
* Copyright 2004 IDT Inc. (rischelp@idt.com)
* Copyright 2004 IDT Inc. (rischelp@idt.com)
...
@@ -323,7 +323,7 @@ struct dma_reg {
...
@@ -323,7 +323,7 @@ struct dma_reg {
enum
chain_status
{
enum
chain_status
{
desc_filled
,
desc_filled
,
desc_empty
desc_
is_
empty
};
};
#define DMA_COUNT(count) ((count) & DMA_DESC_COUNT_MSK)
#define DMA_COUNT(count) ((count) & DMA_DESC_COUNT_MSK)
...
@@ -459,7 +459,7 @@ static int korina_send_packet(struct sk_buff *skb, struct net_device *dev)
...
@@ -459,7 +459,7 @@ static int korina_send_packet(struct sk_buff *skb, struct net_device *dev)
chain_next
=
(
idx
+
1
)
&
KORINA_TDS_MASK
;
chain_next
=
(
idx
+
1
)
&
KORINA_TDS_MASK
;
if
(
readl
(
&
(
lp
->
tx_dma_regs
->
dmandptr
))
==
0
)
{
if
(
readl
(
&
(
lp
->
tx_dma_regs
->
dmandptr
))
==
0
)
{
if
(
lp
->
tx_chain_status
==
desc_empty
)
{
if
(
lp
->
tx_chain_status
==
desc_
is_
empty
)
{
/* Update tail */
/* Update tail */
td
->
control
=
DMA_COUNT
(
length
)
|
td
->
control
=
DMA_COUNT
(
length
)
|
DMA_DESC_COF
|
DMA_DESC_IOF
;
DMA_DESC_COF
|
DMA_DESC_IOF
;
...
@@ -486,10 +486,10 @@ static int korina_send_packet(struct sk_buff *skb, struct net_device *dev)
...
@@ -486,10 +486,10 @@ static int korina_send_packet(struct sk_buff *skb, struct net_device *dev)
&
lp
->
tx_dma_regs
->
dmandptr
);
&
lp
->
tx_dma_regs
->
dmandptr
);
/* Move head to tail */
/* Move head to tail */
lp
->
tx_chain_head
=
lp
->
tx_chain_tail
;
lp
->
tx_chain_head
=
lp
->
tx_chain_tail
;
lp
->
tx_chain_status
=
desc_empty
;
lp
->
tx_chain_status
=
desc_
is_
empty
;
}
}
}
else
{
}
else
{
if
(
lp
->
tx_chain_status
==
desc_empty
)
{
if
(
lp
->
tx_chain_status
==
desc_
is_
empty
)
{
/* Update tail */
/* Update tail */
td
->
control
=
DMA_COUNT
(
length
)
|
td
->
control
=
DMA_COUNT
(
length
)
|
DMA_DESC_COF
|
DMA_DESC_IOF
;
DMA_DESC_COF
|
DMA_DESC_IOF
;
...
@@ -868,7 +868,7 @@ korina_tx_dma_interrupt(int irq, void *dev_id)
...
@@ -868,7 +868,7 @@ korina_tx_dma_interrupt(int irq, void *dev_id)
(
readl
(
&
(
lp
->
tx_dma_regs
->
dmandptr
))
==
0
))
{
(
readl
(
&
(
lp
->
tx_dma_regs
->
dmandptr
))
==
0
))
{
writel
(
korina_tx_dma
(
lp
,
lp
->
tx_chain_head
),
writel
(
korina_tx_dma
(
lp
,
lp
->
tx_chain_head
),
&
lp
->
tx_dma_regs
->
dmandptr
);
&
lp
->
tx_dma_regs
->
dmandptr
);
lp
->
tx_chain_status
=
desc_empty
;
lp
->
tx_chain_status
=
desc_
is_
empty
;
lp
->
tx_chain_head
=
lp
->
tx_chain_tail
;
lp
->
tx_chain_head
=
lp
->
tx_chain_tail
;
netif_trans_update
(
dev
);
netif_trans_update
(
dev
);
}
}
...
@@ -999,7 +999,7 @@ static int korina_alloc_ring(struct net_device *dev)
...
@@ -999,7 +999,7 @@ static int korina_alloc_ring(struct net_device *dev)
}
}
lp
->
tx_next_done
=
lp
->
tx_chain_head
=
lp
->
tx_chain_tail
=
lp
->
tx_next_done
=
lp
->
tx_chain_head
=
lp
->
tx_chain_tail
=
lp
->
tx_full
=
lp
->
tx_count
=
0
;
lp
->
tx_full
=
lp
->
tx_count
=
0
;
lp
->
tx_chain_status
=
desc_empty
;
lp
->
tx_chain_status
=
desc_
is_
empty
;
/* Initialize the receive descriptors */
/* Initialize the receive descriptors */
for
(
i
=
0
;
i
<
KORINA_NUM_RDS
;
i
++
)
{
for
(
i
=
0
;
i
<
KORINA_NUM_RDS
;
i
++
)
{
...
@@ -1027,7 +1027,7 @@ static int korina_alloc_ring(struct net_device *dev)
...
@@ -1027,7 +1027,7 @@ static int korina_alloc_ring(struct net_device *dev)
lp
->
rx_next_done
=
0
;
lp
->
rx_next_done
=
0
;
lp
->
rx_chain_head
=
0
;
lp
->
rx_chain_head
=
0
;
lp
->
rx_chain_tail
=
0
;
lp
->
rx_chain_tail
=
0
;
lp
->
rx_chain_status
=
desc_empty
;
lp
->
rx_chain_status
=
desc_
is_
empty
;
return
0
;
return
0
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录