diff options
Diffstat (limited to 'include/nvgpu/as.h')
-rw-r--r-- | include/nvgpu/as.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/include/nvgpu/as.h b/include/nvgpu/as.h deleted file mode 100644 index f2249f9..0000000 --- a/include/nvgpu/as.h +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | /* | ||
2 | * GK20A Address Spaces | ||
3 | * | ||
4 | * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
6 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
7 | * copy of this software and associated documentation files (the "Software"), | ||
8 | * to deal in the Software without restriction, including without limitation | ||
9 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
10 | * and/or sell copies of the Software, and to permit persons to whom the | ||
11 | * Software is furnished to do so, subject to the following conditions: | ||
12 | * | ||
13 | * The above copyright notice and this permission notice shall be included in | ||
14 | * all copies or substantial portions of the Software. | ||
15 | * | ||
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
19 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
21 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
22 | * DEALINGS IN THE SOFTWARE. | ||
23 | */ | ||
24 | #ifndef NVGPU_AS_H | ||
25 | #define NVGPU_AS_H | ||
26 | |||
27 | #include <nvgpu/types.h> | ||
28 | |||
29 | struct vm_gk20a; | ||
30 | struct gk20a; | ||
31 | |||
32 | struct gk20a_as { | ||
33 | int last_share_id; /* dummy allocator for now */ | ||
34 | }; | ||
35 | |||
36 | struct gk20a_as_share { | ||
37 | struct gk20a_as *as; | ||
38 | struct vm_gk20a *vm; | ||
39 | int id; | ||
40 | }; | ||
41 | |||
42 | /* | ||
43 | * AS allocation flags. | ||
44 | */ | ||
45 | #define NVGPU_AS_ALLOC_USERSPACE_MANAGED (1 << 0) | ||
46 | |||
47 | int gk20a_as_release_share(struct gk20a_as_share *as_share); | ||
48 | |||
49 | /* if big_page_size == 0, the default big page size is used */ | ||
50 | int gk20a_as_alloc_share(struct gk20a *g, u32 big_page_size, | ||
51 | u32 flags, struct gk20a_as_share **out); | ||
52 | |||
53 | struct gk20a *gk20a_from_as(struct gk20a_as *as); | ||
54 | #endif /* NVGPU_AS_H */ | ||