NdisRawReadPortBufferUshort

This function reads a specified number of USHORTs into a caller-supplied buffer.

At a Glance

Header file: Ndis.h
Windows CE versions: 2.0 and later

Syntax

VOID NdisRawReadPortBufferUshort( IN ULONG Port,
OUT PUSHORT
Buffer, IN ULONG Length );

Parameters

Port
Specifies the I/O port. This address falls in a range that was mapped during initialization with the NdisMRegisterIoPortRange function.
Buffer
Pointer to a caller-allocated buffer, in resident memory, into which the USHORTs are transferred from the NIC. The caller must allocate a buffer at least ( sizeof( USHORT ) * Length ).
Length
Specifies how many USHORTs to transfer from the NIC.

Remarks

This function reads each USHORT value, one at a time, from the given I/O port into the given buffer.

A driver that calls this function can run at any IRQL.

See Also

NdisMRegisterIoPortRange, NdisRawReadPortBufferUchar, NdisRawReadPortBufferUlong, NdisRawReadPortUshort, NdisRawWritePortUshort