diff options
author | Joshua Bakita <bakitajoshua@gmail.com> | 2024-09-25 16:09:09 -0400 |
---|---|---|
committer | Joshua Bakita <bakitajoshua@gmail.com> | 2024-09-25 16:09:09 -0400 |
commit | f347fde22f1297e4f022600d201780d5ead78114 (patch) | |
tree | 76be305d6187003a1e0486ff6e91efb1062ae118 /include/os/linux/channel.h | |
parent | 8340d234d78a7d0f46c11a584de538148b78b7cb (diff) |
Delete no-longer-needed nvgpu headersHEADmasterjbakita-wip
The dependency on these was removed in commit 8340d234.
Diffstat (limited to 'include/os/linux/channel.h')
-rw-r--r-- | include/os/linux/channel.h | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/include/os/linux/channel.h b/include/os/linux/channel.h deleted file mode 100644 index e6326fa..0000000 --- a/include/os/linux/channel.h +++ /dev/null | |||
@@ -1,102 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms and conditions of the GNU General Public License, | ||
6 | * version 2, as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
11 | * more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #ifndef NVGPU_LINUX_CHANNEL_H | ||
17 | #define NVGPU_LINUX_CHANNEL_H | ||
18 | |||
19 | #include <linux/workqueue.h> | ||
20 | #include <linux/dma-buf.h> | ||
21 | |||
22 | #include <nvgpu/types.h> | ||
23 | |||
24 | struct channel_gk20a; | ||
25 | struct nvgpu_gpfifo; | ||
26 | struct nvgpu_submit_gpfifo_args; | ||
27 | struct nvgpu_channel_fence; | ||
28 | struct gk20a_fence; | ||
29 | struct fifo_profile_gk20a; | ||
30 | struct nvgpu_os_linux; | ||
31 | |||
32 | struct sync_fence; | ||
33 | struct sync_timeline; | ||
34 | |||
35 | struct nvgpu_channel_completion_cb { | ||
36 | /* | ||
37 | * Signal channel owner via a callback, if set, in job cleanup with | ||
38 | * schedule_work. Means that something finished on the channel (perhaps | ||
39 | * more than one job). | ||
40 | */ | ||
41 | void (*fn)(struct channel_gk20a *, void *); | ||
42 | void *user_data; | ||
43 | /* Make access to the two above atomic */ | ||
44 | struct nvgpu_spinlock lock; | ||
45 | /* Per-channel async work task, cannot reschedule itself */ | ||
46 | struct work_struct work; | ||
47 | }; | ||
48 | |||
49 | struct nvgpu_error_notifier { | ||
50 | struct dma_buf *dmabuf; | ||
51 | void *vaddr; | ||
52 | |||
53 | struct nvgpu_notification *notification; | ||
54 | |||
55 | struct nvgpu_mutex mutex; | ||
56 | }; | ||
57 | |||
58 | /* | ||
59 | * This struct contains fence_related data. | ||
60 | * e.g. sync_timeline for sync_fences. | ||
61 | */ | ||
62 | struct nvgpu_os_fence_framework { | ||
63 | struct sync_timeline *timeline; | ||
64 | }; | ||
65 | |||
66 | struct nvgpu_usermode_bufs_linux { | ||
67 | /* | ||
68 | * Common low level info of these is stored in nvgpu_mems in | ||
69 | * channel_gk20a; these hold lifetimes for the actual dmabuf and its | ||
70 | * dma mapping. | ||
71 | */ | ||
72 | struct nvgpu_usermode_buf_linux { | ||
73 | struct dma_buf *dmabuf; | ||
74 | struct dma_buf_attachment *attachment; | ||
75 | struct sg_table *sgt; | ||
76 | } gpfifo, userd; | ||
77 | }; | ||
78 | |||
79 | struct nvgpu_channel_linux { | ||
80 | struct channel_gk20a *ch; | ||
81 | |||
82 | struct nvgpu_os_fence_framework fence_framework; | ||
83 | |||
84 | struct nvgpu_channel_completion_cb completion_cb; | ||
85 | struct nvgpu_error_notifier error_notifier; | ||
86 | |||
87 | struct dma_buf *cyclestate_buffer_handler; | ||
88 | |||
89 | struct nvgpu_usermode_bufs_linux usermode; | ||
90 | }; | ||
91 | |||
92 | u32 nvgpu_submit_gpfifo_user_flags_to_common_flags(u32 user_flags); | ||
93 | int nvgpu_init_channel_support_linux(struct nvgpu_os_linux *l); | ||
94 | void nvgpu_remove_channel_support_linux(struct nvgpu_os_linux *l); | ||
95 | |||
96 | struct channel_gk20a *gk20a_open_new_channel_with_cb(struct gk20a *g, | ||
97 | void (*update_fn)(struct channel_gk20a *, void *), | ||
98 | void *update_fn_data, | ||
99 | int runlist_id, | ||
100 | bool is_privileged_channel); | ||
101 | |||
102 | #endif | ||