…
|
||
---|---|---|
.. | ||
acpimof.def | ||
acpimof.mof | ||
acpimof.rc | ||
device.asl | ||
makefile | ||
makefile.inc | ||
readme.htm | ||
sources | ||
wmi-acpi.htm |
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=windows-1252"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 9"> <meta name=Originator content="Microsoft Word 9"> <link rel=File-List href="./readme_files/filelist.xml"> <title>WMI ACPI Mapper</title> <!--[if gte mso 9]><xml> <o:DocumentProperties> <o:LastAuthor>Alan Warwick</o:LastAuthor> <o:Revision>3</o:Revision> <o:TotalTime>1</o:TotalTime> <o:Created>2001-02-09T22:24:00Z</o:Created> <o:LastSaved>2001-02-09T22:26:00Z</o:LastSaved> <o:Pages>1</o:Pages> <o:Words>324</o:Words> <o:Characters>1852</o:Characters> <o:Company>Microsoft Internal</o:Company> <o:Lines>15</o:Lines> <o:Paragraphs>3</o:Paragraphs> <o:CharactersWithSpaces>2274</o:CharactersWithSpaces> <o:Version>9.3821</o:Version> </o:DocumentProperties> </xml><![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:"MS Mincho"; panose-1:2 2 6 9 4 2 5 8 3 4; mso-font-alt:"\FF2D\FF33 \660E\671D"; mso-font-charset:128; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:-1610612033 1757936891 16 0 131231 0;} @font-face {font-family:"\@MS Mincho"; panose-1:2 2 6 9 4 2 5 8 3 4; mso-font-charset:128; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:-1610612033 1757936891 16 0 131231 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p.MsoPlainText, li.MsoPlainText, div.MsoPlainText {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Courier New"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 65.95pt 1.0in 65.95pt; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style> </head> <body lang=EN-US style='tab-interval:.5in'> <div class=Section1> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>This directory contains files that allow an ACPI bios developer to add <o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>instrumentation from within ASL code. ASL code can expose data blocks, methods<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>and events via WMI by leveraging the WMIACPI.SYS driver. More information<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>about the mechanics of writing ASL to expose instrumentation information is<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>available in wmi-acpi.doc or on <o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>http://www.microsoft.com/HWDev/MANAGEABILITY/wmi-acpi.htm.<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>Device.ASL - ASL code that can be included in the acpi bios that exposes <o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0> </span>a set of packages, strings, data, methods and events.<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>acpimof.mof - Managed Object Format file that contains a description<span style="mso-spacerun: yes"><3E> </span>of the <o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0> </span>data blocks, methods and events exposed. This description is<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0> </span>required so that WMI is able to access the data blocks, methods<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0> </span>and events.<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>acpimof.rc, acpimof.def - FIles required to build acpimof.dll, a resource only<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0> </span>dll.<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>makefile, sources, makefile.inc - build glue<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>wmi-acpi.doc - White paper describing how to add instrumentation to ASL code.<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>acpimof.vbs - Built at the same time as acpimof.dll, this file contains a<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0> </span>VBScript applet that will query all classes specified in the<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0> </span>acpimof.mof file.<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>To add the sample code to your acpi bios and access via WMI:<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>1. Include the contents of device.asl to your asl source and rebuild the<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><> </span>DSDT. Update the OS with the new dsdt via the registry or reflashing.<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>2. Build acpimof.dll in this directory. acpimof.dll is a resource only dll<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><> </span>that contains the compiled mof in a form that WMI can import into its<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><> </span>schema.<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>3. Copy acpimof.dll to %windir%\system32 and add a value named "MofImagePath"<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><> </span>under the HKEY_LOCAL_MACHINE\CurrentControlSet\Services\WmiAcpi key. The<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><> </span>contents of the value should be a path to the acpimof.dll file.<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>4. Reboot. When PNP recognizes the new device with a pnpid of pnp0c14<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><> </span>it will install wmiacpi.sys automatically and make the mof resource<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><> </span>in acpimof.dll available to the WMI schema.<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>5. Execute the acpimof.vbs test by entering acpimof.vbs at the command line<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span style="mso-spacerun: yes"><3E><> </span>and reviewing the acpitest.log to insure that all data returned is correct.<o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> <p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>Note that no INF file is needed since Windows supplies an INF for the ACPI mapper device as part of Windows<o:p></o:p></span></p> </div> </body> </html>