Contents

ioWrite16

Writes a 16-bit value to an I/O space aperture.

Declaration

virtual void ioWrite16(
 UInt16 offset,
 UInt16 value, 
 IOMemoryMap *map = 0 );

Parameters

  • offset:

    An offset into a bus or device's I/O space aperture.

  • value:

    The value to be written in host byte order (big endian on PPC).

  • map:

    If the offset is relative to the beginning of a device's aperture, an IOMemoryMap object for that object should be passed in. Otherwise, passing zero will write the value relative to the beginning of the bus' I/O space.

Overview

This method will write a 16-bit value to a 2 byte aligned offset in an I/O space aperture. If a map object is passed in, the value is written relative to it, otherwise to the value is written relative to the I/O space aperture for the bus. This function encapsulates the differences between architectures in generating I/O space operations. An eieio instruction is included on PPC.

See Also

Miscellaneous