summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pramin.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pramin.h b/drivers/gpu/nvgpu/include/nvgpu/pramin.h
new file mode 100644
index 00000000..7e0df06b
--- /dev/null
+++ b/drivers/gpu/nvgpu/include/nvgpu/pramin.h
@@ -0,0 +1,46 @@
1/*
2 * Copyright (c) 2017, 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 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef __NVGPU_PRAMIN_H__
18#define __NVGPU_PRAMIN_H__
19
20#include <linux/types.h>
21
22struct gk20a;
23struct mm_gk20a;
24struct mem_desc;
25
26/*
27 * This typedef is for functions that get called during the access_batched()
28 * operation.
29 */
30typedef void (*pramin_access_batch_fn)(struct gk20a *g, u32 start, u32 words,
31 u32 **arg);
32
33/*
34 * Generally useful batch functions.
35 */
36void pramin_access_batch_rd_n(struct gk20a *g, u32 start, u32 words, u32 **arg);
37void pramin_access_batch_wr_n(struct gk20a *g, u32 start, u32 words, u32 **arg);
38void pramin_access_batch_set(struct gk20a *g, u32 start, u32 words, u32 **arg);
39
40void nvgpu_pramin_access_batched(struct gk20a *g, struct mem_desc *mem,
41 u32 offset, u32 size,
42 pramin_access_batch_fn loop, u32 **arg);
43
44void nvgpu_init_pramin(struct mm_gk20a *mm);
45
46#endif