diff options
author | Sami Kiminki <skiminki@nvidia.com> | 2015-08-17 14:05:19 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-08-19 11:03:24 -0400 |
commit | 08f37cba39d846bc635098c4adae0c4a5629161a (patch) | |
tree | 2e6542081574210e869ca878a921a4c4a0e10013 /drivers/gpu/nvgpu/gm20b/cde_gm20b.h | |
parent | a88e58cc9d2c4b9f852716240b3cabc9449d8679 (diff) |
gpu: nvgpu: Prepare for per-GPU CDE program numbers
Add gpu_ops for CDE, and add get_program_numbers function pointer for
determining horizontal and vertical CDE swizzler programs. This allows
different GPUs to have their own specific requirements for choosing
the CDE firmware programs.
Bug 1604102
Change-Id: Ib37c13abb017c8eb1c32adc8cbc6b5984488222e
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: http://git-master/r/784899
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/cde_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/cde_gm20b.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/cde_gm20b.h b/drivers/gpu/nvgpu/gm20b/cde_gm20b.h new file mode 100644 index 00000000..66e303f5 --- /dev/null +++ b/drivers/gpu/nvgpu/gm20b/cde_gm20b.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * GM20B CDE | ||
3 | * | ||
4 | * Copyright (c) 2015, 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_CDE | ||
17 | #define _NVHOST_GM20B_CDE | ||
18 | |||
19 | struct gpu_ops; | ||
20 | |||
21 | void gm20b_init_cde_ops(struct gpu_ops *gops); | ||
22 | |||
23 | #endif | ||