gpu: nvgpu: add accessors for PCE/LCE config

Generated accessors for:
- NV_CE_GRCE_CONFIG
- NV_CE_PCE2LCE_CONFIG

Bug 2494068

Change-Id: If91bed611c49a6ace65fdff94467fb66294a20b5
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2151040
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2019-07-16 10:13:06 -04:00
committed by mobile promotions
parent 7f82c6cbc3
commit 63f1861f4c

View File

@@ -75,4 +75,17 @@
#define ce_lce_opt_r(i)\
(nvgpu_safe_add_u32(0x00104414U, nvgpu_safe_mult_u32((i), 128U)))
#define ce_lce_opt_force_barriers_npl__prod_f() (0x8U)
#define ce_grce_config_r(i)\
(nvgpu_safe_add_u32(0x00104034U, nvgpu_safe_mult_u32((i), 4U)))
#define ce_grce_config__size_1_v() (0x00000002U)
#define ce_grce_config_shared_lce_f(v) (((v)&0xfU) << 0U)
#define ce_grce_config_shared_lce_none_f() (0xfU)
#define ce_grce_config_shared_f(v) (((v)&0x1U) << 30U)
#define ce_grce_config_timeslice_short_f() (0x0U)
#define ce_grce_config_timeslice_long_f() (0x80000000U)
#define ce_pce2lce_config_r(i)\
(nvgpu_safe_add_u32(0x00104040U, nvgpu_safe_mult_u32((i), 4U)))
#define ce_pce2lce_config__size_1_v() (0x00000004U)
#define ce_pce2lce_config_pce_assigned_lce_f(v) (((v)&0xfU) << 0U)
#define ce_pce2lce_config_pce_assigned_lce_none_f() (0xfU)
#endif