summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c
deleted file mode 100644
index 5da6f88a..00000000
--- a/drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c
+++ /dev/null
@@ -1,46 +0,0 @@
1/*
2 * Virtualized GPU CE2
3 *
4 * Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#include "vgpu.h"
20#include "gk20a/channel_gk20a.h"
21
22#include <nvgpu/bug.h>
23
24int vgpu_ce2_nonstall_isr(struct gk20a *g,
25 struct tegra_vgpu_ce2_nonstall_intr_info *info)
26{
27 gk20a_dbg_fn("");
28
29 switch (info->type) {
30 case TEGRA_VGPU_CE2_NONSTALL_INTR_NONBLOCKPIPE:
31 gk20a_channel_semaphore_wakeup(g, true);
32 break;
33 default:
34 WARN_ON(1);
35 break;
36 }
37
38 return 0;
39}
40
41u32 vgpu_ce_get_num_pce(struct gk20a *g)
42{
43 struct vgpu_priv_data *priv = vgpu_get_priv_data(g);
44
45 return priv->constants.num_pce;
46}