HalpDmaGetAdapterVersion

NTSTATUS __stdcall HalpDmaGetAdapterVersion(_ADAPTER_OBJECT *ChildAdapter){
  unsigned int LibraryVersion; 
  NTSTATUS result; 

  LibraryVersion = ChildAdapter->AdapterObject.LibraryVersion;
  result = 2;
  if( LibraryVersion != 2 )
  {
    result = -1;
    if( LibraryVersion == 3 )
      return 3;
  }
  return result;
}

Referenced by:

HalAllocateAdapterChannel
HalAllocateCommonBuffer
HalGetAdapterV2
HalGetAdapterV3
HalGetScatterGatherList
HalJoinDmaDomain
HalpDmaAllocateContiguousPagesFromContiguousPool
HalpDmaAllocateContiguousPagesFromContiguousPoolAtHighLevel
HalpDmaAllocateMapRegistersAtHighLevel
HalpDmaAllocateScatterPagesFromScatterPoolAtHighLevel
HalpDmaGetAdapterCacheAlignment
HalpDmaNextContiguousPiece
IoFlushAdapterBuffers
IoFreeAdapterChannel
IoFreeMapRegisters
IoMapTransferInternal