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 35 _Must_inspect_result_ 36 BOOLEAN 37 FxPkgPnp::PowerDmaPowerUp( 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 59 FxPkgPnp::PowerDmaPowerDown( 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 80 FxPkgPnp::_PowerSetSystemWakeSource( 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 { 96 UNREFERENCED_PARAMETER(Irp); 97 98 99 100 101 DO_NOTHING(); 102 } 103 104