ReactOS 0.4.15-dev-7934-g1dc8d80
powerstatemachineum.cpp
Go to the documentation of this file.
1/*++
2Copyright (c) Microsoft. All rights reserved.
3
4Module Name:
5
6 PowerStateMachineUm.cpp
7
8Abstract:
9
10 This module implements the Power state machine for the driver framework.
11 This code was split out from FxPkgPnp.cpp.
12
13Author:
14
15
16
17
18
19Environment:
20
21 User mode only
22
23Revision History:
24
25--*/
26
27#include "../pnppriv.hpp"
28
29extern "C" {
30#if defined(EVENT_TRACING)
31#include "PowerStateMachineUm.tmh"
32#endif
33}
34
38 VOID
39 )
40/*++
41
42Routine Description:
43 Calls FxDmaEnabler::PowerUp on all registered FxDmaEnabler objects. As soon
44 as a PowerUp call fails, we stop iterating over the list.
45
46Arguments:
47 None
48
49Return Value:
50 TRUE if PowerUp succeeded on all enablers, FALSE otherwise
51
52 --*/
53
54{
55 return TRUE;
56}
57
60 VOID
61 )
62/*++
63
64Routine Description:
65 Calls FxDmaEnabler::PowerDown on all registered FxDmaEnabler objects. All
66 errors are accumulated, all enablers will be PowerDown'ed.
67
68Arguments:
69 None
70
71Return Value:
72 TRUE if PowerDown succeeded on all enablers, FALSE otherwise
73
74 --*/
75{
76 return TRUE;
77}
78
79VOID
82 )
83/*++
84
85Routine Description:
86 Set source of wake if OS supports this.
87
88Arguments:
89 Irp
90
91Return Value:
92 None
93
94 --*/
95{
97
98
99
100
101 DO_NOTHING();
102}
103
unsigned char BOOLEAN
Definition: fxirp.hpp:28
static VOID _PowerSetSystemWakeSource(__in FxIrp *Irp)
BOOLEAN PowerDmaPowerDown(VOID)
_Must_inspect_result_ BOOLEAN PowerDmaPowerUp(VOID)
_In_ PIRP Irp
Definition: csq.h:116
#define __in
Definition: dbghelp.h:35
#define TRUE
Definition: types.h:120
#define _Must_inspect_result_
Definition: ms_sal.h:558
#define DO_NOTHING()
Definition: mxgeneral.h:32
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317