summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/as_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/as_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/as_gk20a.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/as_gk20a.h b/drivers/gpu/nvgpu/gk20a/as_gk20a.h
deleted file mode 100644
index 9b0c6e14..00000000
--- a/drivers/gpu/nvgpu/gk20a/as_gk20a.h
+++ /dev/null
@@ -1,49 +0,0 @@
1/*
2 * GK20A Address Spaces
3 *
4 * Copyright (c) 2011-2015, 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#ifndef AS_GK20A_H
16#define AS_GK20A_H
17
18#include <linux/atomic.h>
19#include <linux/cdev.h>
20#include <linux/fs.h>
21
22struct gk20a_as;
23struct gk20a_as_share;
24struct vm_gk20a;
25
26struct gk20a_as_share {
27 struct gk20a_as *as;
28 int id;
29 struct vm_gk20a *vm;
30};
31
32struct gk20a_as {
33 int last_share_id; /* dummy allocator for now */
34 struct cdev cdev;
35 struct device *node;
36};
37
38int gk20a_as_release_share(struct gk20a_as_share *as_share);
39
40/* struct file_operations driver interface */
41int gk20a_as_dev_open(struct inode *inode, struct file *filp);
42int gk20a_as_dev_release(struct inode *inode, struct file *filp);
43long gk20a_as_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
44
45/* if big_page_size == 0, the default big page size is used */
46int gk20a_as_alloc_share(struct gk20a_as *as, u32 big_page_size,
47 u32 flags, struct gk20a_as_share **out);
48
49#endif