summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/gr_ctx_gm20b.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-07-26 13:47:16 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-27 19:34:43 -0400
commit6431ec360bf7b7baf6dd687b1525c40114ede189 (patch)
treef899b3e215bf87cc411cefaf54c9b6011e487eb4 /drivers/gpu/nvgpu/gm20b/gr_ctx_gm20b.h
parent9907b97985c47003a179c4357274b737cc0699ee (diff)
gpu: nvgpu: Reorg gr_ctx HAL initialization
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the gr_ctx sub-module of the gpu_ops struct. Perform HAL function assignments in hal_gxxxx.c through the population of a chip-specific copy of gpu_ops. Jira NVGPU-74 Change-Id: I783d8e8919d8694ad2aa0d285e4c5a2b62580f48 Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1527417 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_ctx_gm20b.h')
-rw-r--r--drivers/gpu/nvgpu/gm20b/gr_ctx_gm20b.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_ctx_gm20b.h b/drivers/gpu/nvgpu/gm20b/gr_ctx_gm20b.h
index 9172e151..414634da 100644
--- a/drivers/gpu/nvgpu/gm20b/gr_ctx_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/gr_ctx_gm20b.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * GM20B Graphics Context 2 * GM20B Graphics Context
3 * 3 *
4 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 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, 7 * under the terms and conditions of the GNU General Public License,
@@ -24,6 +24,7 @@
24/*#undef GM20B_NETLIST_IMAGE_FW_NAME*/ 24/*#undef GM20B_NETLIST_IMAGE_FW_NAME*/
25#define GM20B_NETLIST_IMAGE_FW_NAME GK20A_NETLIST_IMAGE_B 25#define GM20B_NETLIST_IMAGE_FW_NAME GK20A_NETLIST_IMAGE_B
26 26
27void gm20b_init_gr_ctx(struct gpu_ops *gops); 27int gr_gm20b_get_netlist_name(struct gk20a *g, int index, char *name);
28bool gr_gm20b_is_firmware_defined(void);
28 29
29#endif /*__GR_CTX_GM20B_H__*/ 30#endif /*__GR_CTX_GM20B_H__*/