Previous Next

NdisReadRegisterUshort

NdisReadRegisterUshort is called by the NIC driver to read a USHORT from a memory-mapped device register.

VOID
  NdisReadRegisterUshort(
    IN PUSHORT  Register,
    OUT PUSHORT  Data
    );

Parameters

Register
Pointer to the memory-mapped register. This virtual address must fall within a range returned by an initialization-time call to NdisMMapIoSpace.
Data
Pointer to the caller-supplied variable in which this function returns the USHORT read from Register.

Headers

Declared in Ndis.h. Include Ndis.h.

Comments

If a driver calls this function, its NIC’s device registers must be mapped to noncached memory during driver initialization.

Callers of NdisReadRegisterUshort can be running at any IRQL.

See Also

MiniportInitialize, NdisMMapIoSpace, NdisReadRegisterUchar, NdisReadRegisterUlong, NdisWriteRegisterUshort