ReactOS  0.4.15-dev-2155-g06f57e1
fxinterruptkm.hpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  FxInterruptKm.hpp
8 
9 Abstract:
10 
11  This module implements a frameworks managed interrupt object
12 
13 Author:
14 
15 
16 
17 
18 Environment:
19 
20  Kernel mode only
21 
22 Revision History:
23 
24 
25 --*/
26 
27 #ifndef _FXINTERRUPTKM_H_
28 #define _FXINTERRUPTKM_H_
29 
30 #include "fxinterrupt.hpp"
31 
32 __inline
33 struct _KINTERRUPT*
35  VOID
36  )
37 {
38  struct _KINTERRUPT* interrupt = m_Interrupt;
39 
40  if (interrupt == NULL) {
41  interrupt = m_InterruptCaptured;
42  }
43 
44  return interrupt;
45 }
46 
47 __inline
48 VOID
50  VOID
51  )
52 {
53  //
54  // Does nothing for KMDF
55  //
56 }
57 
58 __inline
59 VOID
61  VOID
62  )
63 {
64  //
65  // Does nothing for KMDF
66  //
67 }
68 
69 __inline
70 VOID
74  __in PWDF_INTERRUPT_INFO InterruptInfo
75  )
76 {
77  UNREFERENCED_PARAMETER(CmDescRaw);
78  UNREFERENCED_PARAMETER(CmDescTrans);
79  UNREFERENCED_PARAMETER(InterruptInfo);
80 
81  //
82  // Does nothing for KMDF
83  //
84 }
85 
86 __inline
87 VOID
92  )
93 {
97 
98  //
99  // Does nothing for KMDF
100  //
101 }
102 
103 __inline
104 BOOLEAN
109  )
110 {
114 }
115 
116 #endif // _FXINTERRUPTKM_H_
KSYNCHRONIZE_ROUTINE * MdInterruptSynchronizeRoutine
Definition: mxgeneralkm.h:38
VOID RevokeResourcesInternal(VOID)
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_INTERRUPT_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFINTERRUPT * Interrupt
Definition: wdfinterrupt.h:372
VOID AssignResourcesInternal(__in PCM_PARTIAL_RESOURCE_DESCRIPTOR CmDescRaw, __in PCM_PARTIAL_RESOURCE_DESCRIPTOR CmDescTrans, __in PWDF_INTERRUPT_INFO InterruptConfig)
unsigned char BOOLEAN
enum _WDF_INTERRUPT_POLICY WDF_INTERRUPT_POLICY
struct _KINTERRUPT * m_Interrupt
Definition: fxinterrupt.hpp:59
_In_ PKSYNCHRONIZE_ROUTINE SynchronizeRoutine
Definition: kefuncs.h:536
enum _WDF_INTERRUPT_PRIORITY WDF_INTERRUPT_PRIORITY
_In_ WDFINTERRUPT _In_ WDF_INTERRUPT_POLICY _In_ WDF_INTERRUPT_PRIORITY _In_ KAFFINITY TargetProcessorSet
Definition: wdfinterrupt.h:651
VOID SetPolicyInternal(__in WDF_INTERRUPT_POLICY Policy, __in WDF_INTERRUPT_PRIORITY Priority, __in PGROUP_AFFINITY TargetProcessorSet)
_In_ WDFINTERRUPT _In_ WDF_INTERRUPT_POLICY _In_ WDF_INTERRUPT_PRIORITY Priority
Definition: wdfinterrupt.h:651
_In_ PKSYNCHRONIZE_ROUTINE _In_opt_ __drv_aliasesMem PVOID SynchronizeContext
Definition: kefuncs.h:536
VOID ResetInternal(VOID)
#define NULL
Definition: types.h:112
BOOLEAN NTAPI KeSynchronizeExecution(IN OUT PKINTERRUPT Interrupt, IN PKSYNCHRONIZE_ROUTINE SynchronizeRoutine, IN PVOID SynchronizeContext OPTIONAL)
Definition: interrupt.c:142
_In_ WDFINTERRUPT _In_ WDF_INTERRUPT_POLICY Policy
Definition: wdfinterrupt.h:651
__inline BOOLEAN _SynchronizeExecution(__in MdInterrupt Interrupt, __in MdInterruptSynchronizeRoutine SynchronizeRoutine, __in PVOID SynchronizeContext)
#define __in
Definition: dbghelp.h:35
struct _KINTERRUPT * m_InterruptCaptured
struct _KINTERRUPT * GetInterruptPtr(VOID)