On Mon, 10 Feb 2025 09:50:14 +0800
Bingbin Chen <chen.bing...@zte.com.cn> wrote:

> +static uint32_t
> +zxdh_np_dtb_zcam_dump_info_write(uint32_t dev_id,
> +                                                     uint32_t addr,
> +                                                     uint32_t tb_width,
> +                                                     uint32_t depth,
> +                                                     uint32_t addr_high32,
> +                                                     uint32_t addr_low32,
> +                                                     uint32_t *p_dump_info)
> +{
> +     uint32_t rc = ZXDH_OK;
> +
> +     ZXDH_DTB_ZCAM_DUMP_FORM_T dtb_zcam_dump_form_info = {0};
> +
> +     dtb_zcam_dump_form_info.valid = 1;
> +     dtb_zcam_dump_form_info.up_type = ZXDH_DTB_DUMP_MODE_ZCAM;
> +     dtb_zcam_dump_form_info.tb_width = tb_width;
> +     dtb_zcam_dump_form_info.sram_addr = addr & 0x1FF;
> +     dtb_zcam_dump_form_info.ram_reg_flag = (addr >> 16) & 0x1;
> +     dtb_zcam_dump_form_info.z_reg_cell_id = (addr >> 9) & 0x3;
> +     dtb_zcam_dump_form_info.zblock_id = (addr >> 11) & 0x7;
> +     dtb_zcam_dump_form_info.zgroup_id = (addr >> 14) & 0x3;
> +     dtb_zcam_dump_form_info.tb_depth = depth;
> +     dtb_zcam_dump_form_info.tb_dst_addr_h = addr_high32;
> +     dtb_zcam_dump_form_info.tb_dst_addr_l = addr_low32;
> +

Looks like structure initializer here.

Reply via email to