diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/acr_gp106.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/acr_gp106.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/acr_gp106.h b/drivers/gpu/nvgpu/gp106/acr_gp106.h new file mode 100644 index 00000000..79015a0a --- /dev/null +++ b/drivers/gpu/nvgpu/gp106/acr_gp106.h | |||
@@ -0,0 +1,66 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | * copy of this software and associated documentation files (the "Software"), | ||
6 | * to deal in the Software without restriction, including without limitation | ||
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
10 | * | ||
11 | * The above copyright notice and this permission notice shall be included in | ||
12 | * all copies or substantial portions of the Software. | ||
13 | * | ||
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
20 | * DEALINGS IN THE SOFTWARE. | ||
21 | */ | ||
22 | |||
23 | #ifndef __ACR_GP106_H_ | ||
24 | #define __ACR_GP106_H_ | ||
25 | |||
26 | #define GP106_FECS_UCODE_SIG "gp106/fecs_sig.bin" | ||
27 | #define GP106_GPCCS_UCODE_SIG "gp106/gpccs_sig.bin" | ||
28 | #define GP104_FECS_UCODE_SIG "gp104/fecs_sig.bin" | ||
29 | #define GP104_GPCCS_UCODE_SIG "gp104/gpccs_sig.bin" | ||
30 | |||
31 | |||
32 | int gp106_bootstrap_hs_flcn(struct gk20a *g); | ||
33 | int gp106_prepare_ucode_blob(struct gk20a *g); | ||
34 | int gp106_alloc_blob_space(struct gk20a *g, | ||
35 | size_t size, struct nvgpu_mem *mem); | ||
36 | |||
37 | void gp106_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf); | ||
38 | |||
39 | void lsfm_free_ucode_img_res(struct gk20a *g, | ||
40 | struct flcn_ucode_img_v1 *p_img); | ||
41 | void lsfm_free_nonpmu_ucode_img_res(struct gk20a *g, | ||
42 | struct flcn_ucode_img_v1 *p_img); | ||
43 | int lsf_gen_wpr_requirements(struct gk20a *g, | ||
44 | struct ls_flcn_mgr_v1 *plsfm); | ||
45 | void free_acr_resources(struct gk20a *g, struct ls_flcn_mgr_v1 *plsfm); | ||
46 | void lsfm_fill_static_lsb_hdr_info(struct gk20a *g, | ||
47 | u32 falcon_id, struct lsfm_managed_ucode_img_v2 *pnode); | ||
48 | int gp106_pmu_populate_loader_cfg(struct gk20a *g, | ||
49 | void *lsfm, u32 *p_bl_gen_desc_size); | ||
50 | |||
51 | int pmu_ucode_details(struct gk20a *g, struct flcn_ucode_img_v1 *p_img); | ||
52 | int fecs_ucode_details(struct gk20a *g, | ||
53 | struct flcn_ucode_img_v1 *p_img); | ||
54 | int gpccs_ucode_details(struct gk20a *g, | ||
55 | struct flcn_ucode_img_v1 *p_img); | ||
56 | int lsfm_add_ucode_img(struct gk20a *g, struct ls_flcn_mgr_v1 *plsfm, | ||
57 | struct flcn_ucode_img_v1 *ucode_image, u32 falcon_id); | ||
58 | int lsfm_discover_ucode_images(struct gk20a *g, | ||
59 | struct ls_flcn_mgr_v1 *plsfm); | ||
60 | void lsfm_init_wpr_contents(struct gk20a *g, | ||
61 | struct ls_flcn_mgr_v1 *plsfm, struct nvgpu_mem *nonwpr); | ||
62 | int gp106_flcn_populate_bl_dmem_desc(struct gk20a *g, | ||
63 | void *lsfm, u32 *p_bl_gen_desc_size, u32 falconid); | ||
64 | int lsfm_fill_flcn_bl_gen_desc(struct gk20a *g, | ||
65 | struct lsfm_managed_ucode_img_v2 *pnode); | ||
66 | #endif /*__PMU_GP106_H_*/ | ||