mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 04:45:43 +00:00
[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
This commit is contained in:
parent
8a978a179f
commit
1f377076d7
258 changed files with 4047 additions and 2387 deletions
|
@ -23,7 +23,7 @@ Revision History:
|
|||
|
||||
--*/
|
||||
|
||||
#include "..\pnppriv.hpp"
|
||||
#include "../pnppriv.hpp"
|
||||
|
||||
extern "C" {
|
||||
#if defined(EVENT_TRACING)
|
||||
|
@ -51,8 +51,8 @@ Return Value:
|
|||
--*/
|
||||
|
||||
{
|
||||
FxTransactionedEntry* ple;
|
||||
NTSTATUS status;
|
||||
// FxTransactionedEntry* ple;
|
||||
// NTSTATUS status;
|
||||
BOOLEAN result;
|
||||
|
||||
result = TRUE;
|
||||
|
@ -60,21 +60,21 @@ Return Value:
|
|||
//
|
||||
// Power up each dma enabler
|
||||
//
|
||||
if (m_DmaEnablerList != NULL) {
|
||||
m_DmaEnablerList->LockForEnum(GetDriverGlobals());
|
||||
// if (m_DmaEnablerList != NULL) {
|
||||
// m_DmaEnablerList->LockForEnum(GetDriverGlobals());
|
||||
|
||||
ple = NULL;
|
||||
while ((ple = m_DmaEnablerList->GetNextEntry(ple)) != NULL) {
|
||||
status = ((FxDmaEnabler*) ple->GetTransactionedObject())->PowerUp();
|
||||
// ple = NULL;
|
||||
// while ((ple = m_DmaEnablerList->GetNextEntry(ple)) != NULL) {
|
||||
// status = ((FxDmaEnabler*) ple->GetTransactionedObject())->PowerUp();
|
||||
|
||||
if (!NT_SUCCESS(status)) {
|
||||
result = FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// if (!NT_SUCCESS(status)) {
|
||||
// result = FALSE;
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
|
||||
m_DmaEnablerList->UnlockFromEnum(GetDriverGlobals());
|
||||
}
|
||||
// m_DmaEnablerList->UnlockFromEnum(GetDriverGlobals());
|
||||
// }
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -97,8 +97,8 @@ Return Value:
|
|||
|
||||
--*/
|
||||
{
|
||||
FxTransactionedEntry* ple;
|
||||
NTSTATUS status;
|
||||
// FxTransactionedEntry* ple;
|
||||
// NTSTATUS status;
|
||||
BOOLEAN result;
|
||||
|
||||
result = TRUE;
|
||||
|
@ -106,25 +106,25 @@ Return Value:
|
|||
//
|
||||
// Power up each dma enabler
|
||||
//
|
||||
if (m_DmaEnablerList != NULL) {
|
||||
m_DmaEnablerList->LockForEnum(GetDriverGlobals());
|
||||
// if (m_DmaEnablerList != NULL) {
|
||||
// m_DmaEnablerList->LockForEnum(GetDriverGlobals());
|
||||
|
||||
ple = NULL;
|
||||
while ((ple = m_DmaEnablerList->GetNextEntry(ple)) != NULL) {
|
||||
status = ((FxDmaEnabler*) ple->GetTransactionedObject())->PowerDown();
|
||||
// ple = NULL;
|
||||
// while ((ple = m_DmaEnablerList->GetNextEntry(ple)) != NULL) {
|
||||
// status = ((FxDmaEnabler*) ple->GetTransactionedObject())->PowerDown();
|
||||
|
||||
if (!NT_SUCCESS(status)) {
|
||||
//
|
||||
// We do not break out of the loop on power down failure. We will
|
||||
// continue to power down each channel regardless of the previous
|
||||
// channel's power down status.
|
||||
//
|
||||
result = FALSE;
|
||||
}
|
||||
}
|
||||
// if (!NT_SUCCESS(status)) {
|
||||
// //
|
||||
// // We do not break out of the loop on power down failure. We will
|
||||
// // continue to power down each channel regardless of the previous
|
||||
// // channel's power down status.
|
||||
// //
|
||||
// result = FALSE;
|
||||
// }
|
||||
// }
|
||||
|
||||
m_DmaEnablerList->UnlockFromEnum(GetDriverGlobals());
|
||||
}
|
||||
// m_DmaEnablerList->UnlockFromEnum(GetDriverGlobals());
|
||||
// }
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue