WDM power management irp provides ShutdownType and SystemState information.
But the kmdf power management callback functions EvtDeviceArmWakeFromSx and
EvtDeviceDisarmWakeFromSx don't have these information. How can the kmdf
driver power management functions get these information from kmdf if it need
these information?

--
johnzchen

Re: How to get ShutdownType and SystemState in kmdf driver? by Doron

Doron
Tue Mar 13 00:04:24 CDT 2007

why do you need know what the actual Sx state and type is? what are you
going to do with this information?

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"John Z Chen" <JohnZChen@discussions.microsoft.com> wrote in message
news:59DCC5B2-C7A1-4DC0-A6A2-4C64BAFB394E@microsoft.com...
> WDM power management irp provides ShutdownType and SystemState
> information.
> But the kmdf power management callback functions EvtDeviceArmWakeFromSx
> and
> EvtDeviceDisarmWakeFromSx don't have these information. How can the kmdf
> driver power management functions get these information from kmdf if it
> need
> these information?
>
> --
> johnzchen



Re: How to get ShutdownType and SystemState in kmdf driver? by Calvin

Calvin
Tue Mar 13 01:51:51 CDT 2007

I don't have answer for the OP but I can certainly see a need for such
information.

> why do you need know what the actual Sx state and type is? what are you
> going to do with this information?

for instance some devices may arm wake-up caps differently for S3 and S5.
Some devices can wake up the system even the driver and or OS is absent
(out-of-box WOL is an example), hence, knowing the shutdown type is also
useful.

we're promised that one can always get back to bare WDM if the WDF/kmdf I/F
doesn't suite the need. is it still true?

--
Calvin Guan (DDK MVP)
Sr. Staff Engineer
NetXtreme NTX Miniport
Broadcom Corporation
Connecting Everything(r)



Re: How to get ShutdownType and SystemState in kmdf driver? by JohnZChen

JohnZChen
Fri Mar 16 17:00:33 CDT 2007

Doron,

For our hardware, the driver needs to get these information and post to the
firmware to handle some cases when going to D3. That is the way our WDM
driver operate. So I need these information when I port it to KMDF.

By the way, can you tell me where should I post the question and get answer?

Thanks,
John

--
johnzchen


"Doron Holan [MS]" wrote:

> why do you need know what the actual Sx state and type is? what are you
> going to do with this information?
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "John Z Chen" <JohnZChen@discussions.microsoft.com> wrote in message
> news:59DCC5B2-C7A1-4DC0-A6A2-4C64BAFB394E@microsoft.com...
> > WDM power management irp provides ShutdownType and SystemState
> > information.
> > But the kmdf power management callback functions EvtDeviceArmWakeFromSx
> > and
> > EvtDeviceDisarmWakeFromSx don't have these information. How can the kmdf
> > driver power management functions get these information from kmdf if it
> > need
> > these information?
> >
> > --
> > johnzchen
>
>
>

Re: How to get ShutdownType and SystemState in kmdf driver? by L

L
Fri May 11 11:21:04 CDT 2007

John,

Are you Zhanliang (é??å±?亮ï¼? from å??大? I am looking for a classmate who had been
working at Microsoft since 1999.

Litang
leecai@hotmail.com

"John Z Chen" wrote:

> Doron,
>
> For our hardware, the driver needs to get these information and post to the
> firmware to handle some cases when going to D3. That is the way our WDM
> driver operate. So I need these information when I port it to KMDF.
>
> By the way, can you tell me where should I post the question and get answer?
>
> Thanks,
> John
>
> --
> johnzchen
>
>
> "Doron Holan [MS]" wrote:
>
> > why do you need know what the actual Sx state and type is? what are you
> > going to do with this information?
> >
> > d
> >
> > --
> > Please do not send e-mail directly to this alias. this alias is for
> > newsgroup purposes only.
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> >
> > "John Z Chen" <JohnZChen@discussions.microsoft.com> wrote in message
> > news:59DCC5B2-C7A1-4DC0-A6A2-4C64BAFB394E@microsoft.com...
> > > WDM power management irp provides ShutdownType and SystemState
> > > information.
> > > But the kmdf power management callback functions EvtDeviceArmWakeFromSx
> > > and
> > > EvtDeviceDisarmWakeFromSx don't have these information. How can the kmdf
> > > driver power management functions get these information from kmdf if it
> > > need
> > > these information?
> > >
> > > --
> > > johnzchen
> >
> >
> >