diff options
author | Kevin Huang <kevinh@nvidia.com> | 2014-04-23 18:39:00 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:09:59 -0400 |
commit | 18939e4b4a680a8e01bbec864b267e193fb3714d (patch) | |
tree | 5fa061e5f27978084350b79b56a3035ddbf12ece /drivers/gpu/nvgpu/gm20b/mm_gm20b.h | |
parent | da56b17de0b360cb020a8831ba82c202057c2968 (diff) |
gpu: nvgpu: add support to Maxwell sparse texture
Bug 1442531
Change-Id: Ie927cca905b2ea9811417e7a1fdfdf9d48f015e2
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/mm_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/mm_gm20b.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.h b/drivers/gpu/nvgpu/gm20b/mm_gm20b.h new file mode 100644 index 00000000..0f94d2bf --- /dev/null +++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * GM20B GMMU | ||
3 | * | ||
4 | * Copyright (c) 2014, 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 | |||
16 | #ifndef _NVHOST_GM20B_MM | ||
17 | #define _NVHOST_GM20B_MM | ||
18 | struct gk20a; | ||
19 | |||
20 | #define PDE_ADDR_START(x, y) ((x) & ~((0x1UL << (y)) - 1)) | ||
21 | #define PDE_ADDR_END(x, y) ((x) | ((0x1UL << (y)) - 1)) | ||
22 | |||
23 | void gm20b_init_mm(struct gpu_ops *gops); | ||
24 | #endif | ||