Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

213 lines
9.1 KiB

  1. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  2. xmlns:w="urn:schemas-microsoft-com:office:word"
  3. xmlns="http://www.w3.org/TR/REC-html40">
  4. <head>
  5. <meta http-equiv=Content-Type content="text/html; charset=us-ascii">
  6. <meta name=ProgId content=Word.Document>
  7. <meta name=Generator content="Microsoft Word 10">
  8. <meta name=Originator content="Microsoft Word 10">
  9. <link rel=File-List href="agp440_files/filelist.xml">
  10. <title>AGP440</title>
  11. <!--[if gte mso 9]><xml>
  12. <w:WordDocument>
  13. <w:SpellingState>Clean</w:SpellingState>
  14. <w:GrammarState>Clean</w:GrammarState>
  15. <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
  16. </w:WordDocument>
  17. </xml><![endif]-->
  18. <style>
  19. <!--
  20. /* Font Definitions */
  21. @font-face
  22. {font-family:Verdana;
  23. panose-1:2 11 6 4 3 5 4 4 2 4;
  24. mso-font-charset:0;
  25. mso-generic-font-family:swiss;
  26. mso-font-pitch:variable;
  27. mso-font-signature:536871559 0 0 0 415 0;}
  28. @font-face
  29. {font-family:"MS Sans Serif";
  30. panose-1:0 0 0 0 0 0 0 0 0 0;
  31. mso-font-alt:"Times New Roman";
  32. mso-font-charset:0;
  33. mso-generic-font-family:roman;
  34. mso-font-format:other;
  35. mso-font-pitch:auto;
  36. mso-font-signature:0 0 0 0 0 0;}
  37. /* Style Definitions */
  38. p.MsoNormal, li.MsoNormal, div.MsoNormal
  39. {mso-style-parent:"";
  40. margin:0in;
  41. margin-bottom:.0001pt;
  42. mso-pagination:widow-orphan;
  43. font-size:12.0pt;
  44. font-family:"Times New Roman";
  45. mso-fareast-font-family:"Times New Roman";}
  46. a:link, span.MsoHyperlink
  47. {color:blue;
  48. text-decoration:underline;
  49. text-underline:single;}
  50. a:visited, span.MsoHyperlinkFollowed
  51. {color:blue;
  52. text-decoration:underline;
  53. text-underline:single;}
  54. p
  55. {mso-margin-top-alt:auto;
  56. margin-right:0in;
  57. mso-margin-bottom-alt:auto;
  58. margin-left:0in;
  59. mso-pagination:widow-orphan;
  60. font-size:12.0pt;
  61. font-family:"Times New Roman";
  62. mso-fareast-font-family:"Times New Roman";}
  63. pre
  64. {margin:0in;
  65. margin-bottom:.0001pt;
  66. mso-pagination:widow-orphan;
  67. tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
  68. font-size:10.0pt;
  69. font-family:"Courier New";
  70. mso-fareast-font-family:"Times New Roman";}
  71. span.SpellE
  72. {mso-style-name:"";
  73. mso-spl-e:yes;}
  74. span.GramE
  75. {mso-style-name:"";
  76. mso-gram-e:yes;}
  77. @page Section1
  78. {size:8.5in 11.0in;
  79. margin:1.0in 1.25in 1.0in 1.25in;
  80. mso-header-margin:.5in;
  81. mso-footer-margin:.5in;
  82. mso-paper-source:0;}
  83. div.Section1
  84. {page:Section1;}
  85. -->
  86. </style>
  87. <!--[if gte mso 10]>
  88. <style>
  89. /* Style Definitions */
  90. table.MsoNormalTable
  91. {mso-style-name:"Table Normal";
  92. mso-tstyle-rowband-size:0;
  93. mso-tstyle-colband-size:0;
  94. mso-style-noshow:yes;
  95. mso-style-parent:"";
  96. mso-padding-alt:0in 5.4pt 0in 5.4pt;
  97. mso-para-margin:0in;
  98. mso-para-margin-bottom:.0001pt;
  99. mso-pagination:widow-orphan;
  100. font-size:10.0pt;
  101. font-family:"Times New Roman";}
  102. </style>
  103. <![endif]-->
  104. </head>
  105. <body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
  106. <div class=Section1>
  107. <h2><span style='font-family:Verdana'>AGP440<o:p></o:p></span></h2>
  108. <p><span style='font-size:10.0pt;font-family:Arial;color:red'>[This is
  109. preliminary documentation and subject to change.]</span><span style='font-size:
  110. 10.0pt;font-family:Verdana'><o:p></o:p></span></p>
  111. <h3><span style='font-family:Verdana'>SUMMARY<o:p></o:p></span></h3>
  112. <p><span style='font-size:10.0pt;font-family:Verdana'>This is an AGP chipset
  113. driver sample that shows how to write an AGP driver. The sample works as a
  114. driver for the Intel&reg; 440LX/BX&reg; chipset. Currently there is no
  115. corresponding hardware for any 64-bit platform.<o:p></o:p></span></p>
  116. <h3><span style='font-family:Verdana'>BUILDING THE SAMPLE<o:p></o:p></span></h3>
  117. <p><span style='font-size:10.0pt;font-family:Verdana'>The sample is built with
  118. the standard DDK BUILD utility in the standard checked or free DDK build
  119. environment. Simply <span class=GramE>type <b>build</b></span> from the
  120. \\Ntddk\Src\Kernel\Agp\Agp440 directory. A successful build produces
  121. Agp440.sys. <o:p></o:p></span></p>
  122. <p><span style='font-size:10.0pt;font-family:Verdana'>An installation file,
  123. Agp440.inf, is provided. Install Agp440.sys by creating an installation
  124. directory containing the Agp440.sys binary and Agp440.inf.<o:p></o:p></span></p>
  125. <p><span style='font-size:10.0pt;font-family:Verdana'>In the .<span
  126. class=SpellE>inf</span> file, change the names and PCI IDs as necessary for
  127. your setup. Then, go into <b>Device Manager</b> and right-click on the PCI-PCI
  128. bridge that represents your AGP <span class=GramE>bridge</span>. Select <b>Properties</b>.
  129. Then select the <b>Driver</b> tab and click the <b>Update Driver</b> button. Follow
  130. the prompts in the Update Driver wizard. On the <b>Locate Driver Files</b>
  131. page, select <b>Specify a Location</b>, and enter the location of your .<span
  132. class=SpellE>inf</span> and driver. <o:p></o:p></span></p>
  133. <h3><span style='font-family:Verdana'>COMPATIBILITY<o:p></o:p></span></h3>
  134. <p><span style='font-size:10.0pt;font-family:Verdana'>Although the Agp440.sys
  135. driver, when built in the XP build environment (in conjunction with AGPLIB),
  136. will also run on Win2K, and <span style='color:#333333'>Microsoft<sup>&reg;</sup>
  137. Windows<sup>&reg;</sup> Server 2003</span>, this has not been extensively
  138. tested. Conversely, when the Agp440.sys driver (and AGPLIB) are built in the <span
  139. style='color:#333333'>Windows Server 2003</span> build environment, it will not
  140. use the obsolete HAL APIs <span class=SpellE>HalGet/SetBusDataByOffset</span>,
  141. but this type of driver is only compatible on OS versions that support the new
  142. AGP_TARGET_BUS_INTERFACE_STANDARD, i.e., XPSP2, <span style='color:#333333'>Windows
  143. Server 2003</span>, and higher.<span style='mso-spacerun:yes'>&nbsp;
  144. </span>Therefore, if your goal is building a driver for test and inclusion in a
  145. future OS release, you should build in the <span style='color:#333333'>Windows
  146. Server 2003 </span>build environment, whereas if your goal is to produce a
  147. binary that is compatible across the broadest range of OS releases, you should
  148. build in the XP build environment.<span style='mso-spacerun:yes'>&nbsp;
  149. </span>(See Agplib.htm for additional compatibility details.)<o:p></o:p></span></p>
  150. <h3><span style='font-family:Verdana'>RESOURCES<o:p></o:p></span></h3>
  151. <p><span style='font-size:10.0pt;font-family:Verdana'>See <a
  152. href="http://intel.com/design/chipsets/440bx/index.htm">http://intel.com/design/chipsets/440bx/index.htm</a>
  153. for more information on the AGP chipset. <o:p></o:p></span></p>
  154. <h3><span style='font-family:Verdana'>CODE TOUR<o:p></o:p></span></h3>
  155. <h4><span style='font-family:Verdana'>File Manifest<o:p></o:p></span></h4>
  156. <pre><u>File<span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Description<o:p></o:p></u></pre><pre><o:p>&nbsp;</o:p></pre><pre><span
  157. class=SpellE>Gart.c</span> <span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Routines for querying and setting the Intel 440xx GART aperture</pre><pre>Agp440.h <span
  158. style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Additional GART aperture control routines</pre><pre><span
  159. class=SpellE>Agplib.h</span><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Private <span
  160. class=GramE>header</span> file for the common AGP library</pre><pre>Agp440.inf<span
  161. style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp; </span>Install file for AGP sample</pre><pre>Agp440.rc<span
  162. style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Resource template</pre><pre><span
  163. class=SpellE>Makefile</span><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Standard Windows NT <span
  164. class=SpellE>makefile</span></pre><pre>Agp440.htm<span style='mso-tab-count:
  165. 1'>&nbsp;&nbsp;&nbsp;&nbsp; </span>The documentation for these samples (this file). </pre><pre><o:p>&nbsp;</o:p></pre>
  166. <p align=center style='text-align:center;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span
  167. style='font-size:10.0pt;font-family:"Courier New"'><a href="#top"><span
  168. style='font-family:Verdana'>Top of page</span></a></span><span
  169. style='font-size:10.0pt;font-family:Verdana;mso-bidi-font-family:"Courier New"'>
  170. <o:p></o:p></span></p>
  171. <pre><o:p>&nbsp;</o:p></pre>
  172. <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=624
  173. style='width:6.5in;mso-cellspacing:0in;mso-padding-alt:0in 5.4pt 0in 5.4pt'>
  174. <tr style='mso-yfti-irow:0;mso-yfti-lastrow:yes;height:1.5pt'>
  175. <td style='background:aqua;padding:.75pt .75pt .75pt .75pt;height:1.5pt'>
  176. <p class=MsoNormal><o:p>&nbsp;</o:p></p>
  177. </td>
  178. </tr>
  179. </table>
  180. <pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre>
  181. <p style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span
  182. style='font-size:7.5pt;font-family:"MS Sans Serif";mso-bidi-font-family:"Courier New"'>&copy;
  183. 1999 Microsoft Corporation</span><span style='font-size:10.0pt;font-family:
  184. Verdana;mso-bidi-font-family:"Courier New"'> <o:p></o:p></span></p>
  185. </div>
  186. </body>
  187. </html>