diff options
author | Sunny He <suhe@nvidia.com> | 2017-06-28 21:18:08 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-07 13:35:24 -0400 |
commit | 997ea5cef3dcd55b2281a7a8dcf452b743bc01f3 (patch) | |
tree | 8c3b8d8a75b5622f711f740b0dc9fc3f2b5b4149 /drivers/gpu/nvgpu/gp106/xve_gp106.h | |
parent | 57abaabb7688016feaecbf529a46ad143c1e65a2 (diff) |
gpu: nvgpu: Reorg xve HAL initialization
Reorganize HAL initialization to remove inheritance and construct
the gpu_ops struct at compile time. This patch only covers the xve
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: Ieb9afc230199c341d2df1e9f75792a136a2a6067
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master/r/1510470
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/xve_gp106.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/xve_gp106.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp106/xve_gp106.h b/drivers/gpu/nvgpu/gp106/xve_gp106.h index 2dbc1891..31d3a125 100644 --- a/drivers/gpu/nvgpu/gp106/xve_gp106.h +++ b/drivers/gpu/nvgpu/gp106/xve_gp106.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, |
@@ -97,5 +97,18 @@ enum xv_speed_change_steps { | |||
97 | #define xv_sc_dbg(step, fmt, args...) \ | 97 | #define xv_sc_dbg(step, fmt, args...) \ |
98 | xv_dbg("[%d] %15s | " fmt, step, __stringify(step), ##args) | 98 | xv_dbg("[%d] %15s | " fmt, step, __stringify(step), ##args) |
99 | 99 | ||
100 | void xve_xve_writel_gp106(struct gk20a *g, u32 reg, u32 val); | ||
101 | u32 xve_xve_readl_gp106(struct gk20a *g, u32 reg); | ||
102 | void xve_reset_gpu_gp106(struct gk20a *g); | ||
103 | int xve_get_speed_gp106(struct gk20a *g, u32 *xve_link_speed); | ||
104 | void xve_disable_aspm_gp106(struct gk20a *g); | ||
105 | int xve_set_speed_gp106(struct gk20a *g, u32 next_link_speed); | ||
106 | void xve_available_speeds_gp106(struct gk20a *g, u32 *speed_mask); | ||
107 | int xve_sw_init_gp106(struct device *dev); | ||
108 | #if defined(CONFIG_PCI_MSI) | ||
109 | void xve_rearm_msi_gp106(struct gk20a *g); | ||
110 | #endif | ||
111 | void xve_enable_shadow_rom_gp106(struct gk20a *g); | ||
112 | void xve_disable_shadow_rom_gp106(struct gk20a *g); | ||
100 | 113 | ||
101 | #endif | 114 | #endif |