summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/fifo_gp106.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/fifo_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/fifo_gp106.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/gp106/fifo_gp106.c b/drivers/gpu/nvgpu/gp106/fifo_gp106.c
index 5fa03d6f..22a49260 100644
--- a/drivers/gpu/nvgpu/gp106/fifo_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/fifo_gp106.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 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, 5 * under the terms and conditions of the GNU General Public License,
@@ -19,14 +19,7 @@
19#include <nvgpu/hw/gp106/hw_ccsr_gp106.h> 19#include <nvgpu/hw/gp106/hw_ccsr_gp106.h>
20#include <nvgpu/hw/gp106/hw_fifo_gp106.h> 20#include <nvgpu/hw/gp106/hw_fifo_gp106.h>
21 21
22static u32 gp106_fifo_get_num_fifos(struct gk20a *g) 22u32 gp106_fifo_get_num_fifos(struct gk20a *g)
23{ 23{
24 return ccsr_channel__size_1_v(); 24 return ccsr_channel__size_1_v();
25} 25}
26
27void gp106_init_fifo(struct gpu_ops *gops)
28{
29 gp10b_init_fifo(gops);
30 gops->fifo.get_num_fifos = gp106_fifo_get_num_fifos;
31 gops->fifo.eng_runlist_base_size = fifo_eng_runlist_base__size_1_v;
32}