summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/as.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/as.h b/drivers/gpu/nvgpu/include/nvgpu/as.h
new file mode 100644
index 00000000..0e784396
--- /dev/null
+++ b/drivers/gpu/nvgpu/include/nvgpu/as.h
@@ -0,0 +1,36 @@
1/*
2 * GK20A Address Spaces
3 *
4 * Copyright (c) 2011-2017, 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 __NVGPU_AS_H__
16#define __NVGPU_AS_H__
17
18struct vm_gk20a;
19
20struct gk20a_as_share {
21 struct gk20a_as *as;
22 int id;
23 struct vm_gk20a *vm;
24};
25
26struct gk20a_as {
27 int last_share_id; /* dummy allocator for now */
28};
29
30int gk20a_as_release_share(struct gk20a_as_share *as_share);
31
32/* if big_page_size == 0, the default big page size is used */
33int gk20a_as_alloc_share(struct gk20a *g, u32 big_page_size,
34 u32 flags, struct gk20a_as_share **out);
35
36#endif