diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-03-15 18:49:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-31 20:21:34 -0400 |
commit | dd88aed5cc3088285c5d0b900aebf705f52178c5 (patch) | |
tree | 371ffb74c97305be99fe312b45e30793dab36926 /drivers/gpu/nvgpu/include | |
parent | 56df8c58088b5c8b4a09ce6f5e195614251bf8d0 (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.h | 46 |
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 | |||
22 | struct gk20a; | ||
23 | struct mm_gk20a; | ||
24 | struct mem_desc; | ||
25 | |||
26 | /* | ||
27 | * This typedef is for functions that get called during the access_batched() | ||
28 | * operation. | ||
29 | */ | ||
30 | typedef void (*pramin_access_batch_fn)(struct gk20a *g, u32 start, u32 words, | ||
31 | u32 **arg); | ||
32 | |||
33 | /* | ||
34 | * Generally useful batch functions. | ||
35 | */ | ||
36 | void pramin_access_batch_rd_n(struct gk20a *g, u32 start, u32 words, u32 **arg); | ||
37 | void pramin_access_batch_wr_n(struct gk20a *g, u32 start, u32 words, u32 **arg); | ||
38 | void pramin_access_batch_set(struct gk20a *g, u32 start, u32 words, u32 **arg); | ||
39 | |||
40 | void 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 | |||
44 | void nvgpu_init_pramin(struct mm_gk20a *mm); | ||
45 | |||
46 | #endif | ||