aboutsummaryrefslogtreecommitdiffstats
path: root/include/nvgpu/as.h
diff options
context:
space:
mode:
authorJoshua Bakita <bakitajoshua@gmail.com>2024-09-25 16:09:09 -0400
committerJoshua Bakita <bakitajoshua@gmail.com>2024-09-25 16:09:09 -0400
commitf347fde22f1297e4f022600d201780d5ead78114 (patch)
tree76be305d6187003a1e0486ff6e91efb1062ae118 /include/nvgpu/as.h
parent8340d234d78a7d0f46c11a584de538148b78b7cb (diff)
Delete no-longer-needed nvgpu headersHEADmasterjbakita-wip
The dependency on these was removed in commit 8340d234.
Diffstat (limited to 'include/nvgpu/as.h')
-rw-r--r--include/nvgpu/as.h54
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
29struct vm_gk20a;
30struct gk20a;
31
32struct gk20a_as {
33 int last_share_id; /* dummy allocator for now */
34};
35
36struct 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
47int gk20a_as_release_share(struct gk20a_as_share *as_share);
48
49/* if big_page_size == 0, the default big page size is used */
50int gk20a_as_alloc_share(struct gk20a *g, u32 big_page_size,
51 u32 flags, struct gk20a_as_share **out);
52
53struct gk20a *gk20a_from_as(struct gk20a_as *as);
54#endif /* NVGPU_AS_H */