Previous Next

NdisMCompleteBufferPhysicalMapping

NdisMCompleteBufferPhysicalMapping flushes any data remaining in a bus-master NIC’s internal cache at the end of a transfer that was set up with NdisMStartBufferPhysicalMapping.

VOID 
  NdisMCompleteBufferPhysicalMapping(
    IN NDIS_HANDLE MiniportAdapterHandle,
    IN PNDIS_BUFFER Buffer,
    IN ULONG PhysicalMapRegister
    );

Parameters

MiniportAdapterHandle
Specifies the handle input to MiniportInitialize.
Buffer
Pointer to the buffer descriptor, for a shared memory buffer previously mapped with NdisMStartBufferPhysicalMapping.
PhysicalMapRegister
Specifies the index of the map register used for the mapping. This value is identical to the PhysicalMapRegister index passed with the descriptor at Buffer in the preceding call to NdisMStartBufferPhysicalMapping.

Headers

Declared in Ndis.h. Include Ndis.h.

Comments

PhysicalMapRegister is a zero-based value that falls within the index range for the map registers the miniport driver allocated during initialization with NdisMAllocateMapRegisters.

Callers of NdisMCompleteBufferPhysicalMapping run at IRQL <= DISPATCH_LEVEL.

See Also

MiniportHandleInterrupt, MiniportInitialize, MiniportSend, MiniportSendPackets, MiniportTimer, MiniportWanSend, NdisMAllocateMapRegisters, NdisMAllocateSharedMemory, NdisMAllocateSharedMemoryAsync, NdisMStartBufferPhysicalMapping