NAME | SYNOPSIS | FEATURES | EXTENDED DESCRIPTION | ATTRIBUTES | SEE ALSO
#include <dki/dki.h>uint8_f ioLoad8(uint32_f base, uint32_f offset);
DKI
The DKI provides specific I/O routines which can be used by a host bus driver to implement bus I/O operations.
Specific I/O services are defined below as sets of routines where the xx suffix indicates the bit length of the data to which the service applies. This suffix may take one of the following values:
8 for 8-bit data
16 for 16-bit data
32 for 32-bit data
ioLoadxx
The ioLoadxx loads data from a given I/O address and returns the read value. The read location is composed of a base address and an offset from this base. The base argument specifies the base address. The offset argument specifies the offset from the base address.
ioStorexx
The ioStorexx stores a specified value at a given I/O address. The I/O address written is composed of a base address and an offset from this base. The base argument specifies the base address. The offset argument specifies the offset from the base address. The value argument specifies the value to store (write).
ioReadxx
The ioReadxx reads data from a given I/O address count times and stores values at the memory location pointed to by addr .
The read location is composed of a base address and an offset from this base. The base argument specifies the base address. The offset argument specifies the offset from the base address. The addr argument specifies the location where read values will be stored. The count argument specifies the desired number of reads.
ioWritexx
The ioWritexx reads count data from the memory location at addr and writes them at the I/O address specified by base + offset .
The read location is specified by the parameter addr . The I/O location written is composed of a base address and an offset from this base. The base argument specifies the base address. The offset argument specifies the offset from the base address. The count argument specifies the desired number of writes to perform.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | EXTENDED DESCRIPTION | ATTRIBUTES | SEE ALSO