Compartilhar via


NdisRawWritePortBufferUshort (Compact 2013)

3/26/2014

This function writes a specified number of USHORT values from a caller-supplied buffer to a given I/O port.

Syntax

VOID NdisRawWritePortBufferUshort(
    ULONG Port,
  PUSHORT Buffer,
  ULONG Length
);

Parameters

  • Port
    [in] Specifies the I/O port. This address falls in a range that was mapped during initialization with the NdisMRegisterIoPortRange function.
  • Buffer
    [in] Pointer to a caller-allocated resident buffer that contains the USHORTs to be written.
  • Length
    [in] Specifies the number of USHORTs to write to the I/O port.

Return Value

None.

Remarks

A miniport driver calls NdisRawWritePortBufferUshort to transfer a sequence of USHORTs, one at a time, to a network adapter.

NdisRawWritePortBufferUshort runs fast because it do not have to map a bus-relative port address onto a host-dependent logical port address at every call.

Requirements

Header

ndis.h

See Also

Reference

NDIS I/O Port Raw Interface
MiniportInitializeEx
NdisMRegisterIoPortRange
NdisRawReadPortBufferUshort
NdisRawWritePortBufferUchar
NdisRawWritePortBufferUlong
NdisRawWritePortUshort