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:

  • 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.

NdisRawReadPortXxx

Reads a single piece of data from an I/O port. Specific functions include:

NdisRawReadPortUchar

NdisRawReadPortUlong

NdisRawReadPortUshort

NdisRawReadPortBufferXxx

Reads a buffer of data a piece at a time from an I/O port. Specific functions include:

NdisRawReadPortBufferUchar

NdisRawReadPortBufferUlong

NdisRawReadPortBufferUshort

NdisRawWritePortXxx

Writes a single piece of data to an I/O port. Specific functions include:

NdisRawWritePortUchar

NdisRawWritePortUlong

NdisRawWritePortUshort

NdisRawWritePortBufferXxx

Writes a buffer of data to I/O port. Specific functions include:

NdisRawWritePortBufferUchar

NdisRawWritePortBufferUlong

NdisRawWritePortBufferUshort

 

 

Send comments about this topic to Microsoft