DriverEntry
ULONG DriverEntry(Argument1, Argument2)
IN PVOID Argument1;
IN PVOID Argument2;
An HBA-specific miniport driver must supply a routine explicitly named DriverEntry in order to be loaded.
- Must zero all of the fields in the HW_INITIALIZATION_DATA structure and then initialize it. DriverEntry then calls ScsiPortInitialize, and returns the value returned by ScsiPortInitialize. If the HBA miniport driver supports more than one type of bus, such as MCA and ISA, it should call the ScsiPortInitialize routine once for each supported type. Such a miniport driver should return the lowest value returned by ScsiPortInitialize.
- Argument1
- Points to a context with which the HBA miniport driver should call ScsiPortInitialize.
- Argument2
- Points to a second context with which the HBA miniport driver should call ScsiPortInitialize.
A miniport DriverEntry routine allocates memory on its stack and initializes the HW_INITIALIZATION_DATA structure.
All of the fields in the HW_INITIALIZATION_DATA structure must be initialized. DriverEntry then calls ScsiPortInitialize, and it returns the value returned by ScsiPortInitialize.
See Also
HW_INITIALIZATION_DATA, ScsiPortInitialize