summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2014-09-29 06:16:15 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:33 -0400
commit719923ad9fa7c6b2ca68a25d1ce4518aab844bc2 (patch)
treebcb3dfbbd2968bf4b863f8990c11f05bc61ed6df /drivers/gpu/nvgpu/gk20a/channel_gk20a.h
parent83bf2aa83d922080884a9fe547b656e24495e16e (diff)
gpu: nvgpu: rename gpu ioctls and structs to nvgpu
To help remove the nvhost dependency from nvgpu, rename ioctl defines and structures used by nvgpu such that nvhost is replaced by nvgpu. Duplicate some structures as needed. Update header guards and such accordingly. Change-Id: Ifc3a867713072bae70256502735583ab38381877 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/542620 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
index bb9f314c..ff056140 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
@@ -1,6 +1,4 @@
1/* 1/*
2 * drivers/video/tegra/host/gk20a/channel_gk20a.h
3 *
4 * GK20A graphics channel 2 * GK20A graphics channel
5 * 3 *
6 * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved.
@@ -14,12 +12,11 @@
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * more details. 13 * more details.
16 * 14 *
17 * You should have received a copy of the GNU General Public License along with 15 * You should have received a copy of the GNU General Public License
18 * this program; if not, write to the Free Software Foundation, Inc., 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
20 */ 17 */
21#ifndef __CHANNEL_GK20A_H__ 18#ifndef CHANNEL_GK20A_H
22#define __CHANNEL_GK20A_H__ 19#define CHANNEL_GK20A_H
23 20
24#include <linux/log2.h> 21#include <linux/log2.h>
25#include <linux/slab.h> 22#include <linux/slab.h>
@@ -37,6 +34,7 @@ struct gk20a_fence;
37 34
38#include "mm_gk20a.h" 35#include "mm_gk20a.h"
39#include "gr_gk20a.h" 36#include "gr_gk20a.h"
37#include "fence_gk20a.h"
40 38
41struct gpfifo { 39struct gpfifo {
42 u32 entry0; 40 u32 entry0;
@@ -148,7 +146,7 @@ struct channel_gk20a {
148 bool timeout_debug_dump; 146 bool timeout_debug_dump;
149 147
150 struct dma_buf *error_notifier_ref; 148 struct dma_buf *error_notifier_ref;
151 struct nvhost_notification *error_notifier; 149 struct nvgpu_notification *error_notifier;
152 void *error_notifier_va; 150 void *error_notifier_va;
153 151
154 struct gk20a_channel_sync *sync; 152 struct gk20a_channel_sync *sync;
@@ -201,14 +199,14 @@ struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g);
201void channel_gk20a_unbind(struct channel_gk20a *ch_gk20a); 199void channel_gk20a_unbind(struct channel_gk20a *ch_gk20a);
202 200
203int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, 201int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
204 struct nvhost_gpfifo *gpfifo, 202 struct nvgpu_gpfifo *gpfifo,
205 u32 num_entries, 203 u32 num_entries,
206 u32 flags, 204 u32 flags,
207 struct nvhost_fence *fence, 205 struct nvgpu_fence *fence,
208 struct gk20a_fence **fence_out); 206 struct gk20a_fence **fence_out);
209 207
210int gk20a_alloc_channel_gpfifo(struct channel_gk20a *c, 208int gk20a_alloc_channel_gpfifo(struct channel_gk20a *c,
211 struct nvhost_alloc_gpfifo_args *args); 209 struct nvgpu_alloc_gpfifo_args *args);
212 210
213void channel_gk20a_unbind(struct channel_gk20a *ch_gk20a); 211void channel_gk20a_unbind(struct channel_gk20a *ch_gk20a);
214void channel_gk20a_disable(struct channel_gk20a *ch); 212void channel_gk20a_disable(struct channel_gk20a *ch);
@@ -217,4 +215,4 @@ void channel_gk20a_free_inst(struct gk20a *g, struct channel_gk20a *ch);
217int channel_gk20a_setup_ramfc(struct channel_gk20a *c, 215int channel_gk20a_setup_ramfc(struct channel_gk20a *c,
218 u64 gpfifo_base, u32 gpfifo_entries); 216 u64 gpfifo_base, u32 gpfifo_entries);
219 217
220#endif /*__CHANNEL_GK20A_H__*/ 218#endif /* CHANNEL_GK20A_H */