ScsiPortFreeDeviceBase


VOID ScsiPortFreeDeviceBase(HwDeviceExtension, MappedAddress)
IN PVOID  HwDeviceExtension;
IN PVOID MappedAddress;

Frees a block of I/O addresses or memory space previously mapped into the system address space.

HwDeviceExtension

Points to the HBA miniport driver's storage for per-adapter data.

MappedAddress

Is the address to be freed. This pointer must be the same as that returned by ScsiPortGetDeviceBase.

If the HBA miniport driver determines that the device base is not needed, it should release the mapping by calling this function. For example, when the driver determines there are no support HBAs on an I/O bus, it should call ScsiPortFreeDeviceBase with each base address returned by the miniport driver's calls to ScsiPortGetDeviaBase.

ScsiPortFreeDeviceBase can be called only from HBA miniport driver's HwFindAdapter routine. Calls from other HBA miniport driver functions will result in system failure or an incorrect operation.

See also HwFindAdapter, ScsiPortGetDeviceBase