⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linux下dm9000网卡驱动实验〈二〉 - orange - csdnblog.htm

📁 Dm9000网络接口驱动大全
💻 HTM
📖 第 1 页 / 共 4 页
字号:
      <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"><FONT face="Times New Roman"><SPAN 
      style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>skb_reserve(skb, 
      2);</FONT></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal 
      style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; mso-char-indent-count: 4.0"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"><FONT face="Times New Roman">dec = 
      skb-&gt;data;</FONT></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal 
      style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; mso-char-indent-count: 4.0"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"><FONT 
      face="Times New Roman">//</FONT></SPAN><SPAN 
      style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-ascii-font-family: " times="" 
      new="">把数据包(</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt"><FONT 
      face="Times New Roman">length</FONT></SPAN><SPAN 
      style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-ascii-font-family: " times="" 
      new="">长度)读到</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt"><FONT 
      face="Times New Roman">dec</FONT></SPAN><SPAN 
      style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-ascii-font-family: " times="" 
      new="">指向的内存中;</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt"></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal 
      style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; mso-char-indent-count: 4.0"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"><FONT face="Times New Roman">skb-&gt;dev 
      = dev;</FONT></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal 
      style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; mso-char-indent-count: 4.0"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"><FONT 
      face="Times New Roman">skb-&gt;protocol = eth_type_trans(skb, 
      dev);</FONT></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal 
      style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; mso-char-indent-count: 4.0"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"><FONT 
      face="Times New Roman">skb-&gt;ip_summed = 
      CHECKSUM_UNNECESSARY;</FONT></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal 
      style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; mso-char-indent-count: 4.0"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"><FONT 
      face="Times New Roman">netif_rx(skb);</FONT></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal 
      style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; mso-char-indent-count: 4.0"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"><FONT 
      face="Times New Roman">dev-&gt;last_rx = jiffies;</FONT></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"><FONT 
      face="Times New Roman">}</FONT></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"><FONT 
      face="Times New Roman">if(</FONT></SPAN><SPAN 
      style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-ascii-font-family: " times="" 
      new="">出错</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt"><FONT 
      face="Times New Roman">)</FONT></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
      style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-ascii-font-family: " times="" 
      new="">   错误处理</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt"></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
      lang=EN-US style="FONT-SIZE: 9pt"></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
      style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-ascii-font-family: " times="" 
      new="">清除中断源;</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt"></SPAN></P>
      <P>&nbsp;</P>
      <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US 
      style="FONT-SIZE: 9pt"><FONT face="Times New Roman">}</FONT></SPAN></P>
      <P>&nbsp;</P>
      <P><FONT face="Times New Roman"></FONT>&nbsp;</P>
      <P>&nbsp;</P>
      <P><FONT face="Times New Roman"></FONT>&nbsp;</P>
      <P>&nbsp;</P>
      <P><FONT face="Times New Roman"></FONT>&nbsp;</P></TD></TR></TBODY></TABLE>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US></SPAN></P>
<P><FONT face="Times New Roman" size=3></FONT>&nbsp;</P>&nbsp;<BR><BR>
<P id=TBPingURL>Trackback: 
http://tb.blog.csdn.net/TrackBack.aspx?PostId=1341276</P><BR></DIV>
<DIV class=postFoot>
<SCRIPT src=""></SCRIPT>
[<A title=功能强大的网络收藏夹,一秒钟操作就可以轻松实现保存带来的价值、分享带来的快乐 
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(saveit=window.open('http://wz.csdn.net/storeit.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'keyit','scrollbars=no,width=590,height=300,left=75,top=20,status=no,resizable=yes'));saveit.focus();">收藏到我的网摘</A>]&nbsp;&nbsp; 
trimedia发表于 2006年10月19日 17:14:00 </DIV></DIV><LINK 
href="http://blog.csdn.net/audio1234567/Services/Pingback.aspx" rel=pingback><!--<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:dc="http://purl.org/dc/elements/1.1/"xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"><rdf:Descriptionrdf:about="http://blog.csdn.net/audio1234567/archive/2006/10/19/1341276.aspx"dc:identifier="http://blog.csdn.net/audio1234567/archive/2006/10/19/1341276.aspx"dc:title="Linux下DM9000网卡驱动实验〈二〉"trackback:ping="http://tb.blog.csdn.net/TrackBack.aspx?PostId=1341276" /></rdf:RDF>-->
<SCRIPT>function hide(){showComment();}</SCRIPT>
<BR>
<DIV class=post>
<DIV class=postTitle>相关文章:</DIV>
<UL class=postText>
  <LI><A href="http://blog.csdn.net/fengyv/archive/2006/07/01/860260.aspx" 
  target=_blank>【Linux device driver】网络设备驱动程序(二)</A> 2006-07-01 <A 
  href="http://blog.csdn.net/fengyv/" target=_blank>fengyv</A>
  <LI><A href="http://blog.csdn.net/collide/archive/2004/10/08/127781.aspx" 
  target=_blank>Linux网卡驱动程序编写</A> 2004-10-08 <A 
  href="http://blog.csdn.net/collide/" target=_blank>collide</A>
  <LI><A href="http://blog.csdn.net/robinshaw/archive/2005/07/21/430745.aspx" 
  target=_blank>(转)Linux网络驱动程序编写(二)3</A> 2005-07-21 <A 
  href="http://blog.csdn.net/robinshaw/" target=_blank>robinshaw</A>
  <LI><A href="http://blog.csdn.net/ryman/archive/2005/05/23/378975.aspx" 
  target=_blank>Sis900 驱动程序解析(zz)</A> 2005-05-23 <A 
  href="http://blog.csdn.net/ryman/" target=_blank>ryman</A>
  <LI><A href="http://blog.csdn.net/joshua_yu/archive/2006/01/27/589451.aspx" 
  target=_blank>(原创)网络处理的软中断机制分析</A> 2006-01-27 <A 
  href="http://blog.csdn.net/joshua_yu/" target=_blank>joshua_yu</A>
  <DIV align=right><A 
  href="http://blog.csdn.net/audio1234567/relatedarticles/1341276.aspx" 
  target=_blank>更多内容...</A></DIV></LI></UL></DIV><BR><BR><BR>
<DIV class=post id=csdn_zhaig_ad_yahoo></DIV>
<SCRIPT type=text/javascript>document.write("<img src=http://counter.csdn.net/pv.aspx?id=24 border=0 width=0 height=0>");</SCRIPT>
<SPAN class=PreAndNext id=viewpost.ascx_PreviousAndNextEntriesDown>
<DIV align=center><A 
href="http://blog.csdn.net/audio1234567/archive/2006/10/19/1341277.aspx">上一篇:&nbsp;Linux下DM9000网卡驱动实验〈三〉</A>&nbsp;|&nbsp;<A 
href="http://blog.csdn.net/audio1234567/archive/2006/10/19/1341273.aspx">下一篇:&nbsp;Linux下DM9000网卡驱动实验〈一〉</A></DIV></SPAN><SPAN 
id=Anthem_Comments.ascx_ltlComments__><SPAN id=Comments.ascx_ltlComments><BR>
<DIV id=comments>
<H3></H3>没有评论。 </DIV></SPAN></SPAN>
<SCRIPT language=javascript>
ad_width=468;
ad_height=60;
adcss=2;
unionuser=19;
ad_type='j';
count=5; 
</SCRIPT>

<DIV>
<SCRIPT language=javascript 
src="Linux下DM9000网卡驱动实验〈二〉 - Orange - CSDNBlog.files/showads.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript 
src="Linux下DM9000网卡驱动实验〈二〉 - Orange - CSDNBlog.files/showgm.js" 
type=text/javascript></SCRIPT>
</DIV>
<DIV class=CommentForm id=commentform>
<H3>发表评论 </H3>
<DIV id=Anthem_PostComment.ascx_CommentUpdatePanel__>
<DIV id=PostComment.ascx_CommentUpdatePanel>
<TABLE class=CommentForm>
  <TBODY>
  <TR>
    <TD width=69 height=0></TD>
    <TD></TD></TR>
  <TR>
    <TD width=70>大名:</TD>
    <TD align=left><INPUT id=PostComment.ascx_tbName style="WIDTH: 300px" 
      disabled maxLength=32 size=40 value=upman111 name=PostComment.ascx:tbName> 
      <SPAN id=PostComment.ascx_RequiredFieldValidator2 
      style="DISPLAY: none; COLOR: red" initialvalue="" 
      evaluationfunction="RequiredFieldValidatorEvaluateIsValid" 
      display="Dynamic" errormessage="<br>请输入尊姓大名" 
      controltovalidate="PostComment.ascx_tbName"><BR>请输入尊姓大名</SPAN> </TD></TR>
  <TR>
    <TD width=70>网址:</TD>
    <TD align=left><INPUT id=PostComment.ascx_tbUrl style="WIDTH: 300px" 
      maxLength=256 size=40 name=PostComment.ascx:tbUrl> </TD></TR>
  <TR>
    <TD colSpan=3>评论&nbsp; <SPAN id=PostComment.ascx_RequiredFieldValidator3 
      style="DISPLAY: none; COLOR: red" initialvalue="" 
      evaluationfunction="RequiredFieldValidatorEvaluateIsValid" 
      display="Dynamic" errormessage="<br>请输入评论" 
      controltovalidate="PostComment.ascx_tbComment"><BR>请输入评论</SPAN> <BR><TEXTAREA id=PostComment.ascx_tbComment style="WIDTH: 381px; HEIGHT: 193px" name=PostComment.ascx:tbComment rows=10 cols=50></TEXTAREA> 
    </TD></TR>
  <TR>
    <TD colSpan=3><SPAN id=Anthem_PostComment.ascx_btnSubmit__><INPUT language=javascript class=Button id=PostComment.ascx_btnSubmit onclick="javascript:Anthem_FireCallBackEvent(this,event,'PostComment.ascx:btnSubmit','',true,'','','正在处理...',false,null,null,null,true,true);return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;PostComment.ascx:btnSubmit&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" type=submit value=提交 name=PostComment.ascx:btnSubmit></SPAN>&nbsp;&nbsp;&nbsp; 
    </TD></TR>
  <TR>
    <TD colSpan=3><SPAN id=PostComment.ascx_Message 
    style="COLOR: red"></SPAN></TD></TR></TBODY></TABLE></DIV></DIV></DIV></DIV>
<P id=footer>Powered by: <BR><A id=Footer1_Hyperlink2 
href="http://scottwater.com/blog" name=Hyperlink1><IMG 
src="Linux下DM9000网卡驱动实验〈二〉 - Orange - CSDNBlog.files/100x30_Logo.gif" 
border=0></A> <A id=Footer1_Hyperlink3 href="http://asp.net/" 
name=Hyperlink1><IMG 
src="Linux下DM9000网卡驱动实验〈二〉 - Orange - CSDNBlog.files/PoweredByAsp.Net.gif" 
border=0></A> <BR>Copyright © trimedia </P>
<SCRIPT 
src="Linux下DM9000网卡驱动实验〈二〉 - Orange - CSDNBlog.files/counter.js"></SCRIPT>

<SCRIPT type=text/javascript>
<!--
var Page_Validators =  new Array(document.getElementById("PostComment.ascx_RequiredFieldValidator2"), document.getElementById("PostComment.ascx_RequiredFieldValidator3"));
// -->
</SCRIPT>
<INPUT id=__EVENTVALIDATION type=hidden 
value=/wEWBQL+raDpAgKqtOi0AwLAsuLbDAKi687YCQKG6K6RCHrZdbdDQIH9YeG5hN3MZV7FHAgf 
name=__EVENTVALIDATION>
<SCRIPT type=text/javascript>
<!--
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
// -->
</SCRIPT>
 </FORM>
<SCRIPT language=javascript type=text/javascript>
	<!--
	    try
        {
	        hide();
        }
        catch(e){}
	//-->
    </SCRIPT>
</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -