summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hal_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/hal_gv11b.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
new file mode 100644
index 00000000..0debe7ce
--- /dev/null
+++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
@@ -0,0 +1,45 @@
1/*
2 * GV11B Tegra HAL interface
3 *
4 * Copyright (c) 2016, 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 <linux/types.h>
17#include <linux/printk.h>
18
19#include <linux/types.h>
20
21#include "gk20a/gk20a.h"
22
23#include "gv11b/gr_gv11b.h"
24#include "gv11b/mc_gv11b.h"
25
26#include "gm20b/gr_gm20b.h"
27
28int gv11b_init_hal(struct gk20a *g)
29{
30 struct gpu_ops *gops = &g->ops;
31 struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics;
32
33 gv11b_init_mc(gops);
34 gv11b_init_gr(gops);
35 gops->name = "gv11b";
36
37 c->twod_class = FERMI_TWOD_A;
38 c->threed_class = VOLTA_A;
39 c->compute_class = VOLTA_COMPUTE_A;
40 c->gpfifo_class = VOLTA_CHANNEL_GPFIFO_A;
41 c->inline_to_memory_class = KEPLER_INLINE_TO_MEMORY_B;
42 c->dma_copy_class = VOLTA_DMA_COPY_A;
43
44 return 0;
45}