NdisMFreeMapRegisters

VOID
    NdisMFreeMapRegisters(
        IN
 NDIS_HANDLE MiniportAdapterHandle
        );

NdisMFreeMapRegisters releases a set of map registers that were allocated during initialization with NdisMAllocateMapRegisters by a busmaster DMA NIC driver.

Parameters

MiniportAdapterHandle
Specifies the handle originally input to MiniportInitialize.

Comments

If it has already made a successful call to NdisMAllocateMapRegisters, the NIC driver of a busmaster DMA device calls NdisMFreeMapRegisters if any of the following occurs:

As soon as it calls NdisMFreeMapRegisters, the driver of a busmaster DMA NIC can no longer use the map registers it previously allocated.

NdisMFreeMapRegisters can be called only from a NIC driver’s MiniportInitialize and MiniportHalt functions.

Callers of NdisMFreeMapRegisters run at IRQL PASSIVE_LEVEL.

See Also

MiniportHalt, MiniportInitialize, NdisMAllocateMapRegisters, NdisMFreeSharedMemory