diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/ce2_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/ce2_vgpu.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c b/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c new file mode 100644 index 00000000..631461f9 --- /dev/null +++ b/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * Virtualized GPU CE2 | ||
3 | * | ||
4 | * Copyright (c) 2015, 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 | |||
16 | #include "vgpu/vgpu.h" | ||
17 | |||
18 | int vgpu_ce2_nonstall_isr(struct gk20a *g, | ||
19 | struct tegra_vgpu_ce2_nonstall_intr_info *info) | ||
20 | { | ||
21 | gk20a_dbg_fn(""); | ||
22 | |||
23 | switch (info->type) { | ||
24 | case TEGRA_VGPU_CE2_NONSTALL_INTR_NONBLOCKPIPE: | ||
25 | gk20a_channel_semaphore_wakeup(g); | ||
26 | break; | ||
27 | default: | ||
28 | WARN_ON(1); | ||
29 | break; | ||
30 | } | ||
31 | |||
32 | return 0; | ||
33 | } | ||