HalFreeAdapterObject

VOID __stdcall HalFreeAdapterObject(_ADAPTER_OBJECT *ChildAdapter, _IO_ALLOCATION_ACTION AllocationAction){
  if( AllocationAction != DeallocateObject )
  {
    if( AllocationAction != DeallocateObjectKeepRegisters )
      return;
    ChildAdapter->NumberOfMapRegisters = 0;
  }
  IoFreeAdapterChannel(&ChildAdapter->AdapterObject.DmaHeader);
}

Referenced by:

HalpAllocateDmaResourcesInternal