diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/fifo_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/fifo_gp106.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/fifo_gp106.c b/drivers/gpu/nvgpu/gp106/fifo_gp106.c new file mode 100644 index 00000000..3c70d517 --- /dev/null +++ b/drivers/gpu/nvgpu/gp106/fifo_gp106.c | |||
@@ -0,0 +1,30 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms and conditions of the GNU General Public License, | ||
6 | * version 2, as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
11 | * more details. | ||
12 | */ | ||
13 | |||
14 | #include "gk20a/gk20a.h" | ||
15 | #include "gp10b/fifo_gp10b.h" | ||
16 | #include "fifo_gp106.h" | ||
17 | #include "hw_ccsr_gp106.h" | ||
18 | #include "hw_fifo_gp106.h" | ||
19 | |||
20 | static u32 gp106_fifo_get_num_fifos(struct gk20a *g) | ||
21 | { | ||
22 | return ccsr_channel__size_1_v(); | ||
23 | } | ||
24 | |||
25 | void gp106_init_fifo(struct gpu_ops *gops) | ||
26 | { | ||
27 | gp10b_init_fifo(gops); | ||
28 | gops->fifo.get_num_fifos = gp106_fifo_get_num_fifos; | ||
29 | gops->fifo.eng_runlist_base_size = fifo_eng_runlist_base__size_1_v; | ||
30 | } | ||