NDIS-Supplied I/O Port Functions (NDIS 5.1)
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.
The NDIS Library provides a set of I/O functions that a miniport network interface card (NIC) driver calls to access I/O ports. These calls provide a standard portable interface that supports the various operating environments for NDIS drivers. Functions are provided for mapping ports, for claiming I/O resources, and for reading from and writing to the mapped and unmapped I/O ports.
The following I/O port functions are supplied by NDIS:
- NdisMRegisterIoPortRange
Sets up access to I/O ports for using NdisRawReadPortXxx and NdisRawWritePortXxx.
- NdisMDeregisterIoPortRange
Removes access to I/O ports previously registered with NdisMRegisterIoPortRange.
- NdisMMapIoSpace
Maps a range of device memory for subsequent memory-mapped I/O operations.
- NdisZeroMappedMemory
Fills a block of memory with zeros that was mapped with a preceding call to NdisMMapIoSpace.
- NdisMoveFromMappedMemory
Copies data from device memory that was mapped during initialization with NdisMMapIoSpace to a system-space buffer.
- NdisMoveToMappedMemory
Copies data from a system-space buffer to device memory that was mapped during initialization with NdisMMapIoSpace.
- NdisMUnmapIoSpace
Releases a region mapped by a call to NdisMMapIoSpace.
NdisRawReadPortXxx
Reads a single piece of data from an I/O port. Specific functions include:
NdisRawReadPortBufferXxx
Reads a buffer of data a piece at a time from an I/O port. Specific functions include:
NdisRawWritePortXxx
Writes a single piece of data to an I/O port. Specific functions include:
NdisRawWritePortBufferXxx
Writes a buffer of data to I/O port. Specific functions include: