Click to Rate and Give Feedback
MSDN
MSDN Library

  Switch on low bandwidth view
Windows Driver Kit: ACPI Devices
Sample ACPI Device Function Driver

This section describes the acpisim sample, which is a WDM function driver for a sample ACPI device. The code for the sample is in the \src\wdm\acpi\acpisim directory of the Microsoft Windows Driver Kit (WDK). For information about how to build and use the acpisim sample, see \src\wdm\acpi\acpisim\driver\acpisim.htm.

A vendor can use the acpisim sample as a template to implement a device-specific function driver. This sample features the following:

  • The generic functionality that Windows requires of a WDM function driver is supplied in the library acpisim.lib. This functionality includes driver entry points, dispatch routines, Plug and Play, power management, and Windows Management Instrumentation (WMI). Typically, a vendor can use this library without making changes to it.
  • The asl\basetbl.asl file contains the definition block for the sample ACPI device.
  • The driver\acpisim.c file contains the code that implements a simple operation region, including the operation region memory buffer, registering and deregistering the operation region handler, and the operation region handler. A vendor needs to only add device-specific functionality to the C functions provided in acpisim.c. For more information about these topics, see Supporting an Operation Region and Providing a Vendor-Defined ACPI Device Interface.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker