PHW_ADAPTER_CONTROL callback function (srb.h)

The PHW_INITIALIZE routine prototype declares a routine that initializes the miniport driver after a reboot or power failure occurs.

Syntax

PHW_ADAPTER_CONTROL PhwAdapterControl;

SCSI_ADAPTER_CONTROL_STATUS PhwAdapterControl(
  [in] PVOID DeviceExtension,
  [in] SCSI_ADAPTER_CONTROL_TYPE ControlType,
  [in] PVOID Parameters
)
{...}

Parameters

[in] DeviceExtension

Pointer to the miniport driver's per-HBA storage area.

[in] ControlType

Specifies an adapter-control operation. For a list of the allowed operations, see HwScsiAdapterControl.

[in] Parameters

Contains information related to the ControlType. For an explanation of the meaning of these values, see the discussion accompanying the Parameters parameter of the HwScsiAdapterControl.

Return value

The routine declared by this prototype returns different sets of values depending on the control type. For a complete description of the return values, see HwScsiAdapterControl.

Remarks

The adapter control routine for both SCSI and StorPort miniport drivers are declared using this prototype.

For more information about the SCSI miniport driver's adapter control routine, see HwScsiAdapterControl.

For more information about the adapter control routine that is used with the StorPort driver's miniport driver, see HwStorAdapterControl.

Requirements

Requirement Value
Target Platform Desktop
Header srb.h (include Storport.h, Srb.h, Storport.h)

See also

HwScsiAdapterControl

HwStorAdapterControl