NdisImmediateReadPortUlong

VOID
    NdisImmediateReadPortUlong(
        IN NDIS_HANDLE
 WrapperConfigurationContext,
        IN ULONG Port,
        OUT PULONG Data
        );

NdisImmediateReadPortUlong reads a ULONG from 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
Points to a caller-supplied variable in which this function returns the value read from the I/O port.

Comments

NdisImmediateReadPortUlong determines how the host accesses the given I/O port, maps the bus-relative port address, and then reads a ULONG-type value from the device.

A miniport driver can call NdisImmediateReadPortUlong during initialization to read data from 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 NdisImmediateReadPortUlong run at IRQL PASSIVE_LEVEL.

See Also

MiniportInitialize, NdisImmediateReadPortUchar, NdisImmediateReadPortUshort, NdisImmediateWritePortUlong, NdisMRegisterIoPortRange, NdisRawReadPortUlong