diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-04-07 19:57:18 -0400 |
---|---|---|
committer | Ken Adams <kadams@nvidia.com> | 2016-04-13 11:15:13 -0400 |
commit | 55a5c57bc1fd532cc6d041fdfb70d90286894b35 (patch) | |
tree | 2c5d2bd6ee19d470b576eaee90a85b99d4235015 /drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |
parent | 3f26f6955fc6736384e1d56f9ddff2baaa2102a0 (diff) |
gpu: nvgpu: gv11b: added initial source code
Bug 1735757
Change-Id: Iea7488551a437afa0dfc005c87ad1b9ab9673b6c
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1122123
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hal_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 45 |
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 | |||
28 | int 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 | } | ||