windows-nt/Source/XPSP1/NT/base/busdrv/acpi/smbus/smbbatt/smbbatt.htm
2020-09-26 16:20:57 +08:00

44 lines
1.8 KiB
HTML

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-
1252">
<META NAME="Generator" CONTENT="Microsoft FrontPage 5.0">
<TITLE>SMBBATT</TITLE>
</HEAD>
<BODY LINK="#0000ff">
<FONT FACE="Verdana" SIZE=5><H2>SMBBATT</H2>
</FONT><FONT FACE="Verdana" SIZE=2>
<P><span style="color:#FF0000;font-size:10pt;font-family:Arial">[This is preliminary
documentation and subject to change.]</span></P>
<H3>SUMMARY</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
This kernel mode driver is the system supplied SMBus Smart Battery Subsystem
Miniport driver.&nbsp; This driver serves as an example of both a battery
miniclass driver, and as an example of a driver to access a SMBus device.&nbsp;
<H3>BUILDING THE SAMPLE</H3></FONT><FONT FACE="Verdana"
SIZE=2><P>
To build the driver, type <B>build</B> in the \\Ntddk\Src\Wdm\Acpi\Smbbatt directory. A successful build produces
Smbbatt.sys.&nbsp; The necessary Inf file is battery.inf and is located in the %WINDIR%\inf
directory.<H3>CODE TOUR</H3>
<H4>File Manifest</H4>
</FONT><U><PRE>File&#9;&#9;Description
</U>
Smbbattp.h Header file for smbbatt.c
Pnppower.c&#9;Plug and play and power management IRP dispatch routines
Smbbatt.c Main module for driver entry, IOCTL handler, etc.
Smbmisc.c SMBus handler functions
Smbwmi.c WMI functions
Smbbatt.rc Resource file for smbbatt.sys driver
Makefile&#9;Indirects to the real makefile
Sources&#9; Dependency information for compiling
Smbbatt.htm&#9;The documentation for this sample (this file)<PRE>&nbsp;<P ALIGN="CENTER"><A HREF="#top"><FONT FACE="Verdana" SIZE=2>Top of page</FONT></A><FONT FACE="Verdana" SIZE=2> </P></FONT>
<TABLE CELLSPACING=0 BORDER=0 WIDTH=624>
<TR><TD VALIGN="MIDDLE" BGCOLOR="#00ffff" HEIGHT=2>
<P></TD>
</TR>
</TABLE>
<FONT FACE="MS Sans Serif" SIZE=1><P>&copy; 2001 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
</HTML>