1 /*******************************************************************************
2     Copyright (c) 2015-2022 NVIDIA Corporation
3 
4     Permission is hereby granted, free of charge, to any person obtaining a copy
5     of this software and associated documentation files (the "Software"), to
6     deal in the Software without restriction, including without limitation the
7     rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8     sell copies of the Software, and to permit persons to whom the Software is
9     furnished to do so, subject to the following conditions:
10 
11         The above copyright notice and this permission notice shall be
12         included in all copies or substantial portions of the Software.
13 
14     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17     THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20     DEALINGS IN THE SOFTWARE.
21 
22 *******************************************************************************/
23 
24 #ifndef __UVM_FORWARD_DECL_H__
25 #define __UVM_FORWARD_DECL_H__
26 
27 typedef struct uvm_global_struct uvm_global_t;
28 
29 typedef struct uvm_gpu_struct uvm_gpu_t;
30 typedef struct uvm_parent_gpu_struct uvm_parent_gpu_t;
31 typedef struct uvm_gpu_chunk_struct uvm_gpu_chunk_t;
32 typedef struct uvm_cpu_chunk_struct uvm_cpu_chunk_t;
33 typedef struct uvm_rm_mem_struct uvm_rm_mem_t;
34 typedef struct uvm_mem_struct uvm_mem_t;
35 typedef struct uvm_host_hal_struct uvm_host_hal_t;
36 typedef struct uvm_ce_hal_struct uvm_ce_hal_t;
37 typedef struct uvm_arch_hal_struct uvm_arch_hal_t;
38 typedef struct uvm_fault_buffer_hal_struct uvm_fault_buffer_hal_t;
39 typedef struct uvm_access_counter_buffer_hal_struct uvm_access_counter_buffer_hal_t;
40 typedef struct uvm_sec2_hal_struct uvm_sec2_hal_t;
41 typedef struct uvm_gpu_semaphore_struct uvm_gpu_semaphore_t;
42 typedef struct uvm_gpu_tracking_semaphore_struct uvm_gpu_tracking_semaphore_t;
43 typedef struct uvm_gpu_semaphore_pool_struct uvm_gpu_semaphore_pool_t;
44 typedef struct uvm_gpu_semaphore_pool_page_struct uvm_gpu_semaphore_pool_page_t;
45 typedef struct uvm_gpu_peer_struct uvm_gpu_peer_t;
46 typedef struct uvm_mmu_mode_hal_struct uvm_mmu_mode_hal_t;
47 
48 typedef struct uvm_channel_manager_struct uvm_channel_manager_t;
49 typedef struct uvm_channel_struct uvm_channel_t;
50 typedef struct uvm_user_channel_struct uvm_user_channel_t;
51 typedef struct uvm_push_struct uvm_push_t;
52 typedef struct uvm_push_info_struct uvm_push_info_t;
53 typedef struct uvm_push_acquire_info_struct uvm_push_acquire_info_t;
54 typedef struct uvm_pushbuffer_struct uvm_pushbuffer_t;
55 typedef struct uvm_gpfifo_entry_struct uvm_gpfifo_entry_t;
56 
57 typedef struct uvm_va_policy_struct uvm_va_policy_t;
58 typedef struct uvm_va_range_struct uvm_va_range_t;
59 typedef struct uvm_va_block_struct uvm_va_block_t;
60 typedef struct uvm_va_block_test_struct uvm_va_block_test_t;
61 typedef struct uvm_va_block_wrapper_struct uvm_va_block_wrapper_t;
62 typedef struct uvm_va_block_retry_struct uvm_va_block_retry_t;
63 typedef struct uvm_va_space_struct uvm_va_space_t;
64 typedef struct uvm_va_space_mm_struct uvm_va_space_mm_t;
65 
66 typedef struct uvm_make_resident_context_struct uvm_make_resident_context_t;
67 
68 typedef struct uvm_gpu_va_space_struct uvm_gpu_va_space_t;
69 
70 typedef struct uvm_thread_context_lock_struct uvm_thread_context_lock_t;
71 typedef struct uvm_thread_context_struct uvm_thread_context_t;
72 typedef struct uvm_thread_context_wrapper_struct uvm_thread_context_wrapper_t;
73 
74 typedef struct uvm_perf_module_struct uvm_perf_module_t;
75 
76 typedef struct uvm_page_table_range_vec_struct uvm_page_table_range_vec_t;
77 typedef struct uvm_page_table_range_struct uvm_page_table_range_t;
78 typedef struct uvm_page_tree_struct uvm_page_tree_t;
79 
80 typedef struct uvm_fault_buffer_entry_struct uvm_fault_buffer_entry_t;
81 
82 typedef struct uvm_pte_batch_struct uvm_pte_batch_t;
83 typedef struct uvm_tlb_batch_struct uvm_tlb_batch_t;
84 
85 typedef struct uvm_fault_service_batch_context_struct uvm_fault_service_batch_context_t;
86 typedef struct uvm_service_block_context_struct uvm_service_block_context_t;
87 
88 typedef struct uvm_ats_fault_invalidate_struct uvm_ats_fault_invalidate_t;
89 
90 typedef struct uvm_replayable_fault_buffer_info_struct uvm_replayable_fault_buffer_info_t;
91 typedef struct uvm_non_replayable_fault_buffer_info_struct uvm_non_replayable_fault_buffer_info_t;
92 typedef struct uvm_access_counter_buffer_entry_struct uvm_access_counter_buffer_entry_t;
93 typedef struct uvm_access_counter_service_batch_context_struct uvm_access_counter_service_batch_context_t;
94 typedef struct uvm_pmm_sysmem_mappings_struct uvm_pmm_sysmem_mappings_t;
95 
96 typedef struct uvm_reverse_map_struct uvm_reverse_map_t;
97 
98 typedef struct uvm_ibm_npu_struct uvm_ibm_npu_t;
99 #endif //__UVM_FORWARD_DECL_H__
100