summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm206/fifo_gm206.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm206/fifo_gm206.c')
-rw-r--r--drivers/gpu/nvgpu/gm206/fifo_gm206.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm206/fifo_gm206.c b/drivers/gpu/nvgpu/gm206/fifo_gm206.c
new file mode 100644
index 00000000..c78f256c
--- /dev/null
+++ b/drivers/gpu/nvgpu/gm206/fifo_gm206.c
@@ -0,0 +1,31 @@
1/*
2 * Copyright (c) 2015-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 <linux/delay.h>
15#include <linux/types.h>
16
17#include "gk20a/gk20a.h"
18#include "gm20b/fifo_gm20b.h"
19#include "fifo_gm206.h"
20#include "hw_ccsr_gm206.h"
21
22static u32 gm206_fifo_get_num_fifos(struct gk20a *g)
23{
24 return ccsr_channel__size_1_v();
25}
26
27void gm206_init_fifo(struct gpu_ops *gops)
28{
29 gm20b_init_fifo(gops);
30 gops->fifo.get_num_fifos = gm206_fifo_get_num_fifos;
31}