summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/ltc_gv11b.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-06-22 19:46:48 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-27 13:44:06 -0400
commita64984e7592bcd60a2dad1be8f1d24700a2e54de (patch)
tree0cef2667ea3d4e23a97da55173718bb9fe7717d3 /drivers/gpu/nvgpu/gv11b/ltc_gv11b.h
parent5572bfa86a6afc7ae3c2f4a61e568f8e759c6ecc (diff)
gpu: nvgpu: Reorganize ltc HAL initialization
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the ltc 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: If8760efb7d8e94b63dc6f1fe9efec4ddf49c0b29 Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master/r/1507563 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/ltc_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/gv11b/ltc_gv11b.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.h b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.h
index 0b8b9459..e371afea 100644
--- a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -15,5 +15,11 @@
15#define LTC_GV11B_H 15#define LTC_GV11B_H
16struct gk20a; 16struct gk20a;
17 17
18void gv11b_init_ltc(struct gpu_ops *gops); 18void gv11b_ltc_set_zbc_stencil_entry(struct gk20a *g,
19 struct zbc_entry *stencil_val,
20 u32 index);
21void gv11b_ltc_init_fs_state(struct gk20a *g);
22void gv11b_ltc_isr(struct gk20a *g);
23u32 gv11b_ltc_cbc_fix_config(struct gk20a *g, int base);
24
19#endif 25#endif