NdisMDeregisterIoPortRange (Compact 2013)
3/26/2014
This function releases a mapping that was set up with the NdisMRegisterIoPortRange function during driver initialization.
Syntax
VOID NdisMDeregisterIoPortRange(
NDIS_HANDLE MiniportAdapterHandle,
UINT InitialPort,
UINT NumberOfPorts,
PVOID PortOffset
);
Parameters
- MiniportAdapterHandle
[in] Handle input to the MiniportInitialize function.
- InitialPort
[in] Specifies the bus-relative address of the first port in the range of ports.
- NumberOfPorts
[in] Specifies the number of ports in the range.
- PortOffset
[in] Specifies the mapped base port address returned by the NdisMRegisterIoPortRange function.
Return Value
None.
Remarks
The miniport must pass the same InitialPort and NumberOfPorts parameters to this function that were passed when the MiniportInitialize function called the NdisMRegisterIoPortRange function to get the mapped PortOffset value. That is, a miniport cannot call this function to release a subrange of a mapped port range.
NdisMDeregisterIoPortRange can be called from the MiniportInitializeEx or MiniportHaltEx functions only if MiniportInitializeEx previously made a successful call to NdisMRegisterIoPortRange.
This function also releases the driver's claim on the I/O port range in the registry.
After it calls NdisMRegisterIoPortRange, the miniport can no longer access the NIC's port range with calls to the NdisRawXXXPortXXX functions.
Requirements
Header |
ndis.h |
Library |
ndis.dll |
See Also
Reference
NDIS I/O Port Interface
MiniportHaltEx
MiniportInitializeEx
NdisMRegisterIoPortRange