//
// ASSERT that we never get two queries in a row, as
- // this will severly mess up the state machine
+ // this will severely mess up the state machine
//
ASSERT(commonExtension->CurrentState != irpStack->MinorFunction);
commonExtension->PreviousState = commonExtension->CurrentState;
if(irpStack->MinorFunction == IRP_MN_CANCEL_STOP_DEVICE) {
status = devInfo->ClassStopDevice(DeviceObject,
irpStack->MinorFunction);
- ASSERTMSG("ClassDispatchPnp !! CANCEL_STOP_DEVICE should "
- "never be failed\n", NT_SUCCESS(status));
+ NT_ASSERTMSGW(L"ClassDispatchPnp !! CANCEL_STOP_DEVICE should "
+ L"never be failed\n", NT_SUCCESS(status));
} else {
status = devInfo->ClassRemoveDevice(DeviceObject,
irpStack->MinorFunction);
- ASSERTMSG("ClassDispatchPnp !! CANCEL_REMOVE_DEVICE should "
- "never be failed\n", NT_SUCCESS(status));
+ NT_ASSERTMSGW(L"ClassDispatchPnp !! CANCEL_REMOVE_DEVICE should "
+ L"never be failed\n", NT_SUCCESS(status));
}
Irp->IoStatus.Status = status;
status = devInfo->ClassStopDevice(DeviceObject, IRP_MN_STOP_DEVICE);
- ASSERTMSG("ClassDispatchPnp !! STOP_DEVICE should "
- "never be failed\n", NT_SUCCESS(status));
+ NT_ASSERTMSGW(L"ClassDispatchPnp !! STOP_DEVICE should "
+ L"never be failed\n", NT_SUCCESS(status));
if(isFdo) {
status = ClassForwardIrpSynchronous(commonExtension, Irp);
CLASSP_REG_PERF_RESTORE_VALUE_NAME,
&t);
if (t >= CLASS_PERF_RESTORE_MINIMUM) {
- fdoExtension->PrivateFdoData->Perf.ReEnableThreshhold = t;
+ fdoExtension->PrivateFdoData->Perf.ReEnableThreshold = t;
}
}
If the device object is a PDO (partition object) then the request will
simply be adjusted for Partition0 and issued to the lower device driver.
- IF the device object is an FDO (paritition 0 object), the number of bytes
+ IF the device object is an FDO (partition 0 object), the number of bytes
in the request are checked against the maximum byte counts that the adapter
supports and requests are broken up into
smaller sizes if necessary.
Routine Description:
Send command to SCSI unit to start or power up.
- Because this command is issued asynchronounsly, that is, without
+ Because this command is issued asynchronously, that is, without
waiting on it to complete, the IMMEDIATE flag is not set. This
means that the CDB will not return until the drive has powered up.
This should keep subsequent requests from being submitted to the
//
// ISSUE-2000/02/03-peterwie
- // This code path was inheritted from the NT 4.0 class2.sys driver.
+ // This code path was inherited from the NT 4.0 class2.sys driver.
// It needs to be changed to survive low-memory conditions.
//
//
// ISSUE-2000/02/03-peterwie
- // This code path was inheritted from the NT 4.0 class2.sys driver.
+ // This code path was inherited from the NT 4.0 class2.sys driver.
// It needs to be changed to survive low-memory conditions.
//
Routine Description:
This routine is called when an asynchronous I/O request
- which was issused by the class driver completes. Examples of such requests
+ which was issued by the class driver completes. Examples of such requests
are release queue or START UNIT. This routine releases the queue if
necessary. It then frees the context and the IRP.
BOOLEAN retry;
//
- // NOTE: This code is only pagable because we are not freezing
- // the queue. Allowing the queue to be frozen from a pagable
+ // NOTE: This code is only pageable because we are not freezing
+ // the queue. Allowing the queue to be frozen from a pageable
// routine could leave the queue frozen as we try to page in
// the code to unfreeze the queue. The result would be a nice
// case of deadlock. Therefore, since we are unfreezing the
SCSI_SENSE_NOT_READY/SCSI_ADSENSE_NO_MEDIA_IN_DEVICE
These drives should not pass WHQL certification due
- to this discrepency.
+ to this discrepancy.
*/
retry = FALSE;
Length - Supplies the length in bytes of the mode sense buffer.
- PageMode - Supplies the page or pages of mode sense data to be retrived.
+ PageMode - Supplies the page or pages of mode sense data to be retrieved.
Return Value:
Arguments:
- Fdo - Supplies the functional device object for the orginal request.
+ Fdo - Supplies the functional device object for the original request.
- Srb - Supplies a paritally build ScsiRequestBlock. In particular, the
+ Srb - Supplies a partially built ScsiRequestBlock. In particular, the
CDB and the SRB timeout value must be filled in. The SRB must not be
allocated from zone.
//PSCSI_PASS_THROUGH scsiPass;
//
- // Validiate the user buffer.
+ // Validate the user buffer.
//
#if defined (_WIN64)
Routine Description:
This routine is called to handle the "removal" of a device. It will
- forward the request downwards if necesssary, call into the driver
+ forward the request downwards if necessary, call into the driver
to release any necessary resources (memory, events, etc) and then
will delete the device object.
(PPHYSICAL_DEVICE_EXTENSION) commonExtension;
//
- // See if this device is in the child list (if this was a suprise
+ // See if this device is in the child list (if this was a surprise
// removal it might be) and remove it.
//
lowerDevice = fdoExtension->CommonExtension.LowerDeviceObject;
//
- // we raise irql seperately so we're not swapped out or suspended
+ // we raise irql separately so we're not swapped out or suspended
// while holding the release queue irp in this routine. this lets
// us release the spin lock before lowering irql.
//
Routine Description:
This routine is called when an asynchronous I/O request
- which was issused by the class driver completes. Examples of such requests
+ which was issued by the class driver completes. Examples of such requests
are release queue or START UNIT. This routine releases the queue if
necessary. It then frees the context and the IRP.