HwScsiInitialize routine

HwScsiInitialize initializes the HBA after a reboot or a power failure occurs.

Note  The SCSI port driver and SCSI miniport driver models may be altered or unavailable in the future. Instead, we recommend using the Storport driver and Storport miniport driver models.

 

Syntax

PHW_INITIALIZE HwScsiInitialize;

BOOLEAN HwScsiInitialize(
  _In_ PVOID DeviceExtension
)
{ ... }

Parameters

  • DeviceExtension [in]
    Points to the miniport driver's per-HBA storage area.

Return value

If the initialization succeeds, HwScsiInitialize returns TRUE.

Remarks

HwScsiInitialize must initialize the HBA but should avoid resetting the SCSI bus or buses if possible. Interrupts can occur before this routine is called. If HwScsiInitialize resets a bus, it must call ScsiPortNotification to report that the bus was reset.

If HwScsiInitialize cannot initialize the HBA, this routine should call ScsiPortLogError before returning FALSE when it returns control.

The name HwScsiInitialize is just a placeholder. The actual prototype of this routine is defined in srb.h as follows:

typedef
BOOLEAN
(*PHW_INITIALIZE) (
  IN PVOID  DeviceExtension
  );

For more information about HwScsiInitialize see SCSI Miniport Driver's HwScsiInitialize Routine.

Requirements

Target platform

Desktop

Header

Miniport.h (include Scsi.h)

See also

ScsiPortLogError

ScsiPortNotification

 

 

Send comments about this topic to Microsoft