nvgpu: userspace: bundle mocked IO space definitions into library

At present each nvgpu test unit defines its own mocked IO space. This is used to
intialize the qnx/posix IO framework. This results in unwanted redefinitions,
bloating of the binary. This patch creates a shared library which contains all
the mocked IO space definitions and it exports a function which enable units to
query, get access to the mocked IO space.

Jira: NVGPU-4520

Change-Id: Ied19f14e25274953e15a785b3a73053d84012b80
Signed-off-by: Antony Clince Alex <aalex@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2260042
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Antony Clince Alex
2019-12-11 14:09:23 +05:30
committed by Alex Waterman
parent b1e4c0ef72
commit 8ffbd7faff
8 changed files with 144730 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
# Copyright (c) 2019, NVIDIA CORPORATION. All Rights Reserved.
gv11b_get_mock_iospace