From 9eb1f57ba2b7072c6c53ca9dc59b10a87d88db23 Mon Sep 17 00:00:00 2001 From: Bo Yan Date: Mon, 14 Apr 2014 12:03:27 -0700 Subject: gpu: nvgpu: Add GPU driver for GM20B this moves GM20B driver to the new location Change-Id: I5fde14e114a8db79738a4c61849912b1ae225fb5 --- drivers/gpu/nvgpu/gm20b/gr_gm20b.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 drivers/gpu/nvgpu/gm20b/gr_gm20b.h (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.h') 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 @@ +/* + * GM20B GPC MMU + * + * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +#ifndef _NVHOST_GM20B_GR_MMU_H +#define _NVHOST_GM20B_GR_MMU_H +struct gk20a; + +enum { + MAXWELL_B = 0xB197, + MAXWELL_COMPUTE_B = 0xB1C0, + MAXWELL_DMA_COPY_A = 0xB0B5, +}; + +#define NVB197_SET_ALPHA_CIRCULAR_BUFFER_SIZE 0x02dc +#define NVB197_SET_CIRCULAR_BUFFER_SIZE 0x1280 +#define NVB197_SET_SHADER_EXCEPTIONS 0x1528 +#define NVB1C0_SET_SHADER_EXCEPTIONS 0x1528 + +#define NVA297_SET_SHADER_EXCEPTIONS_ENABLE_FALSE 0 +void gm20b_init_gr(struct gpu_ops *gops); +#endif -- cgit v1.2.2