diff options
-rw-r--r-- | Makefile.umbrella.tmk | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/libnvgpu-drv.export | 16 | ||||
-rw-r--r-- | userspace/units/posix-mockio/Makefile.interface.tmk | 25 | ||||
-rw-r--r-- | userspace/units/posix-mockio/Makefile.tmk | 40 | ||||
-rw-r--r-- | userspace/units/posix-mockio/posix-mockio.export | 3 |
5 files changed, 85 insertions, 0 deletions
diff --git a/Makefile.umbrella.tmk b/Makefile.umbrella.tmk index 744c6c05..049ea98c 100644 --- a/Makefile.umbrella.tmk +++ b/Makefile.umbrella.tmk | |||
@@ -24,6 +24,7 @@ NV_REPOSITORY_COMPONENTS := drivers/gpu/nvgpu | |||
24 | NV_REPOSITORY_COMPONENTS += userspace | 24 | NV_REPOSITORY_COMPONENTS += userspace |
25 | NV_REPOSITORY_COMPONENTS += userspace/units/posix-bitops | 25 | NV_REPOSITORY_COMPONENTS += userspace/units/posix-bitops |
26 | NV_REPOSITORY_COMPONENTS += userspace/units/posix-env | 26 | NV_REPOSITORY_COMPONENTS += userspace/units/posix-env |
27 | NV_REPOSITORY_COMPONENTS += userspace/units/posix-mockio | ||
27 | endif | 28 | endif |
28 | 29 | ||
29 | # Local Variables: | 30 | # Local Variables: |
diff --git a/drivers/gpu/nvgpu/libnvgpu-drv.export b/drivers/gpu/nvgpu/libnvgpu-drv.export index b4244389..dc5d088f 100644 --- a/drivers/gpu/nvgpu/libnvgpu-drv.export +++ b/drivers/gpu/nvgpu/libnvgpu-drv.export | |||
@@ -15,3 +15,19 @@ test_and_clear_bit | |||
15 | test_and_set_bit | 15 | test_and_set_bit |
16 | bitmap_clear | 16 | bitmap_clear |
17 | bitmap_set | 17 | bitmap_set |
18 | nvgpu_readl | ||
19 | nvgpu_writel | ||
20 | nvgpu_writel_check | ||
21 | nvgpu_bar1_writel | ||
22 | nvgpu_usermode_writel | ||
23 | __nvgpu_readl | ||
24 | nvgpu_bar1_readl | ||
25 | nvgpu_posix_register_io | ||
26 | nvgpu_posix_io_writel_reg_space | ||
27 | nvgpu_posix_io_record_access | ||
28 | nvgpu_posix_io_readl_reg_space | ||
29 | nvgpu_posix_io_init_reg_space | ||
30 | nvgpu_posix_io_start_recorder | ||
31 | nvgpu_posix_io_add_reg_space | ||
32 | nvgpu_posix_io_get_error_code | ||
33 | nvgpu_posix_io_check_sequence | ||
diff --git a/userspace/units/posix-mockio/Makefile.interface.tmk b/userspace/units/posix-mockio/Makefile.interface.tmk new file mode 100644 index 00000000..87b47398 --- /dev/null +++ b/userspace/units/posix-mockio/Makefile.interface.tmk | |||
@@ -0,0 +1,25 @@ | |||
1 | ################################### tell Emacs this is a -*- makefile-gmake -*- | ||
2 | # | ||
3 | # Copyright (c) 2018, NVIDIA CORPORATION. All Rights Reserved. | ||
4 | # | ||
5 | # NVIDIA CORPORATION and its licensors retain all intellectual property | ||
6 | # and proprietary rights in and to this software, related documentation | ||
7 | # and any modifications thereto. Any use, reproduction, disclosure or | ||
8 | # distribution of this software and related documentation without an express | ||
9 | # license agreement from NVIDIA CORPORATION is strictly prohibited. | ||
10 | # | ||
11 | # tmake for SW Mobile component makefile | ||
12 | # | ||
13 | ############################################################################### | ||
14 | |||
15 | ifdef NV_INTERFACE_FLAG_SHARED_LIBRARY_SECTION | ||
16 | NV_INTERFACE_NAME := posix-mockio | ||
17 | NV_INTERFACE_EXPORTS := posix-mockio | ||
18 | NV_INTERFACE_PUBLIC_INCLUDES := . include | ||
19 | endif | ||
20 | |||
21 | # Local Variables: | ||
22 | # indent-tabs-mode: t | ||
23 | # tab-width: 8 | ||
24 | # End: | ||
25 | # vi: set tabstop=8 noexpandtab: | ||
diff --git a/userspace/units/posix-mockio/Makefile.tmk b/userspace/units/posix-mockio/Makefile.tmk new file mode 100644 index 00000000..fbc31351 --- /dev/null +++ b/userspace/units/posix-mockio/Makefile.tmk | |||
@@ -0,0 +1,40 @@ | |||
1 | ################################### tell Emacs this is a -*- makefile-gmake -*- | ||
2 | # | ||
3 | # Copyright (c) 2018 NVIDIA CORPORATION. All Rights Reserved. | ||
4 | # | ||
5 | # NVIDIA CORPORATION and its licensors retain all intellectual property | ||
6 | # and proprietary rights in and to this software, related documentation | ||
7 | # and any modifications thereto. Any use, reproduction, disclosure or | ||
8 | # distribution of this software and related documentation without an express | ||
9 | # license agreement from NVIDIA CORPORATION is strictly prohibited. | ||
10 | # | ||
11 | # tmake for SW Mobile component makefile | ||
12 | # | ||
13 | ############################################################################### | ||
14 | |||
15 | ifdef NV_COMPONENT_FLAG_SHARED_LIBRARY_SECTION | ||
16 | include $(NV_BUILD_START_COMPONENT) | ||
17 | |||
18 | NV_COMPONENT_NAME := posix-mockio | ||
19 | NV_COMPONENT_SOURCES := posix-mockio.c | ||
20 | NV_COMPONENT_OWN_INTERFACE_DIR := . | ||
21 | NV_COMPONENT_CFLAGS += -D__NVGPU_POSIX__ | ||
22 | |||
23 | NV_COMPONENT_NEEDED_INTERFACE_DIRS := \ | ||
24 | $(NV_SOURCE)/kernel/nvgpu/drivers/gpu/nvgpu \ | ||
25 | $(NV_SOURCE)/kernel/nvgpu/userspace | ||
26 | |||
27 | NV_COMPONENT_SYSTEMIMAGE_DIR := $(NV_SYSTEMIMAGE_TEST_EXECUTABLE_DIR)/nvgpu_unit/units | ||
28 | systemimage:: $(NV_COMPONENT_SYSTEMIMAGE_DIR) | ||
29 | $(NV_COMPONENT_SYSTEMIMAGE_DIR) : $(NV_SYSTEMIMAGE_TEST_EXECUTABLE_DIR) | ||
30 | $(MKDIR_P) $@ | ||
31 | |||
32 | include $(NV_BUILD_SHARED_LIBRARY) | ||
33 | |||
34 | endif | ||
35 | |||
36 | # Local Variables: | ||
37 | # indent-tabs-mode: t | ||
38 | # tab-width: 8 | ||
39 | # End: | ||
40 | # vi: set tabstop=8 noexpandtab: | ||
diff --git a/userspace/units/posix-mockio/posix-mockio.export b/userspace/units/posix-mockio/posix-mockio.export new file mode 100644 index 00000000..b039dd36 --- /dev/null +++ b/userspace/units/posix-mockio/posix-mockio.export | |||
@@ -0,0 +1,3 @@ | |||
1 | # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. | ||
2 | |||
3 | __unit_module__ | ||