This section contains the following topics:
The best practice for storage miniport drivers is to avoid calling operating system routines other than the routines that the port driver support libraries provide. For example, storage miniport drivers should not call KeQuerySystemTime. Instead, miniport drivers should call routines like ScsiPortQuerySystemTime or StorPortQuerySystemTime. Storage miniport drivers should not call MmGetPhysicalAddress. Instead, miniport drivers should call routines like ScsiPortGetPhysicalAddress and StorPortGetPhysicalAddress.
Do not use Hardware Abstraction Layer Routines in miniport drivers.
The following list indicates the port driver support library that each type of storage miniport driver should use:
SCSI Port miniport drivers: SCSI Port Library Routines
Storport miniport drivers: Storport Driver Support Routines
IDE miniport drivers: PciIdeX Library Routines
ATA Port miniport drivers: ATA Port Library Routines