summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/gr_gm20b.h
diff options
context:
space:
mode:
authorBo Yan <byan@nvidia.com>2014-04-14 15:03:27 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:38 -0400
commit9eb1f57ba2b7072c6c53ca9dc59b10a87d88db23 (patch)
treede095fcbae617e938064e45a96b4e176015fe773 /drivers/gpu/nvgpu/gm20b/gr_gm20b.h
parent2531751f53fc21bdeb0ece4af550ea1e8efb9653 (diff)
gpu: nvgpu: Add GPU driver for GM20B
this moves GM20B driver to the new location Change-Id: I5fde14e114a8db79738a4c61849912b1ae225fb5
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.h')
-rw-r--r--drivers/gpu/nvgpu/gm20b/gr_gm20b.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.h b/drivers/gpu/nvgpu/gm20b/gr_gm20b.h
new file mode 100644
index 00000000..8348b9d9
--- /dev/null
+++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.h
@@ -0,0 +1,33 @@
1/*
2 * GM20B GPC MMU
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_GR_MMU_H
17#define _NVHOST_GM20B_GR_MMU_H
18struct gk20a;
19
20enum {
21 MAXWELL_B = 0xB197,
22 MAXWELL_COMPUTE_B = 0xB1C0,
23 MAXWELL_DMA_COPY_A = 0xB0B5,
24};
25
26#define NVB197_SET_ALPHA_CIRCULAR_BUFFER_SIZE 0x02dc
27#define NVB197_SET_CIRCULAR_BUFFER_SIZE 0x1280
28#define NVB197_SET_SHADER_EXCEPTIONS 0x1528
29#define NVB1C0_SET_SHADER_EXCEPTIONS 0x1528
30
31#define NVA297_SET_SHADER_EXCEPTIONS_ENABLE_FALSE 0
32void gm20b_init_gr(struct gpu_ops *gops);
33#endif