// storport.h
ULONG StorPortGetDeviceBase2(
PVOID HwDeviceExtension,
INTERFACE_TYPE BusType,
ULONG SystemIoBusNumber,
STOR_PHYSICAL_ADDRESS Address,
ULONG NumberOfBytes,
BOOLEAN InIoSpace,
ULONG Flags,
PVOID *BaseAddress
);
View the official Windows Driver Kit DDI referenceNo description available.
The StorPortGetDeviceBase2 function is like StorPortGetDeviceBase, but the Flags parameter allows for additional optional behavior. Rather than returning a mapped base address, a status is returned and the caller provides a pointer to store the mapping.
HwDeviceExtensionUsed to find port device extension.
BusTypeSpecifies the type of bus, such as EISA, MCA, or ISA.
SystemIoBusNumberSpecifies the IO bus for machines with multiple buses.
AddressThe base device address to be mapped.
NumberOfBytesThe number of bytes for which Address is valid.
InIoSpaceIndicates an IO address.
FlagsUsed to request different attributes when mapping BaseAddress. If Flags is zero, the mapping is non-cached read/write.
BaseAddressA pointer to store the base address mapping in.
Returns a STOR_STATUS_xxx code.
| Return code | Description |
|---|---|
| STOR_STATUS_SUCCESS | The extended function was successfully returned. |
| STOR_STATUS_INVALID_PARAMETER | One of the Flags parameters is invalid. |
| STOR_STATUS_NOT_IMPLEMENTED | The specified extended function is not implemented. |