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.

188 lines
8.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="acpisim_files/filelist.xml">
  10. <title>ACPISIM</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. p
  51. {font-size:12.0pt;
  52. font-family:"Times New Roman";
  53. mso-fareast-font-family:"Times New Roman";}
  54. pre
  55. {margin-top:0in;
  56. margin-bottom:0in;
  57. margin-bottom:.0001pt;
  58. font-size:10.0pt;
  59. font-family:"Courier New";
  60. mso-fareast-font-family:"Times New Roman";}
  61. span.SpellE
  62. {mso-style-name:"";
  63. mso-spl-e:yes;}
  64. span.GramE
  65. {mso-style-name:"";
  66. mso-gram-e:yes;}
  67. @page Section1
  68. {size:8.5in 11.0in;
  69. margin:1.0in 1.25in 1.0in 1.25in;
  70. mso-header-margin:.5in;
  71. mso-footer-margin:.5in;
  72. mso-paper-source:0;}
  73. div.Section1
  74. {page:Section1;}
  75. -->
  76. </style>
  77. <!--[if gte mso 10]>
  78. <style>
  79. /* Style Definitions */
  80. table.MsoNormalTable
  81. {mso-style-name:"Table Normal";
  82. mso-tstyle-rowband-size:0;
  83. mso-tstyle-colband-size:0;
  84. mso-style-noshow:yes;
  85. mso-style-parent:"";
  86. mso-padding-alt:0in 5.4pt 0in 5.4pt;
  87. mso-para-margin:0in;
  88. mso-para-margin-bottom:.0001pt;
  89. mso-pagination:widow-orphan;
  90. font-size:10.0pt;
  91. font-family:"Times New Roman";}
  92. </style>
  93. <![endif]-->
  94. </head>
  95. <body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
  96. <div class=Section1>
  97. <h2><span style='font-family:Verdana'>ACPISIM<o:p></o:p></span></h2>
  98. <p><span style='font-size:10.0pt;font-family:Arial;color:red'>[This is
  99. preliminary documentation and subject to change.]</span><span style='font-size:
  100. 10.0pt;font-family:Verdana'><o:p></o:p></span></p>
  101. <h3><span style='font-family:Verdana'>SUMMARY<o:p></o:p></span></h3>
  102. <p><span style='font-size:10.0pt;font-family:Verdana'>This is a 3<sup>rd</sup> party
  103. ACPI Operation Region provider driver sample.<span
  104. style='mso-spacerun:yes'>&nbsp; </span>This sample is compatible with both
  105. 32bit and 64bit platforms.<o:p></o:p></span></p>
  106. <h3><span style='font-family:Verdana'>BUILDING THE SAMPLE<o:p></o:p></span></h3>
  107. <p><span style='font-size:10.0pt;font-family:Verdana'>The sample is build with
  108. the standard DDK BUILD utility in the standard checked or free DDK build
  109. environment.<span style='mso-spacerun:yes'>&nbsp; </span>Simply <span
  110. class=GramE>type build</span> from the <a
  111. href="file:///\\ntddk\src\wdm\acpi\acpisim\driver">\\ntddk\src\wdm\acpi\acpisim\driver</a>
  112. directory.<span style='mso-spacerun:yes'>&nbsp; </span>A successful build
  113. produces ACPISIM.SYS.<o:p></o:p></span></p>
  114. <p><span style='font-size:10.0pt;font-family:Verdana'>An installation file,
  115. ACPISIM.INF is provided in the <a href="file:///\\ntddk\src\wdm\acpi\acpisim\inf">\\ntddk\src\wdm\acpi\acpisim\inf</a>
  116. directory.<span style='mso-spacerun:yes'>&nbsp; </span>Sample ASL required to
  117. enumerate the 3<sup>rd</sup> party operation region device is included in the <a
  118. href="file:///\\ntddk\src\wdm\acpi\acpisim\asl">\\ntddk\src\wdm\acpi\acpisim\asl</a>
  119. directory.<span style='mso-spacerun:yes'>&nbsp; </span>Install ACPISIM.SYS by
  120. compiling <span class=GramE>a BIOS</span> containing a device with the PnP ID
  121. of &#8216;ASIM0000&#8217;, and install the driver using the INF when Windows
  122. enumerates the virtual device.<o:p></o:p></span></p>
  123. <h3><span style='font-family:Verdana'>RESOURCES<o:p></o:p></span></h3>
  124. <p><span style='font-size:10.0pt;font-family:Verdana'>See <a
  125. href="http://www.teleport.com/~acpi">http://www.teleport.com/~acpi</a> for more
  126. information on the ACPI Specification, and 3<sup>rd</sup> party (vendor
  127. specific) operation regions.<o:p></o:p></span></p>
  128. <h3><span style='font-family:Verdana'>CODE TOUR<o:p></o:p></span></h3>
  129. <h4><span style='font-family:Verdana'>File Manifest<o:p></o:p></span></h4>
  130. <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
  131. class=SpellE>Acpisim.c</span><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Routines for handling custom <span
  132. class=SpellE>IOCTLs</span>, and op-region handlers</pre><pre><span
  133. class=SpellE>Acpisim.h</span> <span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp; </span>Contains public function prototypes</pre><pre><span
  134. class=SpellE>Acpisim.rc</span><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp; </span>Resource template</pre><pre><span
  135. class=SpellE>Acpisim.inf</span><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp; </span>Install file for ACPI Simulation sample</pre><pre><span
  136. class=SpellE>Acpisim.lib</span><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp; </span>Contains compiled driver code to handle standard WDM driver functions</pre><pre><span
  137. class=SpellE>Asimlib.h</span><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Contains public function prototypes for ACPISIM library</pre><pre><span
  138. class=SpellE>Makefile</span><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Standard Windows NT <span
  139. class=SpellE>makefile</span></pre><pre>Sources<span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Standard Windows NT sources</pre><pre>Acpisim.htm<span
  140. style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp; </span>The documentation for these samples (this file). </pre><pre><span
  141. class=SpellE>Basetbl.asl</span><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp; </span>Sample ASL showing how to build a virtual device that uses a 3<sup>rd</sup> party</pre><pre><span
  142. style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
  143. class=GramE>operation</span> region handler.</pre><pre><o:p>&nbsp;</o:p></pre>
  144. <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
  145. style='font-size:10.0pt;font-family:"Courier New"'><a href="#top"><span
  146. style='font-family:Verdana'>Top of page</span></a></span><span
  147. style='font-size:10.0pt;font-family:Verdana;mso-bidi-font-family:"Courier New"'>
  148. <o:p></o:p></span></p>
  149. <pre><o:p>&nbsp;</o:p></pre>
  150. <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=624
  151. style='width:6.5in;mso-cellspacing:0in'>
  152. <tr style='mso-yfti-irow:0;mso-yfti-lastrow:yes;height:1.5pt'>
  153. <td style='background:aqua;padding:.75pt .75pt .75pt .75pt;height:1.5pt'>
  154. <p class=MsoNormal><o:p>&nbsp;</o:p></p>
  155. </td>
  156. </tr>
  157. </table>
  158. <pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre>
  159. <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
  160. style='font-size:7.5pt;font-family:"MS Sans Serif";mso-bidi-font-family:"Courier New"'>&copy;
  161. 2001 Microsoft Corporation</span><span style='font-size:10.0pt;font-family:
  162. Verdana;mso-bidi-font-family:"Courier New"'> <o:p></o:p></span></p>
  163. </div>
  164. </body>
  165. </html>