NdisReadPortBufferUshort

VOID
    NdisReadPortBufferUshort(
        IN NDIS_HANDLE NdisAdapterHandle,
        IN ULONG Port,
        OUT PUSHORT Buffer,
        IN ULONG Length
        );

NdisReadPortBufferUshort is called by the NIC driver to read a specified number of USHORTs from its NIC into a buffer.

Parameters

NdisAdapterHandle
Specifies the handle that the NDIS interface library associates with the network interface card.
Port
Specifies the I/O port.
Buffer
Points to the caller-supplied buffer in which this function writes the USHORT values read from Port.
Length
Specifies the number of pieces of data to read from Port to Buffer.

Comments

NdisReadPortBufferUshort reads sequentially each ULONG from the port. It determines how the host accesses the I/O port and processes the read request accordingly.

Callers of NdisReadPortBufferShort can be running at any IRQL.

See Also

NdisRawReadPortBufferUshort, NdisReadPortUshort, NdisWritePortBufferUshort