Parameters

Description

These routines generate a read of various sizes from the device address,
dev_addr, in I/O space. The ddi_io_get8(), ddi_io_get16(), and ddi_io_get32() functions read 8
bits, 16 bits, and 32 bits of data, respectively, from the device address,
dev_addr.

Each individual datum will automatically be translated to maintain a consistent view
between the host and the device based on the encoded information in
the data access handle. The translation may involve byte-swapping if the
host and the device have incompatible endian characteristics.

Context

These functions can be called from user, kernel, or interrupt context.