ScsiPortInitialize


ULONG ScsiPortInitialize(Argument1, Argument2, HwInitializationData, HwContext)
IN PVOID  Argument1;
IN PVOID  Argument2;
IN struct _HW_INITIALIZATION_DATA *HwInitializationData;
IN PVOID  HwContext;

Sets up system objects on behalf of the HBA miniport driver.

Argument1

Supplies the first parameter value with which the operating system called the HBA miniport driver's initialization routine.

Argument2

Supplies the second parameter value with which the operating system called the HBA miniport driver's initialization routine.

HwInitializationData

Supplies the initialization parameters for the HBA miniport driver.

HwContext

Supplies a context value which is later passed to the miniport driver's HwFindAdapter function. This context parameter can be used to store state between calls to the HwFindAdapter function.

ScsiPortInitialize is called by the HBA miniport driver's initial entry point (DriverEntry) after the miniport has zeroed and set up the HW_INITIALIZATION_DATA. If the HBA miniport driver can support more than one HBA, on different types of I/O buses, such as ISA and MCA, then the HBA miniport driver should call this function for each supported interface type.

See also DriverEntry, HW_INITIALIZATION_DATA, HwFindAdapter