1 /*++ 2 3 Copyright (c) Microsoft Corporation 4 5 Module Name: 6 7 FxPkgPdoUM.cpp 8 9 Abstract: 10 11 This module implements the Pnp package for Pdo devices. 12 13 Author: 14 15 Environment: 16 17 User mode only 18 19 Revision History: 20 21 --*/ 22 23 #include "../pnppriv.hpp" 24 #include <wdmguid.h> 25 26 // Tracing support 27 #if defined(EVENT_TRACING) 28 extern "C" { 29 #include "FxPkgPdoUM.tmh" 30 } 31 #endif 32 33 _Must_inspect_result_ 34 NTSTATUS 35 FxPkgPdo::_PnpQueryResources( 36 __inout FxPkgPnp* This, 37 __inout FxIrp *Irp 38 ) 39 { 40 return ((FxPkgPdo*) This)->PnpQueryResources(Irp); 41 } 42 43 _Must_inspect_result_ 44 NTSTATUS 45 FxPkgPdo::PnpQueryResources( 46 __inout FxIrp *Irp 47 ) 48 49 /*++ 50 51 Routine Description: 52 53 This method is invoked in response to a Pnp QueryResources IRP. We return 54 the resources that the device is currently consuming. 55 56 Arguments: 57 58 Irp - a pointer to the FxIrp 59 60 Returns: 61 62 NTSTATUS 63 64 --*/ 65 66 { 67 UNREFERENCED_PARAMETER(Irp); 68 ASSERTMSG("Not implemented for UMDF\n", FALSE); 69 70 return STATUS_NOT_IMPLEMENTED; 71 } 72 73 _Must_inspect_result_ 74 NTSTATUS 75 FxPkgPdo::_PnpQueryResourceRequirements( 76 __inout FxPkgPnp* This, 77 __inout FxIrp *Irp 78 ) 79 { 80 return ((FxPkgPdo*) This)->PnpQueryResourceRequirements(Irp); 81 } 82 83 _Must_inspect_result_ 84 NTSTATUS 85 FxPkgPdo::PnpQueryResourceRequirements( 86 __inout FxIrp *Irp 87 ) 88 89 /*++ 90 91 Routine Description: 92 93 This method is invoked in response to a Pnp QueryResourceRequirements IRP. 94 We return the set (of sets) of possible resources that we could accept 95 which would allow our device to work. 96 97 Arguments: 98 99 Irp - a pointer to the FxIrp 100 101 Returns: 102 103 NTSTATUS 104 105 --*/ 106 107 { 108 UNREFERENCED_PARAMETER(Irp); 109 110 ASSERTMSG("Not implemented for UMDF\n", FALSE); 111 112 return STATUS_NOT_IMPLEMENTED; 113 } 114 115 _Must_inspect_result_ 116 NTSTATUS 117 FxPkgPdo::_PnpFilterResourceRequirements( 118 __inout FxPkgPnp* This, 119 __inout FxIrp *Irp 120 ) 121 /*++ 122 123 Routine Description: 124 Filter resource requirements for the PDO. A chance to further muck with 125 the resources assigned to the device. 126 127 Arguments: 128 This - the package 129 130 Irp - the request 131 132 Return Value: 133 NTSTATUS 134 135 --*/ 136 { 137 UNREFERENCED_PARAMETER(This); 138 UNREFERENCED_PARAMETER(Irp); 139 140 ASSERTMSG("Not implemented for UMDF\n", FALSE); 141 142 return STATUS_NOT_IMPLEMENTED; 143 } 144 145