mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[STORPORT] Add the InitializeDpc code path to StorPortNotification().
CORE-13866
This commit is contained in:
parent
cc95d3ece3
commit
9e642ea15b
1 changed files with 15 additions and 0 deletions
|
@ -996,6 +996,8 @@ StorPortNotification(
|
||||||
PFDO_DEVICE_EXTENSION DeviceExtension = NULL;
|
PFDO_DEVICE_EXTENSION DeviceExtension = NULL;
|
||||||
PHW_PASSIVE_INITIALIZE_ROUTINE HwPassiveInitRoutine;
|
PHW_PASSIVE_INITIALIZE_ROUTINE HwPassiveInitRoutine;
|
||||||
PBOOLEAN Result;
|
PBOOLEAN Result;
|
||||||
|
PSTOR_DPC Dpc;
|
||||||
|
PHW_DPC_ROUTINE HwDpcRoutine;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
DPRINT1("StorPortNotification(%x %p)\n",
|
DPRINT1("StorPortNotification(%x %p)\n",
|
||||||
|
@ -1033,6 +1035,19 @@ StorPortNotification(
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case InitializeDpc:
|
||||||
|
DPRINT1("InitializeDpc\n");
|
||||||
|
Dpc = (PSTOR_DPC)va_arg(ap, PSTOR_DPC);
|
||||||
|
DPRINT1("Dpc %p\n", Dpc);
|
||||||
|
HwDpcRoutine = (PHW_DPC_ROUTINE)va_arg(ap, PHW_DPC_ROUTINE);
|
||||||
|
DPRINT1("HwDpcRoutine %p\n", HwDpcRoutine);
|
||||||
|
|
||||||
|
KeInitializeDpc((PRKDPC)&Dpc->Dpc,
|
||||||
|
(PKDEFERRED_ROUTINE)HwDpcRoutine,
|
||||||
|
(PVOID)DeviceExtension);
|
||||||
|
KeInitializeSpinLock(&Dpc->Lock);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
DPRINT1("Unsupported Notification %lx\n", NotificationType);
|
DPRINT1("Unsupported Notification %lx\n", NotificationType);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue