Previous Next

NdisWriteRegisterUshort

NdisWriteRegisterUshort is called by the NIC driver to write a USHORT to a memory-mapped device register.

VOID
  NdisWriteRegisterUshort(
    IN PUSHORT  Register,
    IN USHORT  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
Specifies the caller-supplied USHORT that this function transfers to the 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 NdisWriteRegisterUshort can be running at any IRQL.

See Also

MiniportInitialize, NdisMMapIoSpace, NdisReadRegisterUshort, NdisWriteRegisterUchar, NdisWriteRegisterUlong