/*
* Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
/*
* Function naming determines intended use:
*
* _r(void) : Returns the offset for register .
*
* _o(void) : Returns the offset for element .
*
* _w(void) : Returns the word offset for word (4 byte) element .
*
* __s(void) : Returns size of field of register in bits.
*
* __f(u32 v) : Returns a value based on 'v' which has been shifted
* and masked to place it at field of register . This value
* can be |'d with others to produce a full register value for
* register .
*
* __m(void) : Returns a mask for field of register . This
* value can be ~'d and then &'d to clear the value of field for
* register .
*
* ___f(void) : Returns the constant value after being shifted
* to place it at field of register . This value can be |'d
* with others to produce a full register value for .
*
* __v(u32 r) : Returns the value of field from a full register
* value 'r' after being shifted to place its LSB at bit 0.
* This value is suitable for direct comparison with other unshifted
* values appropriate for use in field of register .
*
* ___v(void) : Returns the constant value for defined for
* field of register . This value is suitable for direct
* comparison with unshifted values appropriate for use in field
* of register .
*/
#ifndef _hw_gr_gk20a_h_
#define _hw_gr_gk20a_h_
static inline u32 gr_intr_r(void)
{
return 0x00400100;
}
static inline u32 gr_intr_notify_pending_f(void)
{
return 0x1;
}
static inline u32 gr_intr_notify_reset_f(void)
{
return 0x1;
}
static inline u32 gr_intr_semaphore_pending_f(void)
{
return 0x2;
}
static inline u32 gr_intr_semaphore_reset_f(void)
{
return 0x2;
}
static inline u32 gr_intr_semaphore_timeout_not_pending_f(void)
{
return 0x0;
}
static inline u32 gr_intr_semaphore_timeout_pending_f(void)
{
return 0x4;
}
static inline u32 gr_intr_semaphore_timeout_reset_f(void)
{
return 0x4;
}
static inline u32 gr_intr_illegal_method_pending_f(void)
{
return 0x10;
}
static inline u32 gr_intr_illegal_method_reset_f(void)
{
return 0x10;
}
static inline u32 gr_intr_illegal_notify_pending_f(void)
{
return 0x40;
}
static inline u32 gr_intr_illegal_notify_reset_f(void)
{
return 0x40;
}
static inline u32 gr_intr_firmware_method_f(u32 v)
{
return (v & 0x1) << 8;
}
static inline u32 gr_intr_firmware_method_pending_f(void)
{
return 0x100;
}
static inline u32 gr_intr_firmware_method_reset_f(void)
{
return 0x100;
}
static inline u32 gr_intr_illegal_class_pending_f(void)
{
return 0x20;
}
static inline u32 gr_intr_illegal_class_reset_f(void)
{
return 0x20;
}
static inline u32 gr_intr_fecs_error_pending_f(void)
{
return 0x80000;
}
static inline u32 gr_intr_fecs_error_reset_f(void)
{
return 0x80000;
}
static inline u32 gr_intr_class_error_pending_f(void)
{
return 0x100000;
}
static inline u32 gr_intr_class_error_reset_f(void)
{
return 0x100000;
}
static inline u32 gr_intr_exception_pending_f(void)
{
return 0x200000;
}
static inline u32 gr_intr_exception_reset_f(void)
{
return 0x200000;
}
static inline u32 gr_fecs_intr_r(void)
{
return 0x00400144;
}
static inline u32 gr_class_error_r(void)
{
return 0x00400110;
}
static inline u32 gr_class_error_code_v(u32 r)
{
return (r >> 0) & 0xffff;
}
static inline u32 gr_intr_nonstall_r(void)
{
return 0x00400120;
}
static inline u32 gr_intr_nonstall_trap_pending_f(void)
{
return 0x2;
}
static inline u32 gr_intr_en_r(void)
{
return 0x0040013c;
}
static inline u32 gr_exception_r(void)
{
return 0x00400108;
}
static inline u32 gr_exception_fe_m(void)
{
return 0x1 << 0;
}
static inline u32 gr_exception_gpc_m(void)
{
return 0x1 << 24;
}
static inline u32 gr_exception1_r(void)
{
return 0x00400118;
}
static inline u32 gr_exception1_gpc_0_pending_f(void)
{
return 0x1;
}
static inline u32 gr_exception2_r(void)
{
return 0x0040011c;
}
static inline u32 gr_exception_en_r(void)
{
return 0x00400138;
}
static inline u32 gr_exception_en_fe_m(void)
{
return 0x1 << 0;
}
static inline u32 gr_exception1_en_r(void)
{
return 0x00400130;
}
static inline u32 gr_exception2_en_r(void)
{
return 0x00400134;
}
static inline u32 gr_gpfifo_ctl_r(void)
{
return 0x00400500;
}
static inline u32 gr_gpfifo_ctl_access_f(u32 v)
{
return (v & 0x1) << 0;
}
static inline u32 gr_gpfifo_ctl_access_disabled_f(void)
{
return 0x0;
}
static inline u32 gr_gpfifo_ctl_access_enabled_f(void)
{
return 0x1;
}
static inline u32 gr_gpfifo_ctl_semaphore_access_f(u32 v)
{
return (v & 0x1) << 16;
}
static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_v(void)
{
return 0x00000001;
}
static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_f(void)
{
return 0x10000;
}
static inline u32 gr_trapped_addr_r(void)
{
return 0x00400704;
}
static inline u32 gr_trapped_addr_mthd_v(u32 r)
{
return (r >> 2) & 0xfff;
}
static inline u32 gr_trapped_addr_subch_v(u32 r)
{
return (r >> 16) & 0x7;
}
static inline u32 gr_trapped_data_lo_r(void)
{
return 0x00400708;
}
static inline u32 gr_trapped_data_hi_r(void)
{
return 0x0040070c;
}
static inline u32 gr_status_r(void)
{
return 0x00400700;
}
static inline u32 gr_status_fe_method_upper_v(u32 r)
{
return (r >> 1) & 0x1;
}
static inline u32 gr_status_fe_method_lower_v(u32 r)
{
return (r >> 2) & 0x1;
}
static inline u32 gr_status_fe_method_lower_idle_v(void)
{
return 0x00000000;
}
static inline u32 gr_status_fe_gi_v(u32 r)
{
return (r >> 21) & 0x1;
}
static inline u32 gr_status_mask_r(void)
{
return 0x00400610;
}
static inline u32 gr_engine_status_r(void)
{
return 0x0040060c;
}
static inline u32 gr_engine_status_value_busy_f(void)
{
return 0x1;
}
static inline u32 gr_pipe_bundle_address_r(void)
{
return 0x00400200;
}
static inline u32 gr_pipe_bundle_address_value_v(u32 r)
{
return (r >> 0) & 0xffff;
}
static inline u32 gr_pipe_bundle_data_r(void)
{
return 0x00400204;
}
static inline u32 gr_pipe_bundle_config_r(void)
{
return 0x00400208;
}
static inline u32 gr_pipe_bundle_config_override_pipe_mode_disabled_f(void)
{
return 0x0;
}
static inline u32 gr_pipe_bundle_config_override_pipe_mode_enabled_f(void)
{
return 0x80000000;
}
static inline u32 gr_fe_hww_esr_r(void)
{
return 0x00404000;
}
static inline u32 gr_fe_hww_esr_reset_active_f(void)
{
return 0x40000000;
}
static inline u32 gr_fe_hww_esr_en_enable_f(void)
{
return 0x80000000;
}
static inline u32 gr_fe_go_idle_timeout_r(void)
{
return 0x00404154;
}
static inline u32 gr_fe_go_idle_timeout_count_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_fe_go_idle_timeout_count_disabled_f(void)
{
return 0x0;
}
static inline u32 gr_fe_object_table_r(u32 i)
{
return 0x00404200 + i*4;
}
static inline u32 gr_fe_object_table_nvclass_v(u32 r)
{
return (r >> 0) & 0xffff;
}
static inline u32 gr_pri_mme_shadow_raw_index_r(void)
{
return 0x00404488;
}
static inline u32 gr_pri_mme_shadow_raw_index_write_trigger_f(void)
{
return 0x80000000;
}
static inline u32 gr_pri_mme_shadow_raw_data_r(void)
{
return 0x0040448c;
}
static inline u32 gr_mme_hww_esr_r(void)
{
return 0x00404490;
}
static inline u32 gr_mme_hww_esr_reset_active_f(void)
{
return 0x40000000;
}
static inline u32 gr_mme_hww_esr_en_enable_f(void)
{
return 0x80000000;
}
static inline u32 gr_memfmt_hww_esr_r(void)
{
return 0x00404600;
}
static inline u32 gr_memfmt_hww_esr_reset_active_f(void)
{
return 0x40000000;
}
static inline u32 gr_memfmt_hww_esr_en_enable_f(void)
{
return 0x80000000;
}
static inline u32 gr_fecs_cpuctl_r(void)
{
return 0x00409100;
}
static inline u32 gr_fecs_cpuctl_startcpu_f(u32 v)
{
return (v & 0x1) << 1;
}
static inline u32 gr_fecs_dmactl_r(void)
{
return 0x0040910c;
}
static inline u32 gr_fecs_dmactl_require_ctx_f(u32 v)
{
return (v & 0x1) << 0;
}
static inline u32 gr_fecs_dmactl_dmem_scrubbing_m(void)
{
return 0x1 << 1;
}
static inline u32 gr_fecs_dmactl_imem_scrubbing_m(void)
{
return 0x1 << 2;
}
static inline u32 gr_fecs_os_r(void)
{
return 0x00409080;
}
static inline u32 gr_fecs_idlestate_r(void)
{
return 0x0040904c;
}
static inline u32 gr_fecs_mailbox0_r(void)
{
return 0x00409040;
}
static inline u32 gr_fecs_mailbox1_r(void)
{
return 0x00409044;
}
static inline u32 gr_fecs_irqstat_r(void)
{
return 0x00409008;
}
static inline u32 gr_fecs_irqmode_r(void)
{
return 0x0040900c;
}
static inline u32 gr_fecs_irqmask_r(void)
{
return 0x00409018;
}
static inline u32 gr_fecs_irqdest_r(void)
{
return 0x0040901c;
}
static inline u32 gr_fecs_curctx_r(void)
{
return 0x00409050;
}
static inline u32 gr_fecs_nxtctx_r(void)
{
return 0x00409054;
}
static inline u32 gr_fecs_engctl_r(void)
{
return 0x004090a4;
}
static inline u32 gr_fecs_debug1_r(void)
{
return 0x00409090;
}
static inline u32 gr_fecs_debuginfo_r(void)
{
return 0x00409094;
}
static inline u32 gr_fecs_icd_cmd_r(void)
{
return 0x00409200;
}
static inline u32 gr_fecs_icd_cmd_opc_s(void)
{
return 4;
}
static inline u32 gr_fecs_icd_cmd_opc_f(u32 v)
{
return (v & 0xf) << 0;
}
static inline u32 gr_fecs_icd_cmd_opc_m(void)
{
return 0xf << 0;
}
static inline u32 gr_fecs_icd_cmd_opc_v(u32 r)
{
return (r >> 0) & 0xf;
}
static inline u32 gr_fecs_icd_cmd_opc_rreg_f(void)
{
return 0x8;
}
static inline u32 gr_fecs_icd_cmd_opc_rstat_f(void)
{
return 0xe;
}
static inline u32 gr_fecs_icd_cmd_idx_f(u32 v)
{
return (v & 0x1f) << 8;
}
static inline u32 gr_fecs_icd_rdata_r(void)
{
return 0x0040920c;
}
static inline u32 gr_fecs_imemc_r(u32 i)
{
return 0x00409180 + i*16;
}
static inline u32 gr_fecs_imemc_offs_f(u32 v)
{
return (v & 0x3f) << 2;
}
static inline u32 gr_fecs_imemc_blk_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_fecs_imemc_aincw_f(u32 v)
{
return (v & 0x1) << 24;
}
static inline u32 gr_fecs_imemd_r(u32 i)
{
return 0x00409184 + i*16;
}
static inline u32 gr_fecs_imemt_r(u32 i)
{
return 0x00409188 + i*16;
}
static inline u32 gr_fecs_imemt_tag_f(u32 v)
{
return (v & 0xffff) << 0;
}
static inline u32 gr_fecs_dmemc_r(u32 i)
{
return 0x004091c0 + i*8;
}
static inline u32 gr_fecs_dmemc_offs_s(void)
{
return 6;
}
static inline u32 gr_fecs_dmemc_offs_f(u32 v)
{
return (v & 0x3f) << 2;
}
static inline u32 gr_fecs_dmemc_offs_m(void)
{
return 0x3f << 2;
}
static inline u32 gr_fecs_dmemc_offs_v(u32 r)
{
return (r >> 2) & 0x3f;
}
static inline u32 gr_fecs_dmemc_blk_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_fecs_dmemc_aincw_f(u32 v)
{
return (v & 0x1) << 24;
}
static inline u32 gr_fecs_dmemd_r(u32 i)
{
return 0x004091c4 + i*8;
}
static inline u32 gr_fecs_dmatrfbase_r(void)
{
return 0x00409110;
}
static inline u32 gr_fecs_dmatrfmoffs_r(void)
{
return 0x00409114;
}
static inline u32 gr_fecs_dmatrffboffs_r(void)
{
return 0x0040911c;
}
static inline u32 gr_fecs_dmatrfcmd_r(void)
{
return 0x00409118;
}
static inline u32 gr_fecs_dmatrfcmd_imem_f(u32 v)
{
return (v & 0x1) << 4;
}
static inline u32 gr_fecs_dmatrfcmd_write_f(u32 v)
{
return (v & 0x1) << 5;
}
static inline u32 gr_fecs_dmatrfcmd_size_f(u32 v)
{
return (v & 0x7) << 8;
}
static inline u32 gr_fecs_dmatrfcmd_ctxdma_f(u32 v)
{
return (v & 0x7) << 12;
}
static inline u32 gr_fecs_bootvec_r(void)
{
return 0x00409104;
}
static inline u32 gr_fecs_bootvec_vec_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_fecs_falcon_hwcfg_r(void)
{
return 0x00409108;
}
static inline u32 gr_gpcs_gpccs_falcon_hwcfg_r(void)
{
return 0x0041a108;
}
static inline u32 gr_fecs_falcon_rm_r(void)
{
return 0x00409084;
}
static inline u32 gr_fecs_current_ctx_r(void)
{
return 0x00409b00;
}
static inline u32 gr_fecs_current_ctx_ptr_f(u32 v)
{
return (v & 0xfffffff) << 0;
}
static inline u32 gr_fecs_current_ctx_ptr_v(u32 r)
{
return (r >> 0) & 0xfffffff;
}
static inline u32 gr_fecs_current_ctx_target_s(void)
{
return 2;
}
static inline u32 gr_fecs_current_ctx_target_f(u32 v)
{
return (v & 0x3) << 28;
}
static inline u32 gr_fecs_current_ctx_target_m(void)
{
return 0x3 << 28;
}
static inline u32 gr_fecs_current_ctx_target_v(u32 r)
{
return (r >> 28) & 0x3;
}
static inline u32 gr_fecs_current_ctx_target_vid_mem_f(void)
{
return 0x0;
}
static inline u32 gr_fecs_current_ctx_valid_s(void)
{
return 1;
}
static inline u32 gr_fecs_current_ctx_valid_f(u32 v)
{
return (v & 0x1) << 31;
}
static inline u32 gr_fecs_current_ctx_valid_m(void)
{
return 0x1 << 31;
}
static inline u32 gr_fecs_current_ctx_valid_v(u32 r)
{
return (r >> 31) & 0x1;
}
static inline u32 gr_fecs_current_ctx_valid_false_f(void)
{
return 0x0;
}
static inline u32 gr_fecs_method_data_r(void)
{
return 0x00409500;
}
static inline u32 gr_fecs_method_push_r(void)
{
return 0x00409504;
}
static inline u32 gr_fecs_method_push_adr_f(u32 v)
{
return (v & 0xfff) << 0;
}
static inline u32 gr_fecs_method_push_adr_bind_pointer_v(void)
{
return 0x00000003;
}
static inline u32 gr_fecs_method_push_adr_bind_pointer_f(void)
{
return 0x3;
}
static inline u32 gr_fecs_method_push_adr_discover_image_size_v(void)
{
return 0x00000010;
}
static inline u32 gr_fecs_method_push_adr_wfi_golden_save_v(void)
{
return 0x00000009;
}
static inline u32 gr_fecs_method_push_adr_restore_golden_v(void)
{
return 0x00000015;
}
static inline u32 gr_fecs_method_push_adr_discover_zcull_image_size_v(void)
{
return 0x00000016;
}
static inline u32 gr_fecs_method_push_adr_discover_pm_image_size_v(void)
{
return 0x00000025;
}
static inline u32 gr_fecs_method_push_adr_discover_reglist_image_size_v(void)
{
return 0x00000030;
}
static inline u32 gr_fecs_method_push_adr_set_reglist_bind_instance_v(void)
{
return 0x00000031;
}
static inline u32 gr_fecs_method_push_adr_set_reglist_virtual_address_v(void)
{
return 0x00000032;
}
static inline u32 gr_fecs_method_push_adr_stop_ctxsw_v(void)
{
return 0x00000038;
}
static inline u32 gr_fecs_method_push_adr_start_ctxsw_v(void)
{
return 0x00000039;
}
static inline u32 gr_fecs_method_push_adr_set_watchdog_timeout_f(void)
{
return 0x21;
}
static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void)
{
return 0x00000004;
}
static inline u32 gr_fecs_host_int_status_r(void)
{
return 0x00409c18;
}
static inline u32 gr_fecs_host_int_status_umimp_firmware_method_f(u32 v)
{
return (v & 0x1) << 17;
}
static inline u32 gr_fecs_host_int_status_umimp_illegal_method_f(u32 v)
{
return (v & 0x1) << 18;
}
static inline u32 gr_fecs_host_int_clear_r(void)
{
return 0x00409c20;
}
static inline u32 gr_fecs_host_int_enable_r(void)
{
return 0x00409c24;
}
static inline u32 gr_fecs_host_int_enable_fault_during_ctxsw_enable_f(void)
{
return 0x10000;
}
static inline u32 gr_fecs_host_int_enable_umimp_firmware_method_enable_f(void)
{
return 0x20000;
}
static inline u32 gr_fecs_host_int_enable_umimp_illegal_method_enable_f(void)
{
return 0x40000;
}
static inline u32 gr_fecs_host_int_enable_watchdog_enable_f(void)
{
return 0x80000;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_r(void)
{
return 0x00409614;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_sys_halt_disabled_f(void)
{
return 0x0;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_halt_disabled_f(void)
{
return 0x0;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_be_halt_disabled_f(void)
{
return 0x0;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_sys_engine_reset_disabled_f(void)
{
return 0x10;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_engine_reset_disabled_f(void)
{
return 0x20;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_be_engine_reset_disabled_f(void)
{
return 0x40;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_enabled_f(void)
{
return 0x0;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_disabled_f(void)
{
return 0x100;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_enabled_f(void)
{
return 0x0;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_disabled_f(void)
{
return 0x200;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_s(void)
{
return 1;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_f(u32 v)
{
return (v & 0x1) << 10;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_m(void)
{
return 0x1 << 10;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_v(u32 r)
{
return (r >> 10) & 0x1;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_enabled_f(void)
{
return 0x0;
}
static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_disabled_f(void)
{
return 0x400;
}
static inline u32 gr_fecs_ctx_state_store_major_rev_id_r(void)
{
return 0x0040960c;
}
static inline u32 gr_fecs_ctxsw_mailbox_r(u32 i)
{
return 0x00409800 + i*4;
}
static inline u32 gr_fecs_ctxsw_mailbox__size_1_v(void)
{
return 0x00000008;
}
static inline u32 gr_fecs_ctxsw_mailbox_value_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_fecs_ctxsw_mailbox_value_pass_v(void)
{
return 0x00000001;
}
static inline u32 gr_fecs_ctxsw_mailbox_value_fail_v(void)
{
return 0x00000002;
}
static inline u32 gr_fecs_ctxsw_mailbox_set_r(u32 i)
{
return 0x00409820 + i*4;
}
static inline u32 gr_fecs_ctxsw_mailbox_set_value_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_fecs_ctxsw_mailbox_clear_r(u32 i)
{
return 0x00409840 + i*4;
}
static inline u32 gr_fecs_ctxsw_mailbox_clear_value_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_fecs_fs_r(void)
{
return 0x00409604;
}
static inline u32 gr_fecs_fs_num_available_gpcs_s(void)
{
return 5;
}
static inline u32 gr_fecs_fs_num_available_gpcs_f(u32 v)
{
return (v & 0x1f) << 0;
}
static inline u32 gr_fecs_fs_num_available_gpcs_m(void)
{
return 0x1f << 0;
}
static inline u32 gr_fecs_fs_num_available_gpcs_v(u32 r)
{
return (r >> 0) & 0x1f;
}
static inline u32 gr_fecs_fs_num_available_fbps_s(void)
{
return 5;
}
static inline u32 gr_fecs_fs_num_available_fbps_f(u32 v)
{
return (v & 0x1f) << 16;
}
static inline u32 gr_fecs_fs_num_available_fbps_m(void)
{
return 0x1f << 16;
}
static inline u32 gr_fecs_fs_num_available_fbps_v(u32 r)
{
return (r >> 16) & 0x1f;
}
static inline u32 gr_fecs_cfg_r(void)
{
return 0x00409620;
}
static inline u32 gr_fecs_cfg_imem_sz_v(u32 r)
{
return (r >> 0) & 0xff;
}
static inline u32 gr_fecs_rc_lanes_r(void)
{
return 0x00409880;
}
static inline u32 gr_fecs_rc_lanes_num_chains_s(void)
{
return 6;
}
static inline u32 gr_fecs_rc_lanes_num_chains_f(u32 v)
{
return (v & 0x3f) << 0;
}
static inline u32 gr_fecs_rc_lanes_num_chains_m(void)
{
return 0x3f << 0;
}
static inline u32 gr_fecs_rc_lanes_num_chains_v(u32 r)
{
return (r >> 0) & 0x3f;
}
static inline u32 gr_fecs_ctxsw_status_1_r(void)
{
return 0x00409400;
}
static inline u32 gr_fecs_ctxsw_status_1_arb_busy_s(void)
{
return 1;
}
static inline u32 gr_fecs_ctxsw_status_1_arb_busy_f(u32 v)
{
return (v & 0x1) << 12;
}
static inline u32 gr_fecs_ctxsw_status_1_arb_busy_m(void)
{
return 0x1 << 12;
}
static inline u32 gr_fecs_ctxsw_status_1_arb_busy_v(u32 r)
{
return (r >> 12) & 0x1;
}
static inline u32 gr_fecs_arb_ctx_adr_r(void)
{
return 0x00409a24;
}
static inline u32 gr_fecs_new_ctx_r(void)
{
return 0x00409b04;
}
static inline u32 gr_fecs_new_ctx_ptr_s(void)
{
return 28;
}
static inline u32 gr_fecs_new_ctx_ptr_f(u32 v)
{
return (v & 0xfffffff) << 0;
}
static inline u32 gr_fecs_new_ctx_ptr_m(void)
{
return 0xfffffff << 0;
}
static inline u32 gr_fecs_new_ctx_ptr_v(u32 r)
{
return (r >> 0) & 0xfffffff;
}
static inline u32 gr_fecs_new_ctx_target_s(void)
{
return 2;
}
static inline u32 gr_fecs_new_ctx_target_f(u32 v)
{
return (v & 0x3) << 28;
}
static inline u32 gr_fecs_new_ctx_target_m(void)
{
return 0x3 << 28;
}
static inline u32 gr_fecs_new_ctx_target_v(u32 r)
{
return (r >> 28) & 0x3;
}
static inline u32 gr_fecs_new_ctx_valid_s(void)
{
return 1;
}
static inline u32 gr_fecs_new_ctx_valid_f(u32 v)
{
return (v & 0x1) << 31;
}
static inline u32 gr_fecs_new_ctx_valid_m(void)
{
return 0x1 << 31;
}
static inline u32 gr_fecs_new_ctx_valid_v(u32 r)
{
return (r >> 31) & 0x1;
}
static inline u32 gr_fecs_arb_ctx_ptr_r(void)
{
return 0x00409a0c;
}
static inline u32 gr_fecs_arb_ctx_ptr_ptr_s(void)
{
return 28;
}
static inline u32 gr_fecs_arb_ctx_ptr_ptr_f(u32 v)
{
return (v & 0xfffffff) << 0;
}
static inline u32 gr_fecs_arb_ctx_ptr_ptr_m(void)
{
return 0xfffffff << 0;
}
static inline u32 gr_fecs_arb_ctx_ptr_ptr_v(u32 r)
{
return (r >> 0) & 0xfffffff;
}
static inline u32 gr_fecs_arb_ctx_ptr_target_s(void)
{
return 2;
}
static inline u32 gr_fecs_arb_ctx_ptr_target_f(u32 v)
{
return (v & 0x3) << 28;
}
static inline u32 gr_fecs_arb_ctx_ptr_target_m(void)
{
return 0x3 << 28;
}
static inline u32 gr_fecs_arb_ctx_ptr_target_v(u32 r)
{
return (r >> 28) & 0x3;
}
static inline u32 gr_fecs_arb_ctx_cmd_r(void)
{
return 0x00409a10;
}
static inline u32 gr_fecs_arb_ctx_cmd_cmd_s(void)
{
return 5;
}
static inline u32 gr_fecs_arb_ctx_cmd_cmd_f(u32 v)
{
return (v & 0x1f) << 0;
}
static inline u32 gr_fecs_arb_ctx_cmd_cmd_m(void)
{
return 0x1f << 0;
}
static inline u32 gr_fecs_arb_ctx_cmd_cmd_v(u32 r)
{
return (r >> 0) & 0x1f;
}
static inline u32 gr_rstr2d_gpc_map0_r(void)
{
return 0x0040780c;
}
static inline u32 gr_rstr2d_gpc_map1_r(void)
{
return 0x00407810;
}
static inline u32 gr_rstr2d_gpc_map2_r(void)
{
return 0x00407814;
}
static inline u32 gr_rstr2d_gpc_map3_r(void)
{
return 0x00407818;
}
static inline u32 gr_rstr2d_gpc_map4_r(void)
{
return 0x0040781c;
}
static inline u32 gr_rstr2d_gpc_map5_r(void)
{
return 0x00407820;
}
static inline u32 gr_rstr2d_map_table_cfg_r(void)
{
return 0x004078bc;
}
static inline u32 gr_rstr2d_map_table_cfg_row_offset_f(u32 v)
{
return (v & 0xff) << 0;
}
static inline u32 gr_rstr2d_map_table_cfg_num_entries_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_pd_hww_esr_r(void)
{
return 0x00406018;
}
static inline u32 gr_pd_hww_esr_reset_active_f(void)
{
return 0x40000000;
}
static inline u32 gr_pd_hww_esr_en_enable_f(void)
{
return 0x80000000;
}
static inline u32 gr_pd_num_tpc_per_gpc_r(u32 i)
{
return 0x00406028 + i*4;
}
static inline u32 gr_pd_num_tpc_per_gpc__size_1_v(void)
{
return 0x00000004;
}
static inline u32 gr_pd_num_tpc_per_gpc_count0_f(u32 v)
{
return (v & 0xf) << 0;
}
static inline u32 gr_pd_num_tpc_per_gpc_count1_f(u32 v)
{
return (v & 0xf) << 4;
}
static inline u32 gr_pd_num_tpc_per_gpc_count2_f(u32 v)
{
return (v & 0xf) << 8;
}
static inline u32 gr_pd_num_tpc_per_gpc_count3_f(u32 v)
{
return (v & 0xf) << 12;
}
static inline u32 gr_pd_num_tpc_per_gpc_count4_f(u32 v)
{
return (v & 0xf) << 16;
}
static inline u32 gr_pd_num_tpc_per_gpc_count5_f(u32 v)
{
return (v & 0xf) << 20;
}
static inline u32 gr_pd_num_tpc_per_gpc_count6_f(u32 v)
{
return (v & 0xf) << 24;
}
static inline u32 gr_pd_num_tpc_per_gpc_count7_f(u32 v)
{
return (v & 0xf) << 28;
}
static inline u32 gr_pd_ab_dist_cfg0_r(void)
{
return 0x004064c0;
}
static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_en_f(void)
{
return 0x80000000;
}
static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_dis_f(void)
{
return 0x0;
}
static inline u32 gr_pd_ab_dist_cfg1_r(void)
{
return 0x004064c4;
}
static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void)
{
return 0xffff;
}
static inline u32 gr_pd_ab_dist_cfg1_max_output_f(u32 v)
{
return (v & 0x7ff) << 16;
}
static inline u32 gr_pd_ab_dist_cfg1_max_output_granularity_v(void)
{
return 0x00000080;
}
static inline u32 gr_pd_ab_dist_cfg2_r(void)
{
return 0x004064c8;
}
static inline u32 gr_pd_ab_dist_cfg2_token_limit_f(u32 v)
{
return (v & 0xfff) << 0;
}
static inline u32 gr_pd_ab_dist_cfg2_token_limit_init_v(void)
{
return 0x00000100;
}
static inline u32 gr_pd_ab_dist_cfg2_state_limit_f(u32 v)
{
return (v & 0xfff) << 16;
}
static inline u32 gr_pd_ab_dist_cfg2_state_limit_scc_bundle_granularity_v(void)
{
return 0x00000020;
}
static inline u32 gr_pd_ab_dist_cfg2_state_limit_min_gpm_fifo_depths_v(void)
{
return 0x00000062;
}
static inline u32 gr_pd_pagepool_r(void)
{
return 0x004064cc;
}
static inline u32 gr_pd_pagepool_total_pages_f(u32 v)
{
return (v & 0xff) << 0;
}
static inline u32 gr_pd_pagepool_valid_true_f(void)
{
return 0x80000000;
}
static inline u32 gr_pd_dist_skip_table_r(u32 i)
{
return 0x004064d0 + i*4;
}
static inline u32 gr_pd_dist_skip_table__size_1_v(void)
{
return 0x00000008;
}
static inline u32 gr_pd_dist_skip_table_gpc_4n0_mask_f(u32 v)
{
return (v & 0xff) << 0;
}
static inline u32 gr_pd_dist_skip_table_gpc_4n1_mask_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_pd_dist_skip_table_gpc_4n2_mask_f(u32 v)
{
return (v & 0xff) << 16;
}
static inline u32 gr_pd_dist_skip_table_gpc_4n3_mask_f(u32 v)
{
return (v & 0xff) << 24;
}
static inline u32 gr_pd_alpha_ratio_table_r(u32 i)
{
return 0x00406800 + i*4;
}
static inline u32 gr_pd_alpha_ratio_table__size_1_v(void)
{
return 0x00000100;
}
static inline u32 gr_pd_alpha_ratio_table_gpc_4n0_mask_f(u32 v)
{
return (v & 0xff) << 0;
}
static inline u32 gr_pd_alpha_ratio_table_gpc_4n1_mask_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_pd_alpha_ratio_table_gpc_4n2_mask_f(u32 v)
{
return (v & 0xff) << 16;
}
static inline u32 gr_pd_alpha_ratio_table_gpc_4n3_mask_f(u32 v)
{
return (v & 0xff) << 24;
}
static inline u32 gr_pd_beta_ratio_table_r(u32 i)
{
return 0x00406c00 + i*4;
}
static inline u32 gr_pd_beta_ratio_table__size_1_v(void)
{
return 0x00000100;
}
static inline u32 gr_pd_beta_ratio_table_gpc_4n0_mask_f(u32 v)
{
return (v & 0xff) << 0;
}
static inline u32 gr_pd_beta_ratio_table_gpc_4n1_mask_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_pd_beta_ratio_table_gpc_4n2_mask_f(u32 v)
{
return (v & 0xff) << 16;
}
static inline u32 gr_pd_beta_ratio_table_gpc_4n3_mask_f(u32 v)
{
return (v & 0xff) << 24;
}
static inline u32 gr_ds_debug_r(void)
{
return 0x00405800;
}
static inline u32 gr_ds_debug_timeslice_mode_disable_f(void)
{
return 0x0;
}
static inline u32 gr_ds_debug_timeslice_mode_enable_f(void)
{
return 0x8000000;
}
static inline u32 gr_ds_zbc_color_r_r(void)
{
return 0x00405804;
}
static inline u32 gr_ds_zbc_color_r_val_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_ds_zbc_color_g_r(void)
{
return 0x00405808;
}
static inline u32 gr_ds_zbc_color_g_val_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_ds_zbc_color_b_r(void)
{
return 0x0040580c;
}
static inline u32 gr_ds_zbc_color_b_val_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_ds_zbc_color_a_r(void)
{
return 0x00405810;
}
static inline u32 gr_ds_zbc_color_a_val_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_ds_zbc_color_fmt_r(void)
{
return 0x00405814;
}
static inline u32 gr_ds_zbc_color_fmt_val_f(u32 v)
{
return (v & 0x7f) << 0;
}
static inline u32 gr_ds_zbc_color_fmt_val_invalid_f(void)
{
return 0x0;
}
static inline u32 gr_ds_zbc_color_fmt_val_zero_v(void)
{
return 0x00000001;
}
static inline u32 gr_ds_zbc_color_fmt_val_unorm_one_v(void)
{
return 0x00000002;
}
static inline u32 gr_ds_zbc_color_fmt_val_rf32_gf32_bf32_af32_v(void)
{
return 0x00000004;
}
static inline u32 gr_ds_zbc_color_fmt_val_a8_b8_g8_r8_v(void)
{
return 0x00000028;
}
static inline u32 gr_ds_zbc_z_r(void)
{
return 0x00405818;
}
static inline u32 gr_ds_zbc_z_val_s(void)
{
return 32;
}
static inline u32 gr_ds_zbc_z_val_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_ds_zbc_z_val_m(void)
{
return 0xffffffff << 0;
}
static inline u32 gr_ds_zbc_z_val_v(u32 r)
{
return (r >> 0) & 0xffffffff;
}
static inline u32 gr_ds_zbc_z_val__init_v(void)
{
return 0x00000000;
}
static inline u32 gr_ds_zbc_z_val__init_f(void)
{
return 0x0;
}
static inline u32 gr_ds_zbc_z_fmt_r(void)
{
return 0x0040581c;
}
static inline u32 gr_ds_zbc_z_fmt_val_f(u32 v)
{
return (v & 0x1) << 0;
}
static inline u32 gr_ds_zbc_z_fmt_val_invalid_f(void)
{
return 0x0;
}
static inline u32 gr_ds_zbc_z_fmt_val_fp32_v(void)
{
return 0x00000001;
}
static inline u32 gr_ds_zbc_tbl_index_r(void)
{
return 0x00405820;
}
static inline u32 gr_ds_zbc_tbl_index_val_f(u32 v)
{
return (v & 0xf) << 0;
}
static inline u32 gr_ds_zbc_tbl_ld_r(void)
{
return 0x00405824;
}
static inline u32 gr_ds_zbc_tbl_ld_select_c_f(void)
{
return 0x0;
}
static inline u32 gr_ds_zbc_tbl_ld_select_z_f(void)
{
return 0x1;
}
static inline u32 gr_ds_zbc_tbl_ld_action_write_f(void)
{
return 0x0;
}
static inline u32 gr_ds_zbc_tbl_ld_trigger_active_f(void)
{
return 0x4;
}
static inline u32 gr_ds_tga_constraintlogic_r(void)
{
return 0x00405830;
}
static inline u32 gr_ds_tga_constraintlogic_beta_cbsize_f(u32 v)
{
return (v & 0xfff) << 16;
}
static inline u32 gr_ds_tga_constraintlogic_alpha_cbsize_f(u32 v)
{
return (v & 0xfff) << 0;
}
static inline u32 gr_ds_hww_esr_r(void)
{
return 0x00405840;
}
static inline u32 gr_ds_hww_esr_reset_s(void)
{
return 1;
}
static inline u32 gr_ds_hww_esr_reset_f(u32 v)
{
return (v & 0x1) << 30;
}
static inline u32 gr_ds_hww_esr_reset_m(void)
{
return 0x1 << 30;
}
static inline u32 gr_ds_hww_esr_reset_v(u32 r)
{
return (r >> 30) & 0x1;
}
static inline u32 gr_ds_hww_esr_reset_task_v(void)
{
return 0x00000001;
}
static inline u32 gr_ds_hww_esr_reset_task_f(void)
{
return 0x40000000;
}
static inline u32 gr_ds_hww_esr_en_enabled_f(void)
{
return 0x80000000;
}
static inline u32 gr_ds_hww_report_mask_r(void)
{
return 0x00405844;
}
static inline u32 gr_ds_hww_report_mask_sph0_err_report_f(void)
{
return 0x1;
}
static inline u32 gr_ds_hww_report_mask_sph1_err_report_f(void)
{
return 0x2;
}
static inline u32 gr_ds_hww_report_mask_sph2_err_report_f(void)
{
return 0x4;
}
static inline u32 gr_ds_hww_report_mask_sph3_err_report_f(void)
{
return 0x8;
}
static inline u32 gr_ds_hww_report_mask_sph4_err_report_f(void)
{
return 0x10;
}
static inline u32 gr_ds_hww_report_mask_sph5_err_report_f(void)
{
return 0x20;
}
static inline u32 gr_ds_hww_report_mask_sph6_err_report_f(void)
{
return 0x40;
}
static inline u32 gr_ds_hww_report_mask_sph7_err_report_f(void)
{
return 0x80;
}
static inline u32 gr_ds_hww_report_mask_sph8_err_report_f(void)
{
return 0x100;
}
static inline u32 gr_ds_hww_report_mask_sph9_err_report_f(void)
{
return 0x200;
}
static inline u32 gr_ds_hww_report_mask_sph10_err_report_f(void)
{
return 0x400;
}
static inline u32 gr_ds_hww_report_mask_sph11_err_report_f(void)
{
return 0x800;
}
static inline u32 gr_ds_hww_report_mask_sph12_err_report_f(void)
{
return 0x1000;
}
static inline u32 gr_ds_hww_report_mask_sph13_err_report_f(void)
{
return 0x2000;
}
static inline u32 gr_ds_hww_report_mask_sph14_err_report_f(void)
{
return 0x4000;
}
static inline u32 gr_ds_hww_report_mask_sph15_err_report_f(void)
{
return 0x8000;
}
static inline u32 gr_ds_hww_report_mask_sph16_err_report_f(void)
{
return 0x10000;
}
static inline u32 gr_ds_hww_report_mask_sph17_err_report_f(void)
{
return 0x20000;
}
static inline u32 gr_ds_hww_report_mask_sph18_err_report_f(void)
{
return 0x40000;
}
static inline u32 gr_ds_hww_report_mask_sph19_err_report_f(void)
{
return 0x80000;
}
static inline u32 gr_ds_hww_report_mask_sph20_err_report_f(void)
{
return 0x100000;
}
static inline u32 gr_ds_hww_report_mask_sph21_err_report_f(void)
{
return 0x200000;
}
static inline u32 gr_ds_hww_report_mask_sph22_err_report_f(void)
{
return 0x400000;
}
static inline u32 gr_ds_hww_report_mask_sph23_err_report_f(void)
{
return 0x800000;
}
static inline u32 gr_ds_num_tpc_per_gpc_r(u32 i)
{
return 0x00405870 + i*4;
}
static inline u32 gr_scc_bundle_cb_base_r(void)
{
return 0x00408004;
}
static inline u32 gr_scc_bundle_cb_base_addr_39_8_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_scc_bundle_cb_base_addr_39_8_align_bits_v(void)
{
return 0x00000008;
}
static inline u32 gr_scc_bundle_cb_size_r(void)
{
return 0x00408008;
}
static inline u32 gr_scc_bundle_cb_size_div_256b_f(u32 v)
{
return (v & 0x7ff) << 0;
}
static inline u32 gr_scc_bundle_cb_size_div_256b__prod_v(void)
{
return 0x00000018;
}
static inline u32 gr_scc_bundle_cb_size_div_256b_byte_granularity_v(void)
{
return 0x00000100;
}
static inline u32 gr_scc_bundle_cb_size_valid_false_v(void)
{
return 0x00000000;
}
static inline u32 gr_scc_bundle_cb_size_valid_false_f(void)
{
return 0x0;
}
static inline u32 gr_scc_bundle_cb_size_valid_true_f(void)
{
return 0x80000000;
}
static inline u32 gr_scc_pagepool_base_r(void)
{
return 0x0040800c;
}
static inline u32 gr_scc_pagepool_base_addr_39_8_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_scc_pagepool_base_addr_39_8_align_bits_v(void)
{
return 0x00000008;
}
static inline u32 gr_scc_pagepool_r(void)
{
return 0x00408010;
}
static inline u32 gr_scc_pagepool_total_pages_f(u32 v)
{
return (v & 0xff) << 0;
}
static inline u32 gr_scc_pagepool_total_pages_hwmax_v(void)
{
return 0x00000000;
}
static inline u32 gr_scc_pagepool_total_pages_hwmax_value_v(void)
{
return 0x00000080;
}
static inline u32 gr_scc_pagepool_total_pages_byte_granularity_v(void)
{
return 0x00000100;
}
static inline u32 gr_scc_pagepool_max_valid_pages_s(void)
{
return 8;
}
static inline u32 gr_scc_pagepool_max_valid_pages_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_scc_pagepool_max_valid_pages_m(void)
{
return 0xff << 8;
}
static inline u32 gr_scc_pagepool_max_valid_pages_v(u32 r)
{
return (r >> 8) & 0xff;
}
static inline u32 gr_scc_pagepool_valid_true_f(void)
{
return 0x80000000;
}
static inline u32 gr_scc_init_r(void)
{
return 0x0040802c;
}
static inline u32 gr_scc_init_ram_trigger_f(void)
{
return 0x1;
}
static inline u32 gr_scc_hww_esr_r(void)
{
return 0x00408030;
}
static inline u32 gr_scc_hww_esr_reset_active_f(void)
{
return 0x40000000;
}
static inline u32 gr_scc_hww_esr_en_enable_f(void)
{
return 0x80000000;
}
static inline u32 gr_sked_hww_esr_r(void)
{
return 0x00407020;
}
static inline u32 gr_sked_hww_esr_reset_active_f(void)
{
return 0x40000000;
}
static inline u32 gr_cwd_fs_r(void)
{
return 0x00405b00;
}
static inline u32 gr_cwd_fs_num_gpcs_f(u32 v)
{
return (v & 0xff) << 0;
}
static inline u32 gr_cwd_fs_num_tpcs_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_gpc0_fs_gpc_r(void)
{
return 0x00502608;
}
static inline u32 gr_gpc0_fs_gpc_num_available_tpcs_v(u32 r)
{
return (r >> 0) & 0x1f;
}
static inline u32 gr_gpc0_fs_gpc_num_available_zculls_v(u32 r)
{
return (r >> 16) & 0x1f;
}
static inline u32 gr_gpc0_cfg_r(void)
{
return 0x00502620;
}
static inline u32 gr_gpc0_cfg_imem_sz_v(u32 r)
{
return (r >> 0) & 0xff;
}
static inline u32 gr_gpccs_rc_lanes_r(void)
{
return 0x00502880;
}
static inline u32 gr_gpccs_rc_lanes_num_chains_s(void)
{
return 6;
}
static inline u32 gr_gpccs_rc_lanes_num_chains_f(u32 v)
{
return (v & 0x3f) << 0;
}
static inline u32 gr_gpccs_rc_lanes_num_chains_m(void)
{
return 0x3f << 0;
}
static inline u32 gr_gpccs_rc_lanes_num_chains_v(u32 r)
{
return (r >> 0) & 0x3f;
}
static inline u32 gr_gpccs_rc_lane_size_r(u32 i)
{
return 0x00502910 + i*0;
}
static inline u32 gr_gpccs_rc_lane_size__size_1_v(void)
{
return 0x00000010;
}
static inline u32 gr_gpccs_rc_lane_size_v_s(void)
{
return 24;
}
static inline u32 gr_gpccs_rc_lane_size_v_f(u32 v)
{
return (v & 0xffffff) << 0;
}
static inline u32 gr_gpccs_rc_lane_size_v_m(void)
{
return 0xffffff << 0;
}
static inline u32 gr_gpccs_rc_lane_size_v_v(u32 r)
{
return (r >> 0) & 0xffffff;
}
static inline u32 gr_gpccs_rc_lane_size_v_0_v(void)
{
return 0x00000000;
}
static inline u32 gr_gpccs_rc_lane_size_v_0_f(void)
{
return 0x0;
}
static inline u32 gr_gpc0_zcull_fs_r(void)
{
return 0x00500910;
}
static inline u32 gr_gpc0_zcull_fs_num_sms_f(u32 v)
{
return (v & 0x1ff) << 0;
}
static inline u32 gr_gpc0_zcull_fs_num_active_banks_f(u32 v)
{
return (v & 0xf) << 16;
}
static inline u32 gr_gpc0_zcull_ram_addr_r(void)
{
return 0x00500914;
}
static inline u32 gr_gpc0_zcull_ram_addr_tiles_per_hypertile_row_per_gpc_f(u32 v)
{
return (v & 0xf) << 0;
}
static inline u32 gr_gpc0_zcull_ram_addr_row_offset_f(u32 v)
{
return (v & 0xf) << 8;
}
static inline u32 gr_gpc0_zcull_sm_num_rcp_r(void)
{
return 0x00500918;
}
static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative_f(u32 v)
{
return (v & 0xffffff) << 0;
}
static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative__max_v(void)
{
return 0x00800000;
}
static inline u32 gr_gpc0_zcull_total_ram_size_r(void)
{
return 0x00500920;
}
static inline u32 gr_gpc0_zcull_total_ram_size_num_aliquots_f(u32 v)
{
return (v & 0xffff) << 0;
}
static inline u32 gr_gpc0_zcull_zcsize_r(u32 i)
{
return 0x00500a04 + i*32;
}
static inline u32 gr_gpc0_zcull_zcsize_height_subregion__multiple_v(void)
{
return 0x00000040;
}
static inline u32 gr_gpc0_zcull_zcsize_width_subregion__multiple_v(void)
{
return 0x00000010;
}
static inline u32 gr_gpc0_gpm_pd_active_tpcs_r(void)
{
return 0x00500c08;
}
static inline u32 gr_gpc0_gpm_pd_active_tpcs_num_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_gpc0_gpm_pd_sm_id_r(u32 i)
{
return 0x00500c10 + i*4;
}
static inline u32 gr_gpc0_gpm_pd_sm_id_id_f(u32 v)
{
return (v & 0xff) << 0;
}
static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_r(u32 i)
{
return 0x00500c30 + i*4;
}
static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_mask_v(u32 r)
{
return (r >> 0) & 0xff;
}
static inline u32 gr_gpc0_gpm_sd_active_tpcs_r(void)
{
return 0x00500c8c;
}
static inline u32 gr_gpc0_gpm_sd_active_tpcs_num_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_gpc0_tpc0_pe_cfg_smid_r(void)
{
return 0x00504088;
}
static inline u32 gr_gpc0_tpc0_pe_cfg_smid_value_f(u32 v)
{
return (v & 0xffff) << 0;
}
static inline u32 gr_gpc0_tpc0_l1c_cfg_smid_r(void)
{
return 0x005044e8;
}
static inline u32 gr_gpc0_tpc0_l1c_cfg_smid_value_f(u32 v)
{
return (v & 0xffff) << 0;
}
static inline u32 gr_gpc0_tpc0_sm_cfg_r(void)
{
return 0x00504698;
}
static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_f(u32 v)
{
return (v & 0xffff) << 0;
}
static inline u32 gr_gpc0_tpc0_sm_arch_r(void)
{
return 0x0050469c;
}
static inline u32 gr_gpc0_tpc0_sm_arch_warp_count_v(u32 r)
{
return (r >> 0) & 0xff;
}
static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_v(u32 r)
{
return (r >> 8) & 0xf;
}
static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_smkepler_lp_v(void)
{
return 0x0000000c;
}
static inline u32 gr_gpc0_ppc0_pes_vsc_strem_r(void)
{
return 0x00503018;
}
static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_m(void)
{
return 0x1 << 0;
}
static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_true_f(void)
{
return 0x1;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg_r(void)
{
return 0x005030c0;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg_start_offset_f(u32 v)
{
return (v & 0xffff) << 0;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg_start_offset_m(void)
{
return 0xffff << 0;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg_start_offset_v(u32 r)
{
return (r >> 0) & 0xffff;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg_size_f(u32 v)
{
return (v & 0xfff) << 16;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg_size_m(void)
{
return 0xfff << 16;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg_size_v(u32 r)
{
return (r >> 16) & 0xfff;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg_size_default_v(void)
{
return 0x00000240;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg_size_granularity_v(void)
{
return 0x00000020;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg_timeslice_mode_f(u32 v)
{
return (v & 0x1) << 28;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg2_r(void)
{
return 0x005030e4;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg2_start_offset_f(u32 v)
{
return (v & 0xffff) << 0;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg2_size_f(u32 v)
{
return (v & 0xfff) << 16;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg2_size_m(void)
{
return 0xfff << 16;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg2_size_v(u32 r)
{
return (r >> 16) & 0xfff;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg2_size_default_v(void)
{
return 0x00000648;
}
static inline u32 gr_gpc0_ppc0_cbm_cfg2_size_granularity_v(void)
{
return 0x00000020;
}
static inline u32 gr_gpccs_falcon_addr_r(void)
{
return 0x0041a0ac;
}
static inline u32 gr_gpccs_falcon_addr_lsb_s(void)
{
return 6;
}
static inline u32 gr_gpccs_falcon_addr_lsb_f(u32 v)
{
return (v & 0x3f) << 0;
}
static inline u32 gr_gpccs_falcon_addr_lsb_m(void)
{
return 0x3f << 0;
}
static inline u32 gr_gpccs_falcon_addr_lsb_v(u32 r)
{
return (r >> 0) & 0x3f;
}
static inline u32 gr_gpccs_falcon_addr_lsb_init_v(void)
{
return 0x00000000;
}
static inline u32 gr_gpccs_falcon_addr_lsb_init_f(void)
{
return 0x0;
}
static inline u32 gr_gpccs_falcon_addr_msb_s(void)
{
return 6;
}
static inline u32 gr_gpccs_falcon_addr_msb_f(u32 v)
{
return (v & 0x3f) << 6;
}
static inline u32 gr_gpccs_falcon_addr_msb_m(void)
{
return 0x3f << 6;
}
static inline u32 gr_gpccs_falcon_addr_msb_v(u32 r)
{
return (r >> 6) & 0x3f;
}
static inline u32 gr_gpccs_falcon_addr_msb_init_v(void)
{
return 0x00000000;
}
static inline u32 gr_gpccs_falcon_addr_msb_init_f(void)
{
return 0x0;
}
static inline u32 gr_gpccs_falcon_addr_ext_s(void)
{
return 12;
}
static inline u32 gr_gpccs_falcon_addr_ext_f(u32 v)
{
return (v & 0xfff) << 0;
}
static inline u32 gr_gpccs_falcon_addr_ext_m(void)
{
return 0xfff << 0;
}
static inline u32 gr_gpccs_falcon_addr_ext_v(u32 r)
{
return (r >> 0) & 0xfff;
}
static inline u32 gr_gpccs_cpuctl_r(void)
{
return 0x0041a100;
}
static inline u32 gr_gpccs_cpuctl_startcpu_f(u32 v)
{
return (v & 0x1) << 1;
}
static inline u32 gr_gpccs_dmactl_r(void)
{
return 0x0041a10c;
}
static inline u32 gr_gpccs_dmactl_require_ctx_f(u32 v)
{
return (v & 0x1) << 0;
}
static inline u32 gr_gpccs_dmactl_dmem_scrubbing_m(void)
{
return 0x1 << 1;
}
static inline u32 gr_gpccs_dmactl_imem_scrubbing_m(void)
{
return 0x1 << 2;
}
static inline u32 gr_gpccs_imemc_r(u32 i)
{
return 0x0041a180 + i*16;
}
static inline u32 gr_gpccs_imemc_offs_f(u32 v)
{
return (v & 0x3f) << 2;
}
static inline u32 gr_gpccs_imemc_blk_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_gpccs_imemc_aincw_f(u32 v)
{
return (v & 0x1) << 24;
}
static inline u32 gr_gpccs_imemd_r(u32 i)
{
return 0x0041a184 + i*16;
}
static inline u32 gr_gpccs_imemt_r(u32 i)
{
return 0x0041a188 + i*16;
}
static inline u32 gr_gpccs_imemt__size_1_v(void)
{
return 0x00000004;
}
static inline u32 gr_gpccs_imemt_tag_f(u32 v)
{
return (v & 0xffff) << 0;
}
static inline u32 gr_gpccs_dmemc_r(u32 i)
{
return 0x0041a1c0 + i*8;
}
static inline u32 gr_gpccs_dmemc_offs_f(u32 v)
{
return (v & 0x3f) << 2;
}
static inline u32 gr_gpccs_dmemc_blk_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_gpccs_dmemc_aincw_f(u32 v)
{
return (v & 0x1) << 24;
}
static inline u32 gr_gpccs_dmemd_r(u32 i)
{
return 0x0041a1c4 + i*8;
}
static inline u32 gr_gpccs_ctxsw_mailbox_r(u32 i)
{
return 0x0041a800 + i*4;
}
static inline u32 gr_gpccs_ctxsw_mailbox_value_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_gpcs_setup_bundle_cb_base_r(void)
{
return 0x00418808;
}
static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_s(void)
{
return 32;
}
static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_m(void)
{
return 0xffffffff << 0;
}
static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_v(u32 r)
{
return (r >> 0) & 0xffffffff;
}
static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_init_v(void)
{
return 0x00000000;
}
static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_init_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_r(void)
{
return 0x0041880c;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_s(void)
{
return 11;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_f(u32 v)
{
return (v & 0x7ff) << 0;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_m(void)
{
return 0x7ff << 0;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_v(u32 r)
{
return (r >> 0) & 0x7ff;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_init_v(void)
{
return 0x00000000;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_init_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b__prod_v(void)
{
return 0x00000018;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b__prod_f(void)
{
return 0x18;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_valid_s(void)
{
return 1;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_valid_f(u32 v)
{
return (v & 0x1) << 31;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_valid_m(void)
{
return 0x1 << 31;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_valid_v(u32 r)
{
return (r >> 31) & 0x1;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_valid_false_v(void)
{
return 0x00000000;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_valid_false_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_valid_true_v(void)
{
return 0x00000001;
}
static inline u32 gr_gpcs_setup_bundle_cb_size_valid_true_f(void)
{
return 0x80000000;
}
static inline u32 gr_gpcs_setup_attrib_cb_base_r(void)
{
return 0x00418810;
}
static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_f(u32 v)
{
return (v & 0xfffffff) << 0;
}
static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v(void)
{
return 0x0000000c;
}
static inline u32 gr_gpcs_setup_attrib_cb_base_valid_true_f(void)
{
return 0x80000000;
}
static inline u32 gr_crstr_gpc_map0_r(void)
{
return 0x00418b08;
}
static inline u32 gr_crstr_gpc_map0_tile0_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_crstr_gpc_map0_tile1_f(u32 v)
{
return (v & 0x7) << 5;
}
static inline u32 gr_crstr_gpc_map0_tile2_f(u32 v)
{
return (v & 0x7) << 10;
}
static inline u32 gr_crstr_gpc_map0_tile3_f(u32 v)
{
return (v & 0x7) << 15;
}
static inline u32 gr_crstr_gpc_map0_tile4_f(u32 v)
{
return (v & 0x7) << 20;
}
static inline u32 gr_crstr_gpc_map0_tile5_f(u32 v)
{
return (v & 0x7) << 25;
}
static inline u32 gr_crstr_gpc_map1_r(void)
{
return 0x00418b0c;
}
static inline u32 gr_crstr_gpc_map1_tile6_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_crstr_gpc_map1_tile7_f(u32 v)
{
return (v & 0x7) << 5;
}
static inline u32 gr_crstr_gpc_map1_tile8_f(u32 v)
{
return (v & 0x7) << 10;
}
static inline u32 gr_crstr_gpc_map1_tile9_f(u32 v)
{
return (v & 0x7) << 15;
}
static inline u32 gr_crstr_gpc_map1_tile10_f(u32 v)
{
return (v & 0x7) << 20;
}
static inline u32 gr_crstr_gpc_map1_tile11_f(u32 v)
{
return (v & 0x7) << 25;
}
static inline u32 gr_crstr_gpc_map2_r(void)
{
return 0x00418b10;
}
static inline u32 gr_crstr_gpc_map2_tile12_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_crstr_gpc_map2_tile13_f(u32 v)
{
return (v & 0x7) << 5;
}
static inline u32 gr_crstr_gpc_map2_tile14_f(u32 v)
{
return (v & 0x7) << 10;
}
static inline u32 gr_crstr_gpc_map2_tile15_f(u32 v)
{
return (v & 0x7) << 15;
}
static inline u32 gr_crstr_gpc_map2_tile16_f(u32 v)
{
return (v & 0x7) << 20;
}
static inline u32 gr_crstr_gpc_map2_tile17_f(u32 v)
{
return (v & 0x7) << 25;
}
static inline u32 gr_crstr_gpc_map3_r(void)
{
return 0x00418b14;
}
static inline u32 gr_crstr_gpc_map3_tile18_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_crstr_gpc_map3_tile19_f(u32 v)
{
return (v & 0x7) << 5;
}
static inline u32 gr_crstr_gpc_map3_tile20_f(u32 v)
{
return (v & 0x7) << 10;
}
static inline u32 gr_crstr_gpc_map3_tile21_f(u32 v)
{
return (v & 0x7) << 15;
}
static inline u32 gr_crstr_gpc_map3_tile22_f(u32 v)
{
return (v & 0x7) << 20;
}
static inline u32 gr_crstr_gpc_map3_tile23_f(u32 v)
{
return (v & 0x7) << 25;
}
static inline u32 gr_crstr_gpc_map4_r(void)
{
return 0x00418b18;
}
static inline u32 gr_crstr_gpc_map4_tile24_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_crstr_gpc_map4_tile25_f(u32 v)
{
return (v & 0x7) << 5;
}
static inline u32 gr_crstr_gpc_map4_tile26_f(u32 v)
{
return (v & 0x7) << 10;
}
static inline u32 gr_crstr_gpc_map4_tile27_f(u32 v)
{
return (v & 0x7) << 15;
}
static inline u32 gr_crstr_gpc_map4_tile28_f(u32 v)
{
return (v & 0x7) << 20;
}
static inline u32 gr_crstr_gpc_map4_tile29_f(u32 v)
{
return (v & 0x7) << 25;
}
static inline u32 gr_crstr_gpc_map5_r(void)
{
return 0x00418b1c;
}
static inline u32 gr_crstr_gpc_map5_tile30_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_crstr_gpc_map5_tile31_f(u32 v)
{
return (v & 0x7) << 5;
}
static inline u32 gr_crstr_gpc_map5_tile32_f(u32 v)
{
return (v & 0x7) << 10;
}
static inline u32 gr_crstr_gpc_map5_tile33_f(u32 v)
{
return (v & 0x7) << 15;
}
static inline u32 gr_crstr_gpc_map5_tile34_f(u32 v)
{
return (v & 0x7) << 20;
}
static inline u32 gr_crstr_gpc_map5_tile35_f(u32 v)
{
return (v & 0x7) << 25;
}
static inline u32 gr_crstr_map_table_cfg_r(void)
{
return 0x00418bb8;
}
static inline u32 gr_crstr_map_table_cfg_row_offset_f(u32 v)
{
return (v & 0xff) << 0;
}
static inline u32 gr_crstr_map_table_cfg_num_entries_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_r(void)
{
return 0x00418980;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_0_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_1_f(u32 v)
{
return (v & 0x7) << 4;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_2_f(u32 v)
{
return (v & 0x7) << 8;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_3_f(u32 v)
{
return (v & 0x7) << 12;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_4_f(u32 v)
{
return (v & 0x7) << 16;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_5_f(u32 v)
{
return (v & 0x7) << 20;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_6_f(u32 v)
{
return (v & 0x7) << 24;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_7_f(u32 v)
{
return (v & 0x7) << 28;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_r(void)
{
return 0x00418984;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_8_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_9_f(u32 v)
{
return (v & 0x7) << 4;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_10_f(u32 v)
{
return (v & 0x7) << 8;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_11_f(u32 v)
{
return (v & 0x7) << 12;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_12_f(u32 v)
{
return (v & 0x7) << 16;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_13_f(u32 v)
{
return (v & 0x7) << 20;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_14_f(u32 v)
{
return (v & 0x7) << 24;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_15_f(u32 v)
{
return (v & 0x7) << 28;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_r(void)
{
return 0x00418988;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_16_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_17_f(u32 v)
{
return (v & 0x7) << 4;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_18_f(u32 v)
{
return (v & 0x7) << 8;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_19_f(u32 v)
{
return (v & 0x7) << 12;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_20_f(u32 v)
{
return (v & 0x7) << 16;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_21_f(u32 v)
{
return (v & 0x7) << 20;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_22_f(u32 v)
{
return (v & 0x7) << 24;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_s(void)
{
return 3;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_f(u32 v)
{
return (v & 0x7) << 28;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_m(void)
{
return 0x7 << 28;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_v(u32 r)
{
return (r >> 28) & 0x7;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_r(void)
{
return 0x0041898c;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_24_f(u32 v)
{
return (v & 0x7) << 0;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_25_f(u32 v)
{
return (v & 0x7) << 4;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_26_f(u32 v)
{
return (v & 0x7) << 8;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_27_f(u32 v)
{
return (v & 0x7) << 12;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_28_f(u32 v)
{
return (v & 0x7) << 16;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_29_f(u32 v)
{
return (v & 0x7) << 20;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_30_f(u32 v)
{
return (v & 0x7) << 24;
}
static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_31_f(u32 v)
{
return (v & 0x7) << 28;
}
static inline u32 gr_gpcs_gpm_pd_cfg_r(void)
{
return 0x00418c6c;
}
static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_disable_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_enable_f(void)
{
return 0x1;
}
static inline u32 gr_gpcs_gcc_pagepool_base_r(void)
{
return 0x00419004;
}
static inline u32 gr_gpcs_gcc_pagepool_base_addr_39_8_f(u32 v)
{
return (v & 0xffffffff) << 0;
}
static inline u32 gr_gpcs_gcc_pagepool_r(void)
{
return 0x00419008;
}
static inline u32 gr_gpcs_gcc_pagepool_total_pages_f(u32 v)
{
return (v & 0xff) << 0;
}
static inline u32 gr_gpcs_tpcs_pe_vaf_r(void)
{
return 0x0041980c;
}
static inline u32 gr_gpcs_tpcs_pe_vaf_fast_mode_switch_true_f(void)
{
return 0x10;
}
static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_r(void)
{
return 0x00419848;
}
static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_v_f(u32 v)
{
return (v & 0xfffffff) << 0;
}
static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_f(u32 v)
{
return (v & 0x1) << 28;
}
static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_true_f(void)
{
return 0x10000000;
}
static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_r(void)
{
return 0x00419c00;
}
static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_disabled_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_enabled_f(void)
{
return 0x8;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_r(void)
{
return 0x00419e44;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_error_report_f(void)
{
return 0x2;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_api_stack_error_report_f(void)
{
return 0x4;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_ret_empty_stack_error_report_f(void)
{
return 0x8;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_wrap_report_f(void)
{
return 0x10;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_pc_report_f(void)
{
return 0x20;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_overflow_report_f(void)
{
return 0x40;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_immc_addr_report_f(void)
{
return 0x80;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_reg_report_f(void)
{
return 0x100;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_encoding_report_f(void)
{
return 0x200;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_sph_instr_combo_report_f(void)
{
return 0x400;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param_report_f(void)
{
return 0x800;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_report_f(void)
{
return 0x1000;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_reg_report_f(void)
{
return 0x2000;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_addr_report_f(void)
{
return 0x4000;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_addr_report_f(void)
{
return 0x8000;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_addr_space_report_f(void)
{
return 0x10000;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param2_report_f(void)
{
return 0x20000;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_ldc_report_f(void)
{
return 0x40000;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_geometry_sm_error_report_f(void)
{
return 0x80000;
}
static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_divergent_report_f(void)
{
return 0x100000;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_r(void)
{
return 0x00419e4c;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_sm_to_sm_fault_report_f(void)
{
return 0x1;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_l1_error_report_f(void)
{
return 0x2;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_multiple_warp_errors_report_f(void)
{
return 0x4;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_physical_stack_overflow_error_report_f(void)
{
return 0x8;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_int_report_f(void)
{
return 0x10;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_pause_report_f(void)
{
return 0x20;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_single_step_complete_report_f(void)
{
return 0x40;
}
static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_r(void)
{
return 0x00419d0c;
}
static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_sm_enabled_f(void)
{
return 0x2;
}
static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
{
return 0x0050450c;
}
static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_enabled_f(void)
{
return 0x2;
}
static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void)
{
return 0x0041ac94;
}
static inline u32 gr_gpcs_gpccs_gpc_exception_en_tpc_f(u32 v)
{
return (v & 0xff) << 16;
}
static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
{
return 0x00502c90;
}
static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
{
return (r >> 16) & 0xff;
}
static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_0_pending_v(void)
{
return 0x00000001;
}
static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_r(void)
{
return 0x00504508;
}
static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r)
{
return (r >> 1) & 0x1;
}
static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_pending_v(void)
{
return 0x00000001;
}
static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_r(void)
{
return 0x00504610;
}
static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_v(u32 r)
{
return (r >> 0) & 0x1;
}
static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_on_v(void)
{
return 0x00000001;
}
static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_enable_f(void)
{
return 0x80000000;
}
static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_disable_f(void)
{
return 0x0;
}
static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_run_trigger_task_f(void)
{
return 0x40000000;
}
static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_r(void)
{
return 0x0050460c;
}
static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_v(u32 r)
{
return (r >> 4) & 0x1;
}
static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_true_v(void)
{
return 0x00000001;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_r(void)
{
return 0x00419e50;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_int_pending_f(void)
{
return 0x10;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_pause_pending_f(void)
{
return 0x20;
}
static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_single_step_complete_pending_f(void)
{
return 0x40;
}
static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_r(void)
{
return 0x00504650;
}
static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_int_pending_f(void)
{
return 0x10;
}
static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_pause_pending_f(void)
{
return 0x20;
}
static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_single_step_complete_pending_f(void)
{
return 0x40;
}
static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_r(void)
{
return 0x00504648;
}
static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_v(u32 r)
{
return (r >> 0) & 0xffff;
}
static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_v(void)
{
return 0x00000000;
}
static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_f(void)
{
return 0x0;
}
static inline u32 gr_gpc0_tpc0_sm_halfctl_ctrl_r(void)
{
return 0x00504770;
}
static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_r(void)
{
return 0x00419f70;
}
static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_m(void)
{
return 0x1 << 4;
}
static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_f(u32 v)
{
return (v & 0x1) << 4;
}
static inline u32 gr_gpc0_tpc0_sm_debug_sfe_control_r(void)
{
return 0x0050477c;
}
static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_r(void)
{
return 0x00419f7c;
}
static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_m(void)
{
return 0x1 << 0;
}
static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_f(u32 v)
{
return (v & 0x1) << 0;
}
static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_r(void)
{
return 0x0041be08;
}
static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_fast_mode_switch_true_f(void)
{
return 0x4;
}
static inline u32 gr_ppcs_wwdx_map_gpc_map0_r(void)
{
return 0x0041bf00;
}
static inline u32 gr_ppcs_wwdx_map_gpc_map1_r(void)
{
return 0x0041bf04;
}
static inline u32 gr_ppcs_wwdx_map_gpc_map2_r(void)
{
return 0x0041bf08;
}
static inline u32 gr_ppcs_wwdx_map_gpc_map3_r(void)
{
return 0x0041bf0c;
}
static inline u32 gr_ppcs_wwdx_map_gpc_map4_r(void)
{
return 0x0041bf10;
}
static inline u32 gr_ppcs_wwdx_map_gpc_map5_r(void)
{
return 0x0041bf14;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg_r(void)
{
return 0x0041bfd0;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg_row_offset_f(u32 v)
{
return (v & 0xff) << 0;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg_num_entries_f(u32 v)
{
return (v & 0xff) << 8;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_num_entries_f(u32 v)
{
return (v & 0x1f) << 16;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_shift_value_f(u32 v)
{
return (v & 0x7) << 21;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff5_mod_value_f(u32 v)
{
return (v & 0x1f) << 24;
}
static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_r(void)
{
return 0x0041bfd4;
}
static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_conservative_f(u32 v)
{
return (v & 0xffffff) << 0;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg2_r(void)
{
return 0x0041bfe4;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff6_mod_value_f(u32 v)
{
return (v & 0x1f) << 0;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff7_mod_value_f(u32 v)
{
return (v & 0x1f) << 5;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff8_mod_value_f(u32 v)
{
return (v & 0x1f) << 10;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff9_mod_value_f(u32 v)
{
return (v & 0x1f) << 15;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff10_mod_value_f(u32 v)
{
return (v & 0x1f) << 20;
}
static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff11_mod_value_f(u32 v)
{
return (v & 0x1f) << 25;
}
static inline u32 gr_gpcs_ppcs_cbm_cfg_r(void)
{
return 0x0041bec0;
}
static inline u32 gr_gpcs_ppcs_cbm_cfg_timeslice_mode_enable_v(void)
{
return 0x00000001;
}
static inline u32 gr_bes_zrop_settings_r(void)
{
return 0x00408850;
}
static inline u32 gr_bes_zrop_settings_num_active_fbps_f(u32 v)
{
return (v & 0xf) << 0;
}
static inline u32 gr_bes_crop_settings_r(void)
{
return 0x00408958;
}
static inline u32 gr_bes_crop_settings_num_active_fbps_f(u32 v)
{
return (v & 0xf) << 0;
}
static inline u32 gr_zcull_bytes_per_aliquot_per_gpu_v(void)
{
return 0x00000020;
}
static inline u32 gr_zcull_save_restore_header_bytes_per_gpc_v(void)
{
return 0x00000020;
}
static inline u32 gr_zcull_save_restore_subregion_header_bytes_per_gpc_v(void)
{
return 0x000000c0;
}
static inline u32 gr_zcull_subregion_qty_v(void)
{
return 0x00000010;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel0_r(void)
{
return 0x00504604;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel1_r(void)
{
return 0x00504608;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control0_r(void)
{
return 0x0050465c;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control1_r(void)
{
return 0x00504660;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control2_r(void)
{
return 0x00504664;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control3_r(void)
{
return 0x00504668;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control4_r(void)
{
return 0x0050466c;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control5_r(void)
{
return 0x00504658;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status_r(void)
{
return 0x00504670;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status1_r(void)
{
return 0x00504694;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_control_r(void)
{
return 0x00504730;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_control_r(void)
{
return 0x00504734;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_control_r(void)
{
return 0x00504738;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_control_r(void)
{
return 0x0050473c;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter4_control_r(void)
{
return 0x00504740;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter5_control_r(void)
{
return 0x00504744;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter6_control_r(void)
{
return 0x00504748;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter7_control_r(void)
{
return 0x0050474c;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_r(void)
{
return 0x00504674;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_r(void)
{
return 0x00504678;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_r(void)
{
return 0x0050467c;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_r(void)
{
return 0x00504680;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter4_r(void)
{
return 0x00504684;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter5_r(void)
{
return 0x00504688;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter6_r(void)
{
return 0x0050468c;
}
static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter7_r(void)
{
return 0x00504690;
}
static inline u32 gr_fe_pwr_mode_r(void)
{
return 0x00404170;
}
static inline u32 gr_fe_pwr_mode_mode_auto_f(void)
{
return 0x0;
}
static inline u32 gr_fe_pwr_mode_mode_force_on_f(void)
{
return 0x2;
}
static inline u32 gr_fe_pwr_mode_req_v(u32 r)
{
return (r >> 4) & 0x1;
}
static inline u32 gr_fe_pwr_mode_req_send_f(void)
{
return 0x10;
}
static inline u32 gr_fe_pwr_mode_req_done_v(void)
{
return 0x00000000;
}
static inline u32 gr_gpc0_tpc0_l1c_dbg_r(void)
{
return 0x005044b0;
}
static inline u32 gr_gpc0_tpc0_l1c_dbg_cya15_en_f(void)
{
return 0x8000000;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_r(void)
{
return 0x00419ec8;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_m(void)
{
return 0x1 << 0;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_disable_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tile_m(void)
{
return 0x1 << 1;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tile_disable_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_phase_m(void)
{
return 0x1 << 2;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_phase_disable_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tex_m(void)
{
return 0x1 << 3;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tex_disable_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_timeout_m(void)
{
return 0xff << 4;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_timeout_disable_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_dot_t_unlock_m(void)
{
return 0x1 << 16;
}
static inline u32 gr_gpcs_tpcs_sm_sch_texlock_dot_t_unlock_disable_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_tpcs_sm_sch_macro_sched_r(void)
{
return 0x00419eac;
}
static inline u32 gr_gpcs_tpcs_sm_sch_macro_sched_lockboost_size_f(u32 v)
{
return (v & 0x1) << 2;
}
static inline u32 gr_gpcs_tpcs_sm_sch_macro_sched_lockboost_size_m(void)
{
return 0x1 << 2;
}
static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_r(void)
{
return 0x00419e10;
}
static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_f(u32 v)
{
return (v & 0x1) << 0;
}
static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_on_v(void)
{
return 0x00000001;
}
static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_m(void)
{
return 0x1 << 31;
}
static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_v(u32 r)
{
return (r >> 31) & 0x1;
}
static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_enable_f(void)
{
return 0x80000000;
}
static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_disable_f(void)
{
return 0x0;
}
static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_m(void)
{
return 0x1 << 30;
}
static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_v(u32 r)
{
return (r >> 30) & 0x1;
}
static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_task_f(void)
{
return 0x40000000;
}
#endif