diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-23 15:49:58 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-02 11:28:22 -0400 |
commit | 1e355ca52e2b3ac5f4e433e1bb115f6fd8499954 (patch) | |
tree | ec1d0a9fe758c0fbf5f5c877b8d40bca9d5d5002 /drivers/gpu/nvgpu/include | |
parent | 660c9a95104b37c947e0c2f6aeda4c92698b40f4 (diff) |
gpu: nvgpu: Split as code to as IOCTL and common
Split as_gk20a.c into two parts:
common/linux/ioctl_as.c deals with as related devnodes and ioctls.
This file contains all the Linux specific parts of as_gk20a.c.
common/as.c deals with general as_gk20a maintenance and is Linux
independent.
JIRA NVGPU-16
Change-Id: I2d8541e0bd6ce159dc6e4de8e819dfcff0fa8f80
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1330803
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/as.h | 36 |
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 | |||
18 | struct vm_gk20a; | ||
19 | |||
20 | struct gk20a_as_share { | ||
21 | struct gk20a_as *as; | ||
22 | int id; | ||
23 | struct vm_gk20a *vm; | ||
24 | }; | ||
25 | |||
26 | struct gk20a_as { | ||
27 | int last_share_id; /* dummy allocator for now */ | ||
28 | }; | ||
29 | |||
30 | int gk20a_as_release_share(struct gk20a_as_share *as_share); | ||
31 | |||
32 | /* if big_page_size == 0, the default big page size is used */ | ||
33 | int gk20a_as_alloc_share(struct gk20a *g, u32 big_page_size, | ||
34 | u32 flags, struct gk20a_as_share **out); | ||
35 | |||
36 | #endif | ||