src/dpdk/drivers/net/qede/qede_debug.c
static u32 qed_dump_chip_revision_param(struct ecore_hwfn *p_hwfn,
					struct ecore_ptt *p_ptt,
					u32 *dump_buf, bool dump)
{
	struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
	char param_str[3] = "??";

	if (dev_data->hw_type == HW_TYPE_ASIC) {
		u32 chip_rev, chip_metal;

		chip_rev = ecore_rd(p_hwfn, p_ptt, MISCS_REG_CHIP_REV);
		chip_metal = ecore_rd(p_hwfn, p_ptt, MISCS_REG_CHIP_METAL);

		param_str[0] = 'a' + (u8)chip_rev;
		param_str[1] = '0' + (u8)chip_metal;
	}

	return qed_dump_str_param(dump_buf, dump, "chip-revision", param_str);
}
/* Reads the chip revision from the chip and writes it as a param to the
 * specified buffer. Returns the dumped size in dwords.
 */
Reads the chip revision from the chip and writes it as a param to the
specified buffer. Returns the dumped size in dwords.
Reads the chip revision from the chip and writes it as a param to the specified buffer . Returns the dumped size in dwords .
static u32 qed_dump_chip_revision_param(struct ecore_hwfn *p_hwfn,
					struct ecore_ptt *p_ptt,
					u32 *dump_buf, bool dump)
{
	struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
	char param_str[3] = "??";
	if (dev_data->hw_type == HW_TYPE_ASIC) {
		u32 chip_rev, chip_metal;
		chip_rev = ecore_rd(p_hwfn, p_ptt, MISCS_REG_CHIP_REV);
		chip_metal = ecore_rd(p_hwfn, p_ptt, MISCS_REG_CHIP_METAL);
		param_str[0] = 'a' + (u8)chip_rev;
		param_str[1] = '0' + (u8)chip_metal;
	}
	return qed_dump_str_param(dump_buf, dump, "chip-revision", param_str);
}
static u32 qed_dump_chip_revision_param ( struct ecore_hwfn * p_hwfn , struct ecore_ptt * p_ptt , u32 * dump_buf , bool dump ) { struct dbg_tools_data * dev_data = & p_hwfn -> dbg_info ; char param_str [ 3 ] = " " ; if ( dev_data -> hw_type == HW_TYPE_ASIC ) { u32 chip_rev , chip_metal ; chip_rev = ecore_rd ( p_hwfn , p_ptt , MISCS_REG_CHIP_REV ) ; chip_metal = ecore_rd ( p_hwfn , p_ptt , MISCS_REG_CHIP_METAL ) ; param_str [ 0 ] = ' ' + ( u8 ) chip_rev ; param_str [ 1 ] = ' ' + ( u8 ) chip_metal ; } return qed_dump_str_param ( dump_buf , dump , " " , param_str ) ; }
Reads the chip revision from the chip and writes it as a param to the
 specified buffer.
Reads the chip revision from the chip and writes it as a param to the specified buffer .