summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/platform_tegra.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-05-01 16:37:03 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-11 14:05:31 -0400
commitbd68f98ba76f43954e9858252a30e6c3b054c146 (patch)
treefaa4e213603b9fe91d911cf5e0f06977c4232db4 /drivers/gpu/nvgpu/platform_tegra.h
parentc3fa78b1d9cba28547ca59154207d434931ae746 (diff)
gpu: nvgpu: Move secure_alloc to struct gk20a
Move the function pointer for VPR page allocation to struct gk20a and use it from there. At the same time remove secure_page_alloc pointer and add a direct call to it in probe. Move platform_tegra.h as tegra/linux/platform_gk20a_tegra.h, as it's only declaring functions defined in platform_gk20a_tegra.c to other files in the same directory. JIRA NVGPU-16 Change-Id: I19ac9ee0b2f6734203ae32a1f51d67fd51aced9f Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1473706 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/platform_tegra.h')
-rw-r--r--drivers/gpu/nvgpu/platform_tegra.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/gpu/nvgpu/platform_tegra.h b/drivers/gpu/nvgpu/platform_tegra.h
deleted file mode 100644
index 63aed5a7..00000000
--- a/drivers/gpu/nvgpu/platform_tegra.h
+++ /dev/null
@@ -1,29 +0,0 @@
1/*
2 * GK20A Platform (SoC) Interface
3 *
4 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 */
15
16#ifndef _NVGPU_PLATFORM_TEGRA_H_
17#define _NVGPU_PLATFORM_TEGRA_H_
18
19#include <nvgpu/types.h>
20
21struct platform_device;
22struct gr_ctx_buffer_desc;
23
24int gk20a_tegra_secure_alloc(struct device *dev,
25 struct gr_ctx_buffer_desc *desc,
26 size_t size);
27int gk20a_tegra_secure_page_alloc(struct device *dev);
28
29#endif