Previous Next

NdisRawReadPortUshort

NdisRawReadPortUshort reads a USHORT value from a given I/O port on the NIC.

VOID
  NdisRawReadPortUshort(
    IN ULONG_PTR  Port,
    OUT PUSHORT  Data
    );

Parameters

Port
Specifies the I/O port. This address falls in a range that was mapped during initialization with NdisMRegisterIoPortRange.
Data
Pointer to a caller-supplied variable in which this function returns a USHORT value read in from the port.

Headers

Declared in Ndis.h. Include Ndis.h.

Comments

NdisRawReadPortUshort runs faster than NdisImmediateReadPortUshort because it need not map a bus-relative I/O port address onto a host-dependent logical port address at every call.

Callers of NdisRawReadPortUshort can run at any IRQL.

See Also

MiniportInitialize, NdisMRegisterIoPortRange, NdisRawReadPortBufferUshort, NdisRawReadPortUchar, NdisRawReadPortUlong, NdisRawWritePortUshort