devi_request_iorange()

Map device registers into memory

Synopsis:

uintptr_t devi_request_iorange( unsigned start, 
                                unsigned len,
                                unsigned flags );

Description:

This function maps device registers into memory.

The arguments are:

start
Start of I/O port area to map.
len
Length of I/O port area.
flags
The flags parameter can be set to DEVI_SHARE_RSRCM to indicate that the I/O range can be shared.

Returns:

A pointer to the first location in the mapped-in range or MAP_FAILED on error.

Classification:

QNX

Safety:
Interrupt handler Not applicable
Signal handler Not applicable
Thread Not applicable