Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
6e0d2fc7
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6e0d2fc7
编写于
4月 28, 2009
作者:
B
Ben Warren
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove support for non-CONFIG_NET_MULTI on PPC4xx EMAC
Signed-off-by:
N
Ben Warren
<
biggerbadderben@gmail.com
>
上级
8453587e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
58 deletion
+0
-58
drivers/net/4xx_enet.c
drivers/net/4xx_enet.c
+0
-54
net/eth.c
net/eth.c
+0
-4
未找到文件。
drivers/net/4xx_enet.c
浏览文件 @
6e0d2fc7
...
...
@@ -259,9 +259,6 @@ static const struct fixed_phy_port fixed_phy_port[] = {
/*-----------------------------------------------------------------------------+
* Global variables. TX and RX descriptors and buffers.
*-----------------------------------------------------------------------------*/
#if !defined(CONFIG_NET_MULTI)
struct
eth_device
*
emac0_dev
=
NULL
;
#endif
/*
* Get count of EMAC devices (doesn't have to be the max. possible number
...
...
@@ -1643,11 +1640,7 @@ int enetInt (struct eth_device *dev)
* Because the mal is generic, we need to get the current
* eth device
*/
#if defined(CONFIG_NET_MULTI)
dev
=
eth_get_dev
();
#else
dev
=
emac0_dev
;
#endif
hw_p
=
dev
->
priv
;
...
...
@@ -2066,60 +2059,13 @@ int ppc_4xx_eth_initialize (bd_t * bis)
virgin
=
1
;
}
#if defined(CONFIG_NET_MULTI)
eth_register
(
dev
);
#else
emac0_dev
=
dev
;
#endif
#if defined(CONFIG_NET_MULTI)
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
miiphy_register
(
dev
->
name
,
emac4xx_miiphy_read
,
emac4xx_miiphy_write
);
#endif
#endif
}
/* end for each supported device */
return
0
;
}
#if !defined(CONFIG_NET_MULTI)
void
eth_halt
(
void
)
{
if
(
emac0_dev
)
{
ppc_4xx_eth_halt
(
emac0_dev
);
free
(
emac0_dev
);
emac0_dev
=
NULL
;
}
}
int
eth_init
(
bd_t
*
bis
)
{
ppc_4xx_eth_initialize
(
bis
);
if
(
emac0_dev
)
{
return
ppc_4xx_eth_init
(
emac0_dev
,
bis
);
}
else
{
printf
(
"ERROR: ethaddr not set!
\n
"
);
return
-
1
;
}
}
int
eth_send
(
volatile
void
*
packet
,
int
length
)
{
return
(
ppc_4xx_eth_send
(
emac0_dev
,
packet
,
length
));
}
int
eth_rx
(
void
)
{
return
(
ppc_4xx_eth_rx
(
emac0_dev
));
}
int
emac4xx_miiphy_initialize
(
bd_t
*
bis
)
{
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
miiphy_register
(
"ppc_4xx_eth0"
,
emac4xx_miiphy_read
,
emac4xx_miiphy_write
);
#endif
return
0
;
}
#endif
/* !defined(CONFIG_NET_MULTI) */
net/eth.c
浏览文件 @
6e0d2fc7
...
...
@@ -501,7 +501,6 @@ char *eth_get_name (void)
#elif defined(CONFIG_CMD_NET) && !defined(CONFIG_NET_MULTI)
extern
int
at91rm9200_miiphy_initialize
(
bd_t
*
bis
);
extern
int
emac4xx_miiphy_initialize
(
bd_t
*
bis
);
extern
int
mcf52x2_miiphy_initialize
(
bd_t
*
bis
);
extern
int
ns7520_miiphy_initialize
(
bd_t
*
bis
);
...
...
@@ -515,9 +514,6 @@ int eth_initialize(bd_t *bis)
#if defined(CONFIG_AT91RM9200)
at91rm9200_miiphy_initialize
(
bis
);
#endif
#if defined(CONFIG_PPC4xx_EMAC)
emac4xx_miiphy_initialize
(
bis
);
#endif
#if defined(CONFIG_MCF52x2)
mcf52x2_miiphy_initialize
(
bis
);
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录