- How to call Control Method in driver?
- Posted by Brian on February 21st, 2005
Hello,
I am programming a driver to call Control Method in BIOS. Do I call
control method via ACPI.sys? If yes, how to call ACPI.sys? I can't
find documents about this. If you konw, please tell me. Thank you very
much.
Brian
- Posted by Calvin Guan on February 21st, 2005
ACPI driver inserts filter device object to many device stacks such as AGP,
parport, IDE and such... If your stack have the ACPI fido you can build
IOCTL_ACPI_ASYNC_EVAL_METHOD/IOCTL_ACPI_EVAL_METHOD, fill in the ACPI
parameters according to the ACPI spec, and send to the lower driver
(assuming your DO is above the ACPI fido).
Please note some methods are device stack specific, for instance: IDE
channel config/status. What method are you trying to execute BTW?
HTH,
Calvin
--
Calvin Guan Software Engineer/Radeon NT Drivers
ATI Technologies Inc. Markham ON, Canada www.ati.com
"Brian" <Brian8701@hotmail.com> wrote in message
news:edb60fd.0502210100.28d27c0f@posting.google.co m...
- Posted by Mark Roddy on February 21st, 2005
Brian wrote:
to do?
--
=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
- Posted by Brian on February 23rd, 2005
Hi, Calvin:
Thank you for your reply.
Our system BIOS team create specific control method in ACPI BIOS,
and I have to call these control method in driver.
As you say, I must call IoBuildDeviceIoControlRequest() to create
IRP with control method name, and then call IoCallDriver() to send IRP
to lower driver.
In IoBuildDeviceIoControlRequest(), the second parameter is device
object of lower driver. In my case, how can I get device object of
ACPI.sys(lower driver)?
Brian
"Calvin Guan" <cguan@pleasenospam.ati.com> wrote in message news:<#K##rtCGFHA.936@TK2MSFTNGP12.phx.gbl>...
- Posted by Brian on February 23rd, 2005
Hi, Mark:
Thank you for your reply.
Our system BIOS team create specific control method in ACPI BIOS,
and I have to call these control method in driver.
Please tell me if you have any idea. Thank you.
Brian
Mark Roddy <markr@hollistech.com> wrote in message news:<u4rIw1CGFHA.428@TK2MSFTNGP15.phx.gbl>...
- Posted by Calvin Guan on February 23rd, 2005
Where does you driver sit? If your device stack have an acpi fido underneath
your FDO, you can just send IRPs to you lower driver.
--
Calvin Guan Software Engineer/Radeon NT Drivers
ATI Technologies Inc. Markham ON, Canada www.ati.com
"Brian" <Brian8701@hotmail.com> wrote in message
news:edb60fd.0502230416.7685217e@posting.google.co m...
- Posted by Brian on February 23rd, 2005
Hi, Calvin:
I am newer in WDM, so could you explain more detail? or where I can
get relative documents?
Thank you.
Brian
"Calvin Guan" <cguan@pleasenospam.ati.com> wrote in message news:<#u0yJ1cGFHA.584@TK2MSFTNGP14.phx.gbl>...
- Posted by Maxim S. Shatskih on February 24th, 2005
I think that some system BIOS ACPI functions are auto-exposed to WMI.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
- Posted by Calvin Guan on February 24th, 2005
I recommend Walter Oney's WDM book for learning WDM driver.
--
Calvin Guan Software Engineer/Radeon NT Drivers
ATI Technologies Inc. Markham ON, Canada www.ati.com
"Brian" <Brian8701@hotmail.com> wrote in message
news:edb60fd.0502231640.42e68479@posting.google.co m...
- Posted by Brian on February 27th, 2005
Thanks ! I am studying now..
"Calvin Guan" <cguan@pleasenospam.ati.com> wrote in message news:<eNQ2Q#nGFHA.1740@TK2MSFTNGP09.phx.gbl>...
- Posted by Brian on February 27th, 2005
Hi, Maxim:
Thank you! I will check...
"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message news:<evmBSAnGFHA.3876@TK2MSFTNGP14.phx.gbl>...