ReactOS 0.4.15-dev-8235-gcd88a97
wdfresource.h
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation. All rights reserved.
4
5_WdfVersionBuild_
6
7Module Name:
8
9 wdfresource.h
10
11Abstract:
12
13 This defines the DDIs for hardware resources
14
15Environment:
16
17 kernel mode only
18
19Revision History:
20
21--*/
22
23//
24// NOTE: This header is generated by stubwork. Please make any
25// modifications to the corresponding template files
26// (.x or .y) and use stubwork to regenerate the header
27//
28
29#ifndef _WDFRESOURCE_H_
30#define _WDFRESOURCE_H_
31
32#ifndef WDF_EXTERN_C
33 #ifdef __cplusplus
34 #define WDF_EXTERN_C extern "C"
35 #define WDF_EXTERN_C_START extern "C" {
36 #define WDF_EXTERN_C_END }
37 #else
38 #define WDF_EXTERN_C
39 #define WDF_EXTERN_C_START
40 #define WDF_EXTERN_C_END
41 #endif
42#endif
43
45
46
47
48#if (NTDDI_VERSION >= NTDDI_WIN2K)
49
50#define WDF_INSERT_AT_END ((ULONG) -1)
51
52
53
54//
55// WDF Function: WdfIoResourceRequirementsListSetSlotNumber
56//
57typedef
60VOID
61(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTSETSLOTNUMBER)(
62 _In_
64 _In_
65 WDFIORESREQLIST RequirementsList,
66 _In_
68 );
69
72VOID
73WdfIoResourceRequirementsListSetSlotNumber(
74 _In_
75 WDFIORESREQLIST RequirementsList,
76 _In_
78 )
79{
81}
82
83//
84// WDF Function: WdfIoResourceRequirementsListSetInterfaceType
85//
86typedef
89VOID
90(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTSETINTERFACETYPE)(
91 _In_
93 _In_
94 WDFIORESREQLIST RequirementsList,
95 _In_
98 );
99
102VOID
103WdfIoResourceRequirementsListSetInterfaceType(
104 _In_
105 WDFIORESREQLIST RequirementsList,
106 _In_
109 )
110{
112}
113
114//
115// WDF Function: WdfIoResourceRequirementsListAppendIoResList
116//
117typedef
120WDFAPI
122(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTAPPENDIORESLIST)(
123 _In_
125 _In_
126 WDFIORESREQLIST RequirementsList,
127 _In_
128 WDFIORESLIST IoResList
129 );
130
135WdfIoResourceRequirementsListAppendIoResList(
136 _In_
137 WDFIORESREQLIST RequirementsList,
138 _In_
139 WDFIORESLIST IoResList
140 )
141{
142 return ((PFN_WDFIORESOURCEREQUIREMENTSLISTAPPENDIORESLIST) WdfFunctions[WdfIoResourceRequirementsListAppendIoResListTableIndex])(WdfDriverGlobals, RequirementsList, IoResList);
143}
144
145//
146// WDF Function: WdfIoResourceRequirementsListInsertIoResList
147//
148typedef
151WDFAPI
153(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTINSERTIORESLIST)(
154 _In_
156 _In_
157 WDFIORESREQLIST RequirementsList,
158 _In_
159 WDFIORESLIST IoResList,
160 _In_
162 );
163
168WdfIoResourceRequirementsListInsertIoResList(
169 _In_
170 WDFIORESREQLIST RequirementsList,
171 _In_
172 WDFIORESLIST IoResList,
173 _In_
175 )
176{
177 return ((PFN_WDFIORESOURCEREQUIREMENTSLISTINSERTIORESLIST) WdfFunctions[WdfIoResourceRequirementsListInsertIoResListTableIndex])(WdfDriverGlobals, RequirementsList, IoResList, Index);
178}
179
180//
181// WDF Function: WdfIoResourceRequirementsListGetCount
182//
183typedef
185WDFAPI
186ULONG
187(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTGETCOUNT)(
188 _In_
190 _In_
191 WDFIORESREQLIST RequirementsList
192 );
193
196ULONG
197WdfIoResourceRequirementsListGetCount(
198 _In_
199 WDFIORESREQLIST RequirementsList
200 )
201{
202 return ((PFN_WDFIORESOURCEREQUIREMENTSLISTGETCOUNT) WdfFunctions[WdfIoResourceRequirementsListGetCountTableIndex])(WdfDriverGlobals, RequirementsList);
203}
204
205//
206// WDF Function: WdfIoResourceRequirementsListGetIoResList
207//
208typedef
210WDFAPI
211WDFIORESLIST
212(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTGETIORESLIST)(
213 _In_
215 _In_
216 WDFIORESREQLIST RequirementsList,
217 _In_
219 );
220
223WDFIORESLIST
224WdfIoResourceRequirementsListGetIoResList(
225 _In_
226 WDFIORESREQLIST RequirementsList,
227 _In_
229 )
230{
231 return ((PFN_WDFIORESOURCEREQUIREMENTSLISTGETIORESLIST) WdfFunctions[WdfIoResourceRequirementsListGetIoResListTableIndex])(WdfDriverGlobals, RequirementsList, Index);
232}
233
234//
235// WDF Function: WdfIoResourceRequirementsListRemove
236//
237typedef
239WDFAPI
240VOID
241(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVE)(
242 _In_
244 _In_
245 WDFIORESREQLIST RequirementsList,
246 _In_
248 );
249
252VOID
253WdfIoResourceRequirementsListRemove(
254 _In_
255 WDFIORESREQLIST RequirementsList,
256 _In_
258 )
259{
261}
262
263//
264// WDF Function: WdfIoResourceRequirementsListRemoveByIoResList
265//
266typedef
268WDFAPI
269VOID
270(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVEBYIORESLIST)(
271 _In_
273 _In_
274 WDFIORESREQLIST RequirementsList,
275 _In_
276 WDFIORESLIST IoResList
277 );
278
281VOID
282WdfIoResourceRequirementsListRemoveByIoResList(
283 _In_
284 WDFIORESREQLIST RequirementsList,
285 _In_
286 WDFIORESLIST IoResList
287 )
288{
290}
291
292//
293// WDF Function: WdfIoResourceListCreate
294//
295typedef
298WDFAPI
300(STDCALL *PFN_WDFIORESOURCELISTCREATE)(
301 _In_
303 _In_
304 WDFIORESREQLIST RequirementsList,
307 _Out_
308 WDFIORESLIST* ResourceList
309 );
310
315WdfIoResourceListCreate(
316 _In_
317 WDFIORESREQLIST RequirementsList,
320 _Out_
321 WDFIORESLIST* ResourceList
322 )
323{
325}
326
327//
328// WDF Function: WdfIoResourceListAppendDescriptor
329//
330typedef
333WDFAPI
335(STDCALL *PFN_WDFIORESOURCELISTAPPENDDESCRIPTOR)(
336 _In_
338 _In_
339 WDFIORESLIST ResourceList,
340 _In_
342 );
343
348WdfIoResourceListAppendDescriptor(
349 _In_
350 WDFIORESLIST ResourceList,
351 _In_
353 )
354{
355 return ((PFN_WDFIORESOURCELISTAPPENDDESCRIPTOR) WdfFunctions[WdfIoResourceListAppendDescriptorTableIndex])(WdfDriverGlobals, ResourceList, Descriptor);
356}
357
358//
359// WDF Function: WdfIoResourceListInsertDescriptor
360//
361typedef
364WDFAPI
366(STDCALL *PFN_WDFIORESOURCELISTINSERTDESCRIPTOR)(
367 _In_
369 _In_
370 WDFIORESLIST ResourceList,
371 _In_
373 _In_
375 );
376
381WdfIoResourceListInsertDescriptor(
382 _In_
383 WDFIORESLIST ResourceList,
384 _In_
386 _In_
388 )
389{
391}
392
393//
394// WDF Function: WdfIoResourceListUpdateDescriptor
395//
396typedef
398WDFAPI
399VOID
400(STDCALL *PFN_WDFIORESOURCELISTUPDATEDESCRIPTOR)(
401 _In_
403 _In_
404 WDFIORESLIST ResourceList,
405 _In_
407 _In_
409 );
410
413VOID
414WdfIoResourceListUpdateDescriptor(
415 _In_
416 WDFIORESLIST ResourceList,
417 _In_
419 _In_
421 )
422{
424}
425
426//
427// WDF Function: WdfIoResourceListGetCount
428//
429typedef
431WDFAPI
432ULONG
433(STDCALL *PFN_WDFIORESOURCELISTGETCOUNT)(
434 _In_
436 _In_
437 WDFIORESLIST ResourceList
438 );
439
442ULONG
443WdfIoResourceListGetCount(
444 _In_
445 WDFIORESLIST ResourceList
446 )
447{
448 return ((PFN_WDFIORESOURCELISTGETCOUNT) WdfFunctions[WdfIoResourceListGetCountTableIndex])(WdfDriverGlobals, ResourceList);
449}
450
451//
452// WDF Function: WdfIoResourceListGetDescriptor
453//
454typedef
456WDFAPI
458(STDCALL *PFN_WDFIORESOURCELISTGETDESCRIPTOR)(
459 _In_
461 _In_
462 WDFIORESLIST ResourceList,
463 _In_
465 );
466
470WdfIoResourceListGetDescriptor(
471 _In_
472 WDFIORESLIST ResourceList,
473 _In_
475 )
476{
477 return ((PFN_WDFIORESOURCELISTGETDESCRIPTOR) WdfFunctions[WdfIoResourceListGetDescriptorTableIndex])(WdfDriverGlobals, ResourceList, Index);
478}
479
480//
481// WDF Function: WdfIoResourceListRemove
482//
483typedef
485WDFAPI
486VOID
487(STDCALL *PFN_WDFIORESOURCELISTREMOVE)(
488 _In_
490 _In_
491 WDFIORESLIST ResourceList,
492 _In_
494 );
495
498VOID
499WdfIoResourceListRemove(
500 _In_
501 WDFIORESLIST ResourceList,
502 _In_
504 )
505{
507}
508
509//
510// WDF Function: WdfIoResourceListRemoveByDescriptor
511//
512typedef
514WDFAPI
515VOID
516(STDCALL *PFN_WDFIORESOURCELISTREMOVEBYDESCRIPTOR)(
517 _In_
519 _In_
520 WDFIORESLIST ResourceList,
521 _In_
523 );
524
527VOID
528WdfIoResourceListRemoveByDescriptor(
529 _In_
530 WDFIORESLIST ResourceList,
531 _In_
533 )
534{
536}
537
538//
539// WDF Function: WdfCmResourceListAppendDescriptor
540//
541typedef
544WDFAPI
546(STDCALL *PFN_WDFCMRESOURCELISTAPPENDDESCRIPTOR)(
547 _In_
549 _In_
550 WDFCMRESLIST List,
551 _In_
553 );
554
559WdfCmResourceListAppendDescriptor(
560 _In_
561 WDFCMRESLIST List,
562 _In_
564 )
565{
566 return ((PFN_WDFCMRESOURCELISTAPPENDDESCRIPTOR) WdfFunctions[WdfCmResourceListAppendDescriptorTableIndex])(WdfDriverGlobals, List, Descriptor);
567}
568
569//
570// WDF Function: WdfCmResourceListInsertDescriptor
571//
572typedef
575WDFAPI
577(STDCALL *PFN_WDFCMRESOURCELISTINSERTDESCRIPTOR)(
578 _In_
580 _In_
581 WDFCMRESLIST List,
582 _In_
584 _In_
586 );
587
592WdfCmResourceListInsertDescriptor(
593 _In_
594 WDFCMRESLIST List,
595 _In_
597 _In_
599 )
600{
601 return ((PFN_WDFCMRESOURCELISTINSERTDESCRIPTOR) WdfFunctions[WdfCmResourceListInsertDescriptorTableIndex])(WdfDriverGlobals, List, Descriptor, Index);
602}
603
604//
605// WDF Function: WdfCmResourceListGetCount
606//
607typedef
609WDFAPI
610ULONG
611(STDCALL *PFN_WDFCMRESOURCELISTGETCOUNT)(
612 _In_
614 _In_
615 WDFCMRESLIST List
616 );
617
620ULONG
621WdfCmResourceListGetCount(
622 _In_
623 WDFCMRESLIST List
624 )
625{
626 return ((PFN_WDFCMRESOURCELISTGETCOUNT) WdfFunctions[WdfCmResourceListGetCountTableIndex])(WdfDriverGlobals, List);
627}
628
629//
630// WDF Function: WdfCmResourceListGetDescriptor
631//
632typedef
634WDFAPI
636(STDCALL *PFN_WDFCMRESOURCELISTGETDESCRIPTOR)(
637 _In_
639 _In_
640 WDFCMRESLIST List,
641 _In_
643 );
644
648WdfCmResourceListGetDescriptor(
649 _In_
650 WDFCMRESLIST List,
651 _In_
653 )
654{
655 return ((PFN_WDFCMRESOURCELISTGETDESCRIPTOR) WdfFunctions[WdfCmResourceListGetDescriptorTableIndex])(WdfDriverGlobals, List, Index);
656}
657
658//
659// WDF Function: WdfCmResourceListRemove
660//
661typedef
663WDFAPI
664VOID
665(STDCALL *PFN_WDFCMRESOURCELISTREMOVE)(
666 _In_
668 _In_
669 WDFCMRESLIST List,
670 _In_
672 );
673
676VOID
677WdfCmResourceListRemove(
678 _In_
679 WDFCMRESLIST List,
680 _In_
682 )
683{
685}
686
687//
688// WDF Function: WdfCmResourceListRemoveByDescriptor
689//
690typedef
692WDFAPI
693VOID
694(STDCALL *PFN_WDFCMRESOURCELISTREMOVEBYDESCRIPTOR)(
695 _In_
697 _In_
698 WDFCMRESLIST List,
699 _In_
701 );
702
705VOID
706WdfCmResourceListRemoveByDescriptor(
707 _In_
708 WDFCMRESLIST List,
709 _In_
711 )
712{
713 ((PFN_WDFCMRESOURCELISTREMOVEBYDESCRIPTOR) WdfFunctions[WdfCmResourceListRemoveByDescriptorTableIndex])(WdfDriverGlobals, List, Descriptor);
714}
715
716
717
718#endif // (NTDDI_VERSION >= NTDDI_WIN2K)
719
720
722
723#endif // _WDFRESOURCE_H_
724
#define VOID
Definition: acefi.h:82
LONG NTSTATUS
Definition: precomp.h:26
struct _IO_RESOURCE_DESCRIPTOR * PIO_RESOURCE_DESCRIPTOR
#define NTSTATUS
Definition: precomp.h:21
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
DriverGlobals
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR * PCM_PARTIAL_RESOURCE_DESCRIPTOR
enum _INTERFACE_TYPE INTERFACE_TYPE
#define _Must_inspect_result_
Definition: ms_sal.h:558
#define _Out_
Definition: ms_sal.h:345
#define _Strict_type_match_
Definition: ms_sal.h:2954
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
uint32_t ULONG
Definition: typedefs.h:59
#define STDCALL
Definition: wdf.h:45
#define WdfFunctions
Definition: wdf.h:66
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID InterfaceType
Definition: wdffdo.h:463
PWDF_DRIVER_GLOBALS WdfDriverGlobals
@ WdfIoResourceListGetDescriptorTableIndex
Definition: wdffuncenum.h:324
@ WdfIoResourceListRemoveTableIndex
Definition: wdffuncenum.h:325
@ WdfIoResourceListAppendDescriptorTableIndex
Definition: wdffuncenum.h:320
@ WdfIoResourceRequirementsListRemoveByIoResListTableIndex
Definition: wdffuncenum.h:318
@ WdfIoResourceRequirementsListAppendIoResListTableIndex
Definition: wdffuncenum.h:313
@ WdfIoResourceRequirementsListSetSlotNumberTableIndex
Definition: wdffuncenum.h:311
@ WdfIoResourceListGetCountTableIndex
Definition: wdffuncenum.h:323
@ WdfIoResourceRequirementsListRemoveTableIndex
Definition: wdffuncenum.h:317
@ WdfCmResourceListRemoveTableIndex
Definition: wdffuncenum.h:331
@ WdfCmResourceListRemoveByDescriptorTableIndex
Definition: wdffuncenum.h:332
@ WdfIoResourceListUpdateDescriptorTableIndex
Definition: wdffuncenum.h:322
@ WdfCmResourceListGetCountTableIndex
Definition: wdffuncenum.h:329
@ WdfIoResourceListCreateTableIndex
Definition: wdffuncenum.h:319
@ WdfIoResourceRequirementsListGetCountTableIndex
Definition: wdffuncenum.h:315
@ WdfIoResourceRequirementsListGetIoResListTableIndex
Definition: wdffuncenum.h:316
@ WdfCmResourceListAppendDescriptorTableIndex
Definition: wdffuncenum.h:327
@ WdfCmResourceListInsertDescriptorTableIndex
Definition: wdffuncenum.h:328
@ WdfIoResourceListRemoveByDescriptorTableIndex
Definition: wdffuncenum.h:326
@ WdfIoResourceListInsertDescriptorTableIndex
Definition: wdffuncenum.h:321
@ WdfIoResourceRequirementsListSetInterfaceTypeTableIndex
Definition: wdffuncenum.h:312
@ WdfIoResourceRequirementsListInsertIoResListTableIndex
Definition: wdffuncenum.h:314
@ WdfCmResourceListGetDescriptorTableIndex
Definition: wdffuncenum.h:330
_Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTAPPENDIORESLIST)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals
Definition: wdfresource.h:119
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList
Definition: wdfresource.h:309
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_ WDFIORESLIST IoResList
Definition: wdfresource.h:129
#define WDF_EXTERN_C_END
Definition: wdfresource.h:40
_In_ WDFIORESREQLIST RequirementsList
Definition: wdfresource.h:65
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
Definition: wdfresource.h:306
_Must_inspect_result_ _In_ WDFIORESLIST _In_ PIO_RESOURCE_DESCRIPTOR Descriptor
Definition: wdfresource.h:342
#define WDF_EXTERN_C_START
Definition: wdfresource.h:39
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition: wdfresource.h:550
_In_ WDFIORESREQLIST _In_ ULONG SlotNumber
Definition: wdfresource.h:68
_In_ WDFIORESREQLIST _In_ _Strict_type_match_ INTERFACE_TYPE InterfaceType
Definition: wdfresource.h:98
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_ WDFIORESLIST _In_ ULONG Index
Definition: wdfresource.h:162
#define WDFAPI
Definition: wdftypes.h:53
#define FORCEINLINE
Definition: wdftypes.h:67