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