Previous Next

NdisRawReadPortBufferUshort

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

VOID
  NdisRawReadPortBufferUshort(
    IN ULONG_PTR  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 NdisMRegisterIoPortRange.
Buffer
Pointer to a caller-allocated buffer, in resident memory, into which the USHORTs will be 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.

Headers

Declared in Ndis.h. Include Ndis.h.

Comments

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

Callers of NdisRawReadPortBufferUshort can run at any IRQL.

See Also

MiniportInitialize, NdisMRegisterIoPortRange, NdisRawReadPortBufferUchar, NdisRawReadPortBufferUlong, NdisRawReadPortUshort, NdisRawWritePortBufferUshort