Functions | |
| NvError | NvOsMapRegSpace (NvU64 *reg, NvU32 base, NvU32 size) |
| This function map device's physical address to process's address space. And mapped address is stored into VirtReg. VirtReg can be used as a reg parameter of NvOsReadReg(). More... | |
| NvU32 | NvOsReadReg (NvU64 reg, NvU32 off) |
| This function reads the value of device's physical address from mapped pointer. And mapped address is given as Reg and Off parameter. This function returns the value of address, which is pointed by the sum of two parameters (Reg and Off). And the sum is passed to port parameter of in32() in QNX libc. More... | |
| NvError | NvOsUnMapRegSpace (NvU64 *reg, NvU32 base, NvU32 size) |
| This function unmap device's physical address from process's address space. More... | |
| void | NvOsWriteReg (NvU64 reg, NvU32 off, NvU32 val) |
| This function writes the val parameter to the sum of two parameters (Reg and Off) and the sum is passed to port parameter of out32() in QNX libc. More... | |
| NvError NvOsMapRegSpace | ( | NvU64 * | reg, |
| NvU32 | base, | ||
| NvU32 | size | ||
| ) |
This function map device's physical address to process's address space. And mapped address is stored into VirtReg. VirtReg can be used as a reg parameter of NvOsReadReg().
| [out] | reg | Pointer is mapped to device's physical address |
| [in] | base | Device's physical address to map to process's address space. And it is passed to physical parameter of mmap_device_memory() in QNX libc |
| [in] | size | Number of bytes to map device's physical address. This is passed to len parameter of mmap_device_memory() in QNX libc |
Usage considerations
| NvU32 NvOsReadReg | ( | NvU64 | reg, |
| NvU32 | off | ||
| ) |
This function reads the value of device's physical address from mapped pointer. And mapped address is given as Reg and Off parameter. This function returns the value of address, which is pointed by the sum of two parameters (Reg and Off). And the sum is passed to port parameter of in32() in QNX libc.
| [in] | reg | Mapped pointer which is pointing device's physical address |
| [in] | off | Offset address from mapped pointer, and it is passed to port parameter of in32() |
Usage considerations
| NvError NvOsUnMapRegSpace | ( | NvU64 * | reg, |
| NvU32 | base, | ||
| NvU32 | size | ||
| ) |
This function unmap device's physical address from process's address space.
| [out] | reg | Mapped pointer which is pointing device's physical address |
| [in] | base | Device's physical address to unmap to process's address space and it is passed to addr parameter of munmap_device_memory() |
| [in] | size | Number of bytes to unmap device's physical address. This is passed to len parameter of munmap_device_memory() |
Usage considerations
| void NvOsWriteReg | ( | NvU64 | reg, |
| NvU32 | off, | ||
| NvU32 | val | ||
| ) |
This function writes the val parameter to the sum of two parameters (Reg and Off) and the sum is passed to port parameter of out32() in QNX libc.
| [in] | reg | Mapped pointer which is pointing device's physical address |
| [in] | off | Offset address from mapped pointer |
| [in] | val | variable to write |
Usage considerations