📄 dm9000 network driver - linux_kernel google 网上论坛.htm
字号:
<span class="lk" id="mod_cc">添加抄送</span><span id="mod_sep_cc_flw"> | </span><span class="lk" id="mod_flw_to">添加跟帖</span><span id="mod_sep_flw_subj"> | </span><span class="lk" id="mod_subj">修改主题</span></td> <td align="right"></td> </tr> </tbody></table> </td> </tr> <tr class="hide" id="subj" align="right" valign="top"> <td class="mchc" nowrap><b>主题:</b></td> <td class="mchc" colspan="2" width="100%"> <input class="wdth100" spellcheck="true" tabindex="1" name="subject" size="60" id="rw" value=""> </td> </tr> </tbody></table> </div> </div> </td> </tr> <tr> <td class="ci cb2" colspan="2"> <div class="sm"></div> <table class="wdth100"> <tr><td width="3px"><img alt="" width="3" height="1"><td> <textarea style="width: 100%; padding: 5px; position: relative;" tabindex="1" id="cmp_body" rows="15" name="body" wrap="soft" ></textarea> </td><td width="10px"><img alt="" width="10" height="1"></td></tr> </table> </td> </tr> <tr id="cmp_rsz" style="cursor:move;"> <td colspan="2"> <div class="cd padb0"> <button type="button" tabindex="1" style="padding: 0 2em;" id="send2"><b>发送</b></button> <button type="button" tabindex="1" style="padding: 0 1em;" id="dc2">放弃</button> </div> </td> </tr> <tr height="2"> <td class="bl"></td> <td class="br"></td> </tr> </tbody></table></div></form> </div> ESM--></SPAN>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD><IMG height=1
src="DM9000 network driver - linux_kernel Google 网上论坛.files/dot_clear.gif"
width=1></TD>
<TD width="100%">
<DIV class="msg wdth100" id=msg_997a80484234d5ce
onmouseover="if (G2_cardManager) {G2_cardManager._getMessage('997a80484234d5ce')._load();}"
style="MARGIN: 0px -1px"><INPUT id=hdn_reply_to_subj type=hidden
value="DM9000 network driver"> <INPUT id=hdn_from type=hidden>
<INPUT id=hdn_date type=hidden value="2005年3月18日, 下午9时40分"> <INPUT
id=hdn_author type=hidden
value="Sascha Hauer <s.ha...@pengutronix.de>"> <INPUT
id=hdn_group_name type=hidden value=linux.kernel>
<DIV id=hdr>
<TABLE class="h msg_meta" id=top cellSpacing=0 cellPadding=0>
<TBODY>
<TR id=sep>
<TD class=ctl id=l rowSpan=2></TD>
<TD class=ctop id=m colSpan=4 height=4></TD>
<TD class=ctr id=r rowSpan=2></TD></TR>
<TR>
<TD><SPAN class="fontsize2 author"><SPAN
style="COLOR: #00681c">Sascha Hauer</SPAN> </SPAN></TD>
<TD width="100%">
<TABLE class=rc cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD><SPAN class="fontsize0 " id=prof><A
href="http://groups.google.com/groups/profile?enc_user=qxB2axYAAABi6Ve9RmeNjtYAmRWnL2Sgw9myJ4M3pRwxqG25cGZQwQ"
target=_top>查看个人资料</A></SPAN>
<DIV class="fontsize2 hide" id=body_sum
style="COLOR: #666666"></DIV></TD></TR></TBODY></TABLE></TD>
<TD noWrap align=right><SPAN
style="BACKGROUND-COLOR: white"><SPAN
class=fontsize0> <SPAN
class="noscripthide scripthide script12inline lk "
id=oh_l>更多选项</SPAN></SPAN> <SPAN class=fontsize2>2005年3月18日,
下午9时40分 </SPAN></SPAN></TD></TR></TBODY></TABLE>
<DIV class="scripthide cb" id=oh>
<DIV class=exh>
<DIV class=fontsize2>
<DIV
style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">新闻论坛:<B>linux.kernel</B></DIV>
<DIV style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">发件人:<B>Sascha
Hauer <s.ha<A
href="http://groups.google.com/groups/unlock?msg=997a80484234d5ce&_done=/group/linux.kernel/msg/997a80484234d5ce"
target=_parent>...</A>@pengutronix.de></B></DIV>
<DIV style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">日期:<B>Fri, 18
Mar 2005 14:40:09 +0100</B></DIV>
<DIV
style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">当地时间:<B>2005年3月18日(星期五)
下午9时40分</B></DIV>
<DIV style="PADDING-LEFT: 20px; TEXT-INDENT: -16px">主题:<B>[PATCH]
DM9000 network driver</B></DIV></DIV>
<DIV class="fontsize1 padall4"><A class=l id=ra
href="http://groups.google.com/group/linux.kernel/post?inreplyto=997a80484234d5ce&reply_to=author&_done=%2Fgroup%2Flinux.kernel%2Fmsg%2F997a80484234d5ce%3F&"
target=_top>答复作者</A> | <A class=l id=f
href="http://groups.google.com/group/linux.kernel/post?inreplyto=997a80484234d5ce&forward=1&_done=%2Fgroup%2Flinux.kernel%2Fmsg%2F997a80484234d5ce%3F&"
target=_top>转发</A> | <A class=l
href="http://groups.google.com/group/linux.kernel/msg/997a80484234d5ce?dmode=print"
target=_blank>打印</A> | <A class=l
href="http://groups.google.com/group/linux.kernel/browse_thread/thread/32ebac83fb525f2e/997a80484234d5ce#997a80484234d5ce"
target=_top>查看跟帖</A> | <A class=l
href="http://groups.google.com/group/linux.kernel/msg/997a80484234d5ce?dmode=source"
target=_blank>显示原始邮件</A> | <A class=l
href="http://groups.google.com/groups/abuse?group=linux.kernel&type=message&url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Flinux.kernel%2Fmsg%2F997a80484234d5ce&_done=%2Fgroup%2Flinux.kernel%2Fmsg%2F997a80484234d5ce%3F&"
target=_blank>报告此帖</A> | <A
href="http://groups.google.com/groups/search?enc_author=qxB2axYAAABi6Ve9RmeNjtYAmRWnL2Sgw9myJ4M3pRwxqG25cGZQwQ&scoring=d"
target=_top>查找此作者的帖子</A> </DIV></DIV></DIV></DIV>
<DIV class="mb cb fontsize2 " id=body>
<DIV id=inbdy><A name=msg_997a80484234d5ce></A>
<P>Hello all, <BR>
<P>This patch adds support for the davicom dm9000 network driver.
The <BR>dm9000 is found on some embedded arm boards such as the
pimx1 or the <BR>scb9328. <BR>
<P>Sascha Hauer <BR>
<P>Signed-off-by: Sascha Hauer <s.ha<A
href="http://groups.google.com/groups/unlock?msg=997a80484234d5ce&_done=/group/linux.kernel/msg/997a80484234d5ce"
target=_parent>...</A>@pengutronix.de> <BR>
<P>diff -urN linux-2.6.11/drivers/net/Kconfig
linux-2.6.11-work/drivers/net/Kconfig <BR>---
linux-2.6.11/drivers/net/Kconfig 2005-03-02
08:38:25.000000000 +0100 <BR>+++
linux-2.6.11-work/drivers/net/Kconfig
2005-03-17 12:33:26.000000000 +0100 <BR>@@ -849,6 +849,18 @@
<BR>
<file:Documentation/networking/net-modules.txt>. The module
<BR> will be called smc9194. <BR>
<P>+config DM9000 <BR>+ tristate "DM9000
support" <BR>+ depends on ARM &&
NET_ETHERNET <BR>+ select CRC32 <BR>+
select MII <BR>+ ---help--- <BR>+
Support for DM9000 chipset. <BR>+ <BR>+
To compile this driver as a module,
choose M here and read <BR>+
<file:Documentation/networking/net-modules.txt>. The
module will be <BR>+ called dm9000.
<BR>+ <BR> config NET_VENDOR_RACAL <BR>
bool "Racal-Interlan (Micom) NI cards" <BR>
depends on NET_ETHERNET && ISA <BR>diff -urN
linux-2.6.11/drivers/net/Makefile
linux-2.6.11-work/drivers/net/Makefile <BR>---
linux-2.6.11/drivers/net/Makefile 2005-03-02
08:37:52.000000000 +0100 <BR>+++
linux-2.6.11-work/drivers/net/Makefile
2005-03-17 12:32:16.000000000 +0100 <BR>@@ -181,6 +181,7 @@
<BR> obj-$(CONFIG_IBMVETH) += ibmveth.o
<BR> obj-$(CONFIG_S2IO) += s2io.o
<BR> obj-$(CONFIG_SMC91X) += smc91x.o <BR>+obj-$(CONFIG_DM9000)
+= dm9000.o <BR> obj-$(CONFIG_FEC_8XX) += fec_8xx/ <BR>
<P> obj-$(CONFIG_ARM) += arm/ <BR>diff -urN
linux-2.6.11/drivers/net/dm9000.c
linux-2.6.11-work/drivers/net/dm9000.c <BR>---
linux-2.6.11/drivers/net/dm9000.c 1970-01-01
01:00:00.000000000 +0100 <BR>+++
linux-2.6.11-work/drivers/net/dm9000.c
2005-03-17 16:04:49.000000000 +0100 <BR>@@ -0,0 +1,1219 @@
<BR>+/* <BR>+ * dm9000.c: Version 1.2 03/18/2003 <BR>+ *
<BR>+ * A Davicom DM9000 ISA NIC
fast Ethernet driver for Linux. <BR>+ * Copyright (C)
1997 Sten Wang <BR>+ * <BR>+ * This program is
free software; you can redistribute it and/or <BR>+ *
modify it under the terms of the GNU General Public License <BR>+ *
as published by the Free Software Foundation; either
version 2 <BR>+ * of the License, or (at your option)
any later version. <BR>+ * <BR>+ * This program is
distributed in the hope that it will be useful, <BR>+ *
but WITHOUT ANY WARRANTY; without even the implied warranty
of <BR>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the <BR>+ * GNU General Public
License for more details. <BR>+ * <BR>+ * (C)Copyright
1997-1998 DAVICOM Semiconductor,Inc. All Rights Reserved. <BR>+ *
<BR>+ * V0.11 06/20/2001
REG_0A bit3=1, default enable BP with DA match <BR>+ *
06/22/2001 Support DM9801 progrmming
<BR>+ *
E3: R25 = ((R24 + NF) &
0x00ff) | 0xf000 <BR>+ *
E4: R25 = ((R24 + NF) & 0x00ff) |
0xc200 <BR>+ *
R17 = (R17 &
0xfff0) | NF + 3 <BR>+ *
E5: R25 = ((R24 + NF - 3) & 0x00ff)
| 0xc200 <BR>+ *
R17 = (R17 &
0xfff0) | NF <BR>+ *
<BR>+ *
v1.00
modify by simon 2001.9.5 <BR>+ *
change for kernel 2.4.x <BR>+ *
<BR>+ * v1.1
11/09/2001 fix force mode bug
<BR>+ * <BR>+ * v1.2
03/18/2003 Weilun Huang <weilun_hu<A
href="http://groups.google.com/groups/unlock?msg=997a80484234d5ce&_done=/group/linux.kernel/msg/997a80484234d5ce"
target=_parent>...</A>@davicom.com.tw>: <BR>+ *
Fixed phy
reset. <BR>+ *
Added tx/rx 32 bit mode. <BR>+ *
Cleaned up
for kernel merge. <BR>+ * <BR>+ *
03/03/2004 Sascha Hauer <s.ha<A
href="http://groups.google.com/groups/unlock?msg=997a80484234d5ce&_done=/group/linux.kernel/msg/997a80484234d5ce"
target=_parent>...</A>@pengutronix.de> <BR>+ *
Port
to 2.6 kernel <BR>+ *
<BR>+ *
24-Sep-2004 Ben Dooks <b<A
href="http://groups.google.com/groups/unlock?msg=997a80484234d5ce&_done=/group/linux.kernel/msg/997a80484234d5ce"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -