Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > WINDOWS PROGRAMMING (NNTP) > When coming out of Standby, I/O port is disabled at PCI level
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 19th May 02:22
quasicodo
External User
 
Posts: 1
Default When coming out of Standby, I/O port is disabled at PCI level


I'm developing a new driver for a PCI board. I used Walter Oney's PTMWDM2
book with his WDM Driver Wizard to generate the skeleton code.

The PCI board has one I/O port. When the driver loads and gets to the
StartDevice() code, the !PCI debugger command shows that I have an I/O port
and the resource list tells me that the I/O port assigned is C400. At that
point I can talk to the device.

However, when I go into standby and then come out of stand by, I cannot
access the I/O port anymore. !PCI shows that the I/O port is not enabled
for the
device.

So what do I call to get the PCI bus driver to re-enable my I/O port?

((&-<
  Reply With Quote


  sponsored links


2 19th May 08:13
tim roberts
External User
 
Posts: 1
Default When coming out of Standby, I/O port is disabled at PCI level


Are you handling all of the power management messages in your code? Does
the debugger show that they are being called? Do you have some evidence
that the driver is properly reinitializing after the restart?
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
  Reply With Quote


  sponsored links


3 19th May 08:13
quasicodo
External User
 
Posts: 1
Default When coming out of Standby, I/O port is disabled at PCI level


I found the problem.

I added the two lines to GetLowestDevicePowerState() at the TODO comment:

// TODO choose a different ...
if (sysstate == PowerSystemWorking)
dstate = PowerDeviceD0;

Everything works great!

((&->
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666