reactos/sdk/lib/drivers/wdf/shared/inc/private/km/fxinterruptkm.hpp
Victor Perevertkin 1f377076d7
[WDF] Fix KMDF so it can compile with ReactOS SDK
Not all files are included, but these are necessary to compile cdrom driver.
So far it can only be statically linked with drivers, a proper
implementation requires wdfldr helper driver
2020-11-03 00:06:27 +03:00

116 lines
1.8 KiB
C++

/*++
Copyright (c) Microsoft Corporation
Module Name:
FxInterruptKm.hpp
Abstract:
This module implements a frameworks managed interrupt object
Author:
Environment:
Kernel mode only
Revision History:
--*/
#ifndef _FXINTERRUPTKM_H_
#define _FXINTERRUPTKM_H_
#include "fxinterrupt.hpp"
__inline
struct _KINTERRUPT*
FxInterrupt::GetInterruptPtr(
VOID
)
{
struct _KINTERRUPT* interrupt = m_Interrupt;
if (interrupt == NULL) {
interrupt = m_InterruptCaptured;
}
return interrupt;
}
__inline
VOID
FxInterrupt::ResetInternal(
VOID
)
{
//
// Does nothing for KMDF
//
}
__inline
VOID
FxInterrupt::RevokeResourcesInternal(
VOID
)
{
//
// Does nothing for KMDF
//
}
__inline
VOID
FxInterrupt::AssignResourcesInternal(
__in PCM_PARTIAL_RESOURCE_DESCRIPTOR CmDescRaw,
__in PCM_PARTIAL_RESOURCE_DESCRIPTOR CmDescTrans,
__in PWDF_INTERRUPT_INFO InterruptInfo
)
{
UNREFERENCED_PARAMETER(CmDescRaw);
UNREFERENCED_PARAMETER(CmDescTrans);
UNREFERENCED_PARAMETER(InterruptInfo);
//
// Does nothing for KMDF
//
}
__inline
VOID
FxInterrupt::SetPolicyInternal(
__in WDF_INTERRUPT_POLICY Policy,
__in WDF_INTERRUPT_PRIORITY Priority,
__in PGROUP_AFFINITY TargetProcessorSet
)
{
UNREFERENCED_PARAMETER(Policy);
UNREFERENCED_PARAMETER(Priority);
UNREFERENCED_PARAMETER(TargetProcessorSet);
//
// Does nothing for KMDF
//
}
__inline
BOOLEAN
_SynchronizeExecution(
__in MdInterrupt Interrupt,
__in MdInterruptSynchronizeRoutine SynchronizeRoutine,
__in PVOID SynchronizeContext
)
{
return KeSynchronizeExecution(Interrupt,
SynchronizeRoutine,
SynchronizeContext);
}
#endif // _FXINTERRUPTKM_H_