summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/sync_gk20a.h
diff options
context:
space:
mode:
authorDebarshi Dutta <ddutta@nvidia.com>2018-05-10 23:48:48 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-14 09:07:12 -0400
commita51eb9da021c2934e196c5d8be04551703e6bb5b (patch)
tree843036626eff3733759ab003fc577a1ae2e729ae /drivers/gpu/nvgpu/gk20a/sync_gk20a.h
parent4dac924aba27aa46267fb39f3ed968318292a7f5 (diff)
gpu: nvgpu: move sync_gk20a under common/linux directory
sync_gk20a.* files are no longer used by core code and only invoked from linux specific implementations of the OS_FENCE framework which are under the common/linux directory. Hence, sync_gk20a.* files are also moved under common/linux. JIRA NVGPU-66 Change-Id: If623524611373d2da39b63cfb3c1e40089bf8d22 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1712900 Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/sync_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/sync_gk20a.h59
1 files changed, 0 insertions, 59 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/sync_gk20a.h b/drivers/gpu/nvgpu/gk20a/sync_gk20a.h
deleted file mode 100644
index ffdfaec3..00000000
--- a/drivers/gpu/nvgpu/gk20a/sync_gk20a.h
+++ /dev/null
@@ -1,59 +0,0 @@
1/*
2 * drivers/video/tegra/host/gk20a/sync_gk20a.h
3 *
4 * GK20A Sync Framework Integration
5 *
6 * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and associated documentation files (the "Software"),
10 * to deal in the Software without restriction, including without limitation
11 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12 * and/or sell copies of the Software, and to permit persons to whom the
13 * Software is furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24 * DEALINGS IN THE SOFTWARE.
25 */
26
27#ifndef _GK20A_SYNC_H_
28#define _GK20A_SYNC_H_
29
30struct sync_timeline;
31struct sync_fence;
32struct sync_pt;
33struct nvgpu_semaphore;
34struct fence;
35
36#ifdef CONFIG_SYNC
37struct sync_timeline *gk20a_sync_timeline_create(const char *name);
38void gk20a_sync_timeline_destroy(struct sync_timeline *);
39void gk20a_sync_timeline_signal(struct sync_timeline *);
40struct sync_fence *gk20a_sync_fence_create(
41 struct channel_gk20a *c,
42 struct nvgpu_semaphore *,
43 const char *fmt, ...);
44struct sync_fence *gk20a_sync_fence_fdget(int fd);
45struct nvgpu_semaphore *gk20a_sync_pt_sema(struct sync_pt *spt);
46#else
47static inline void gk20a_sync_timeline_destroy(struct sync_timeline *obj) {}
48static inline void gk20a_sync_timeline_signal(struct sync_timeline *obj) {}
49static inline struct sync_fence *gk20a_sync_fence_fdget(int fd)
50{
51 return NULL;
52}
53static inline struct sync_timeline *gk20a_sync_timeline_create(
54 const char *name) {
55 return NULL;
56}
57#endif
58
59#endif