summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-03-15 18:49:18 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-31 20:21:34 -0400
commitdd88aed5cc3088285c5d0b900aebf705f52178c5 (patch)
tree371ffb74c97305be99fe312b45e30793dab36926 /drivers/gpu/nvgpu/include
parent56df8c58088b5c8b4a09ce6f5e195614251bf8d0 (diff)
gpu: nvgpu: Split out pramin code
Split out the pramin interface code in preparation for splitting out the mem_desc code. JIRA NVGPU-12 Change-Id: I3f03447ea213cc15669b0934fa706e7cb22599b7 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1323323 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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