diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-04-30 13:05:34 -0400 |
---|---|---|
committer | Alexander Van Brunt <avanbrunt@nvidia.com> | 2015-05-05 16:59:06 -0400 |
commit | 5a5662fffbce050adf59ba4fac60d217b5651f90 (patch) | |
tree | 00dca9d73f64ab86a92c4afaed8baaf7955b3575 | |
parent | b3a85df53ba844626e477451313ecb2097a34fd0 (diff) |
gpu: nvgpu: Export VPR allocator
Export functions for VPR allocation.
Bug 1625090
Change-Id: Ief54613402965da3f41d8dd4a463c75729a3941a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/737847
Reviewed-on: http://git-master/r/738574
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Tested-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 8 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/platform_tegra.h | 31 |
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 | ||
63 | static int gk20a_tegra_secure_page_alloc(struct platform_device *pdev) | 63 | int 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 | ||
99 | static int gk20a_tegra_secure_alloc(struct platform_device *pdev, | 99 | int 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 | |||
23 | struct platform_device; | ||
24 | struct gr_ctx_buffer_desc; | ||
25 | |||
26 | int gk20a_tegra_secure_alloc(struct platform_device *pdev, | ||
27 | struct gr_ctx_buffer_desc *desc, | ||
28 | size_t size); | ||
29 | int gk20a_tegra_secure_page_alloc(struct platform_device *pdev); | ||
30 | |||
31 | #endif | ||