Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
f2c288a3
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,发现更多精彩内容 >>
提交
f2c288a3
编写于
4月 28, 2008
作者:
W
Wolfgang Denk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pcnet.c: fix a merge issue
Signed-off-by:
N
Wolfgang Denk
<
wd@denx.de
>
上级
4ca79f47
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
54 deletion
+0
-54
drivers/net/pcnet.c
drivers/net/pcnet.c
+0
-54
未找到文件。
drivers/net/pcnet.c
浏览文件 @
f2c288a3
...
...
@@ -169,7 +169,6 @@ static struct pci_device_id supported[] = {
int
pcnet_initialize
(
bd_t
*
bis
)
{
<<<<<<<
HEAD
:
drivers
/
net
/
pcnet
.
c
pci_dev_t
devbusfn
;
struct
eth_device
*
dev
;
u16
command
,
status
;
...
...
@@ -232,59 +231,6 @@ int pcnet_initialize (bd_t * bis)
dev
->
recv
=
pcnet_recv
;
eth_register
(
dev
);
=======
pci_dev_t
devbusfn
;
struct
eth_device
*
dev
;
u16
command
,
status
;
int
dev_nr
=
0
;
PCNET_DEBUG1
(
"
\n
pcnet_initialize...
\n
"
);
for
(
dev_nr
=
0
;
;
dev_nr
++
)
{
/*
* Find the PCnet PCI device(s).
*/
if
((
devbusfn
=
pci_find_devices
(
supported
,
dev_nr
))
<
0
)
{
break
;
}
/*
* Allocate and pre-fill the device structure.
*/
dev
=
(
struct
eth_device
*
)
malloc
(
sizeof
*
dev
);
dev
->
priv
=
(
void
*
)
devbusfn
;
sprintf
(
dev
->
name
,
"pcnet#%d"
,
dev_nr
);
/*
* Setup the PCI device.
*/
pci_read_config_dword
(
devbusfn
,
PCI_BASE_ADDRESS_0
,
(
unsigned
int
*
)
&
dev
->
iobase
);
dev
->
iobase
=
pci_io_to_phys
(
devbusfn
,
dev
->
iobase
);
dev
->
iobase
&=
~
0xf
;
PCNET_DEBUG1
(
"%s: devbusfn=0x%x iobase=0x%x: "
,
dev
->
name
,
devbusfn
,
dev
->
iobase
);
command
=
PCI_COMMAND_IO
|
PCI_COMMAND_MASTER
;
pci_write_config_word
(
devbusfn
,
PCI_COMMAND
,
command
);
pci_read_config_word
(
devbusfn
,
PCI_COMMAND
,
&
status
);
if
((
status
&
command
)
!=
command
)
{
printf
(
"%s: Couldn't enable IO access or Bus Mastering
\n
"
,
dev
->
name
);
free
(
dev
);
continue
;
}
pci_write_config_byte
(
devbusfn
,
PCI_LATENCY_TIMER
,
0x40
);
/*
* Probe the PCnet chip.
*/
if
(
pcnet_probe
(
dev
,
bis
,
dev_nr
)
<
0
)
{
free
(
dev
);
continue
;
>>>>>>>
Fixed
pcnet
io_base
:
drivers
/
net
/
pcnet
.
c
}
udelay
(
10
*
1000
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录