This documentation is archived and is not being maintained.

NdisWriteRegisterUshort (NDIS 5.1) function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

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

Syntax


VOID NdisWriteRegisterUshort(
  _In_ PUSHORT Register,
  _In_ USHORT  Data
);

Parameters

Register [in]

Pointer to the memory-mapped register. This virtual address must fall within a range returned by an initialization-time call to NdisMMapIoSpace.

Data [in]

Specifies the caller-supplied USHORT that this function transfers to the Register.

Return value

None

Remarks

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

Requirements

Target platform

Desktop

Version

See NdisWriteRegisterUshort.

Header

Ndis.h (include Ndis.h)

IRQL

Any level

See also

MiniportInitialize
NdisMMapIoSpace
NdisReadRegisterUshort
NdisWriteRegisterUchar
NdisWriteRegisterUlong

 

 

Send comments about this topic to Microsoft

Show: