NdisImmediateWritePortUchar

VOID
NdisImmediateWritePortUchar(
IN NDIS_HANDLE
WrapperConfigurationContext,
IN ULONG Port,
IN UCHAR Data
);

NdisImmediateWritePortUchar writes a byte to a given bus-relative I/O port.

Parameters

WrapperConfigurationContext

Specifies the handle input to MiniportInitialize.

Port

Specifies the bus-relative I/O port address.

Data

Specifies the caller-supplied byte value to write to the I/O port.

Comments

NdisImmediateWritePortUchar determines how the host accesses the given I/O port, maps the bus-relative port address, and then writes the given byte to the device.

A miniport driver can call NdisImmediateWritePortUchar during initialization to write data to a device I/O port when that driver has not yet called NdisMRegisterIoPortRange to obtain mapped device memory ranges. After its call to NdisMRegisterIoPortRange, the driver uses the faster NdisRawXxx functions to communicate with its NIC.

Callers of NdisImmediateWritePortUchar run at IRQL PASSIVE_LEVEL.

See Also

MiniportInitialize, NdisImmediateReadPortUchar, NdisImmediateWritePortUlong, NdisImmediateWritePortUshort, NdisMRegisterIoPortRange, NdisRawWritePortUchar