summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c8
-rw-r--r--drivers/gpu/nvgpu/platform_tegra.h31
2 files changed, 35 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
index 14e509ac..a6dc8a35 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
@@ -60,7 +60,7 @@ static void gk20a_tegra_secure_page_destroy(struct platform_device *pdev,
60 secure_buffer->iova, &secure_buffer->attrs); 60 secure_buffer->iova, &secure_buffer->attrs);
61} 61}
62 62
63static int gk20a_tegra_secure_page_alloc(struct platform_device *pdev) 63int gk20a_tegra_secure_page_alloc(struct platform_device *pdev)
64{ 64{
65 struct gk20a_platform *platform = platform_get_drvdata(pdev); 65 struct gk20a_platform *platform = platform_get_drvdata(pdev);
66 struct secure_page_buffer *secure_buffer = &platform->secure_buffer; 66 struct secure_page_buffer *secure_buffer = &platform->secure_buffer;
@@ -96,9 +96,9 @@ static void gk20a_tegra_secure_destroy(struct gk20a *g,
96 } 96 }
97} 97}
98 98
99static int gk20a_tegra_secure_alloc(struct platform_device *pdev, 99int gk20a_tegra_secure_alloc(struct platform_device *pdev,
100 struct gr_ctx_buffer_desc *desc, 100 struct gr_ctx_buffer_desc *desc,
101 size_t size) 101 size_t size)
102{ 102{
103 struct gk20a_platform *platform = platform_get_drvdata(pdev); 103 struct gk20a_platform *platform = platform_get_drvdata(pdev);
104 struct device *dev = &pdev->dev; 104 struct device *dev = &pdev->dev;
diff --git a/drivers/gpu/nvgpu/platform_tegra.h b/drivers/gpu/nvgpu/platform_tegra.h
new file mode 100644
index 00000000..6fa13831
--- /dev/null
+++ b/drivers/gpu/nvgpu/platform_tegra.h
@@ -0,0 +1,31 @@
1/*
2 * drivers/video/tegra/host/gk20a/soc/platform_gk20a.h
3 *
4 * GK20A Platform (SoC) Interface
5 *
6 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms and conditions of the GNU General Public License,
10 * version 2, as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * more details.
16 */
17
18#ifndef _NVGPU_PLATFORM_TEGRA_H_
19#define _NVGPU_PLATFORM_TEGRA_H_
20
21#include <linux/types.h>
22
23struct platform_device;
24struct gr_ctx_buffer_desc;
25
26int gk20a_tegra_secure_alloc(struct platform_device *pdev,
27 struct gr_ctx_buffer_desc *desc,
28 size_t size);
29int gk20a_tegra_secure_page_alloc(struct platform_device *pdev);
30
31#endif