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

📄 ndis_6.0_miniport__driver.aspx.htm

📁 实现一个千兆以太网卡的NDIS的miniport驱动实例源代码 对于那些希望写一个NDIS 6.0的miniport设备驱动的开发人员来说
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<div class="MI" id="Section53"><a href="http://www.codeproject.com/KB/macros/">Macros and Add-ins</a></div>
<div class="MI" id="Section54"><a href="http://www.codeproject.com/KB/tips/">Programming Tips</a></div>
<div class="MI" id="Section55"><a href="http://www.codeproject.com/KB/string/">String handling</a></div>
<div class="MI" id="Section58"><a href="http://www.codeproject.com/KB/threads/">Threads, Processes &amp; IPC</a></div>
<div class="MI" id="Section59"><a href="http://www.codeproject.com/KB/winhelp/">WinHelp / HTMLHelp</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=10" onclick="return ToggleMenu('Chapter10');">Graphics / Design</a></div>
<div class="MenuSectionBlock" id="Chapter10" style="display: none;">
<div class="MI" id="Section40"><a href="http://www.codeproject.com/KB/expression/">Expression</a></div>
<div class="MI" id="Section114"><a href="http://www.codeproject.com/KB/usability/">Usability</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=11" onclick="return ToggleMenu('Chapter11');">Development Lifecycle</a></div>
<div class="MenuSectionBlock" id="Chapter11" style="display: none;">
<div class="MI" id="Section51"><a href="http://www.codeproject.com/KB/debug/">Debug Tips</a></div>
<div class="MI" id="Section39"><a href="http://www.codeproject.com/KB/architecture/">Design and Architecture</a></div>
<div class="MI" id="Section112"><a href="http://www.codeproject.com/KB/install/">Installation</a></div>
<div class="MI" id="Section41"><a href="http://www.codeproject.com/KB/work/">Work Issues</a></div>
<div class="MI" id="Section126"><a href="http://www.codeproject.com/KB/codegen/">Code Generation</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=7" onclick="return ToggleMenu('Chapter7');">General Reading</a></div>
<div class="MenuSectionBlock" id="Chapter7">
<div class="MI" id="Section60"><a href="http://www.codeproject.com/KB/books/">Book Chapters</a></div>
<div class="MI" id="Section61"><a href="http://www.codeproject.com/KB/book-reviews/">Book Reviews</a></div>
<div class="MI" id="Section109"><a href="http://www.codeproject.com/KB/hardware-review/">Hardware Reviews</a></div>
<div class="MI" id="Section63"><a href="http://www.codeproject.com/KB/interviews/">Interviews</a></div>
<div class="MI" id="Section62"><a href="http://www.codeproject.com/KB/scrapbook/">Scrapbook</a></div>
<div class="MIS" id="Section48"><a href="http://www.codeproject.com/KB/system/">Hardware &amp; System</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=12" onclick="return ToggleMenu('Chapter12');">Third Party Products</a></div>
<div class="MenuSectionBlock" id="Chapter12" style="display: none;">
<div class="MI" id="Section65"><a href="http://www.codeproject.com/KB/showcase/">Product Showcase</a></div>
<div class="MI" id="Section124"><a href="http://www.codeproject.com/KB/solution-center/">Solution Center</a></div>
</div>
</div>
<br>
<div class="MenuCat">Feature Zones</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Zones/Install">Installshield 2008</a></div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Zones/IBM">IBM DeveloperWorks</a></div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Zones/WhitePapers">WhitePapers</a></div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Zones/CodeGeneration">Code Generation</a></div>
<br>

			
			<iframe src="NDIS_6.0_miniport__driver.aspx_files/ServeThirdParty_003.htm" frameborder="0" height="600" scrolling="no" width="160"></iframe>		
			<img src="NDIS_6.0_miniport__driver.aspx_files/t.gif" alt="" height="1" width="160">
		</td>
		<td class="ArticlePane" valign="top">

			
<table class="SearchHeaderBar" cellspacing="0" width="100%">
<tbody><tr>
<td style="white-space: nowrap; width: 60%;" align="right" valign="middle">
<form method="get" action="/info/search.aspx" name="Search" style="margin: 0pt;">
<b>Search &nbsp;</b>
<input class="SmallText" name="artkw" style="width: 200px;">
<select class="SmallText" style="font-weight: bold;" name="sbo">
<option value="kw">Articles</option>
<!--<option value="au">Authors</option>-->
<option value="fm">Messages</option>
</select>
<input class="SmallText" style="font-weight: bold;" value=" Go! " type="submit"> &nbsp;
</form>
</td>

<td class="TinyText" style="white-space: nowrap;">
<a href="http://www.codeproject.com/info/search.aspx">Advanced Search</a><br>
<a href="http://www.codeproject.com/script/Content/SiteMap.aspx">Sitemap</a>

</td>
</tr>
</tbody></table>

			<span id="ctl00_ResultMessage"></span>
			
			<div id="ctl00_ArtDiv">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">	
			<tbody><tr valign="top">
				<td valign="top">
				    
<table>

</table>



					
<div class="SmallText" style="white-space: nowrap;">
<img src="NDIS_6.0_miniport__driver.aspx_files/print.gif" alt="print" style="vertical-align: middle;" height="16" width="16">
<a id="ctl00_ArticleHeaderLinks_PrintLnk" href="http://www.codeproject.com/KB/system/NDIS_6.0_miniport__driver.aspx?display=Print">Print</a> &nbsp;

<img src="NDIS_6.0_miniport__driver.aspx_files/report.gif" alt="Broken Article?" style="vertical-align: middle;" height="16" width="16">
<a id="ctl00_ArticleHeaderLinks_BrokenLnk" href="http://www.codeproject.com/script/Articles/Report.aspx?aid=24384">Report Article</a> &nbsp;


<img src="NDIS_6.0_miniport__driver.aspx_files/link.png" alt="Bookmark" style="vertical-align: middle;" height="16" width="16">
<a href="http://www.codeproject.com/script/Bookmarks/Add.aspx?&amp;obid=24384&amp;obtid=2" name="ajaxBookmarkLink" id="bm_24384,2" class="" onclick="return bookmarkMe(24384, 2);">Bookmark Me </a><span id="noteMsg" class="TinyText" style="visibility: hidden;"></span><span id="ctl00_ArticleHeaderLinks_ArticleBmk_Message"></span>
 &nbsp;

<img src="NDIS_6.0_miniport__driver.aspx_files/discuss.gif" alt="Discuss" style="vertical-align: middle;" height="16" width="15">
<a href="#_comments">Discuss</a> &nbsp;

<img src="NDIS_6.0_miniport__driver.aspx_files/mail.gif" alt="Recommend Article" style="vertical-align: middle;" height="16" width="16">
<a id="ctl00_ArticleHeaderLinks_Recommend" href="http://www.codeproject.com/script/common/TellFriend.aspx?obtid=2&amp;obid=24384">Send to a friend</a>	
</div>
				</td>
				<td style="text-align: right;">
				<table id="CurRat"><tbody><tr><td>            
<table><tbody><tr>
<td style="white-space: nowrap;" class="SmallText" align="right"> 
<span id="ctl00_ArticleRating_VoteLabel">7 votes for this Article.</span></td>
<td><table border="1" cellpadding="0" cellspacing="0">
			<tbody><tr>
				<td bgcolor="White" height="7" width="20"><img src="NDIS_6.0_miniport__driver.aspx_files/red.gif" align="middle" border="0" height="7" width="20"></td>
				<td bgcolor="White" height="7" width="20"><img src="NDIS_6.0_miniport__driver.aspx_files/red.gif" align="middle" border="0" height="7" width="20"></td>
				<td bgcolor="White" height="7" width="20"><img src="NDIS_6.0_miniport__driver.aspx_files/red.gif" align="middle" border="0" height="7" width="20"></td>
				<td bgcolor="White" height="7" nowrap="nowrap" width="20"><img src="NDIS_6.0_miniport__driver.aspx_files/red.gif" align="middle" border="0" height="7" width="12"></td>
				<td bgcolor="White" height="7" width="20"><img src="NDIS_6.0_miniport__driver.aspx_files/white.gif" align="middle" border="0" height="7" width="20"></td>
			</tr>
		</tbody></table>
		</td>
</tr>
<tr id="ctl00_ArticleRating_PopularityRow">
			<td colspan="2" class="SmallText" align="right">
<a id="ctl00_ArticleRating_PopularityLnk" title="Calculated as rating x Log10(# votes)" href="http://www.codeproject.com/script/Articles/TopArticles.aspx?ta_so=1">Popularity: 3.02</a>
<span id="ctl00_ArticleRating_PopularityLbl"></span><span id="ratingVal">Rating: <b>3.58</b> out of 5</span></td>
		</tr>
		
</tbody></table>



</td>
				<td>            
<div>
<table class="HistTable" title="Voting Distribution. Recent data only"><tbody><tr><td><img src="NDIS_6.0_miniport__driver.aspx_files/pollcol.gif" alt="1 vote, 14.3%" title="1 vote, 14.3%" border="0" height="6" width="10"><br>1</td>
<td><img src="NDIS_6.0_miniport__driver.aspx_files/t.htm" alt="0 votes, 0.0%" title="0 votes, 0.0%" border="0" height="1" width="10"><br>2</td>
<td><img src="NDIS_6.0_miniport__driver.aspx_files/pollcol.gif" alt="1 vote, 14.3%" title="1 vote, 14.3%" border="0" height="6" width="10"><br>3</td>
<td><img src="NDIS_6.0_miniport__driver.aspx_files/pollcol.gif" alt="3 votes, 42.9%" title="3 votes, 42.9%" border="0" height="20" width="10"><br>4</td>
<td><img src="NDIS_6.0_miniport__driver.aspx_files/pollcol.gif" alt="2 votes, 28.6%" title="2 votes, 28.6%" border="0" height="13" width="10"><br>5</td>
</tr></tbody></table>
</div>



</td></tr></tbody></table>
				</td>
			</tr>
			</tbody></table>
			
			
			
			
						
			
			
			<div id="ctl00_UneditedRow" class="SmallText" style="border-top: 1px dashed rgb(255, 153, 0); border-bottom: 1px dashed rgb(255, 153, 0); margin: 5px; padding: 5px;">
				<b>Note:</b> This is an unedited contribution. If this article is inappropriate,
				needs attention or copies someone else's work without reference then please
				<a id="ctl00_ReportProblem" href="http://www.codeproject.com/script/Articles/Report.aspx?aid=24384">Report This Article</a>
			</div>
			
			
			
			
			
			<span id="intelliTXT">
			<div id="contentdiv">
			
			<!-- Main Page Contents Start -->
			

<!-- Article Starts -->


<ul class="Download">
<li>
<h6><a href="http://www.codeproject.com/KB/system/NDIS_6.0_miniport__driver/release.zip">Download release - 342.43 KB</a> </h6>
</li>
</ul>

<h6><a href="http://www.codeproject.com/KB/system/NDIS_6.0_miniport__driver/LSO-jumbo.support-added.zip">Download LSO-jumbo.support-added.zip - 91.88 KB </a></h6>

<h6><a href="http://www.codeproject.com/KB/system/NDIS_6.0_miniport__driver/PM-support-added.zip">Download PM-support-added.zip - 91.65 KB </a></h6>

<h2>Introduction</h2>

<p>For those who aspire to write an NDIS 6.0 miniport windows ( Desktop
PFs ) device driver for a new or existing ethernet controller, the only
sample source code available is the E100BEX found in the Microsoft DDK.
There are a couple of other type of NDIS drivers like IM available in
the net, but not any miniport drivers for a NIC, AFAIK.</p>

<p>The E100BEX sample, hereafter referred to as e100, is for the intel
line of etherexpress 100Mbs NIC cards. So if one wants to understand
this e100 by live debugging, apart from static code analysis, he/she
has to have this type of card, which is rarely found nowadays IMO.</p>

<p>So, I thought, why not write an NDIS 6 driver for a different
popular ethernet controller easily found nowadays. I chose the Realtek
family of gigabit ethernet controllers 8111/8168/8169/8110 found as a
PCI card cheaply around $9 ( brands like hawkings, startech )and also
as LOM ( Lan On Motherboard ) in many of the modern motherboards. </p>

<h2>Background</h2>

<p>The approach I took was -- Instead of starting from scratch, port the Microsoft DDK sample e100, from intel to realtek h/w. <br>The
benefit is -- The well tested e100 core and NDIS-related logic, the
various state-machines, various synchronization mechanisms are ALL

⌨️ 快捷键说明

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