src/dpdk/drivers/net/cxgbe/base/t4_hw.c
void t4_dump_version_info(struct adapter *adapter)
{
	/**
	 * Device information.
	 */
	dev_info(adapter, "Chelsio rev %d\n",
		 CHELSIO_CHIP_RELEASE(adapter->params.chip));

	/**
	 * Firmware Version.
	 */
	if (!adapter->params.fw_vers)
		dev_warn(adapter, "No firmware loaded\n");
	else
		dev_info(adapter, "Firmware version: %u.%u.%u.%u\n",
			 G_FW_HDR_FW_VER_MAJOR(adapter->params.fw_vers),
			 G_FW_HDR_FW_VER_MINOR(adapter->params.fw_vers),
			 G_FW_HDR_FW_VER_MICRO(adapter->params.fw_vers),
			 G_FW_HDR_FW_VER_BUILD(adapter->params.fw_vers));

	/**
	 * Bootstrap Firmware Version.
	 */
	if (!adapter->params.bs_vers)
		dev_warn(adapter, "No bootstrap loaded\n");
	else
		dev_info(adapter, "Bootstrap version: %u.%u.%u.%u\n",
			 G_FW_HDR_FW_VER_MAJOR(adapter->params.bs_vers),
			 G_FW_HDR_FW_VER_MINOR(adapter->params.bs_vers),
			 G_FW_HDR_FW_VER_MICRO(adapter->params.bs_vers),
			 G_FW_HDR_FW_VER_BUILD(adapter->params.bs_vers));

	/**
	 * TP Microcode Version.
	 */
	if (!adapter->params.tp_vers)
		dev_warn(adapter, "No TP Microcode loaded\n");
	else
		dev_info(adapter, "TP Microcode version: %u.%u.%u.%u\n",
			 G_FW_HDR_FW_VER_MAJOR(adapter->params.tp_vers),
			 G_FW_HDR_FW_VER_MINOR(adapter->params.tp_vers),
			 G_FW_HDR_FW_VER_MICRO(adapter->params.tp_vers),
			 G_FW_HDR_FW_VER_BUILD(adapter->params.tp_vers));

	/**
	 * Expansion ROM version.
	 */
	if (!adapter->params.er_vers)
		dev_info(adapter, "No Expansion ROM loaded\n");
	else
		dev_info(adapter, "Expansion ROM version: %u.%u.%u.%u\n",
			 G_FW_HDR_FW_VER_MAJOR(adapter->params.er_vers),
			 G_FW_HDR_FW_VER_MINOR(adapter->params.er_vers),
			 G_FW_HDR_FW_VER_MICRO(adapter->params.er_vers),
			 G_FW_HDR_FW_VER_BUILD(adapter->params.er_vers));
}
/**
 * t4_dump_version_info - dump all of the adapter configuration IDs
 * @adapter: the adapter
 *
 * Dumps all of the various bits of adapter configuration version/revision
 * IDs information.  This is typically called at some point after
 * t4_get_version_info() has been called.
 */
dump all of the adapter configuration IDs
@adapter: the adapter

Dumps all of the various bits of adapter configuration version/revision
IDs information.  This is typically called at some point after
t4_get_version_info() has been called.
dump all of the adapter configuration IDs @adapter : the adapter Dumps all of the various bits of adapter configuration version / revision IDs information . This is typically called at some point after t4_get_version_info () has been called .
void t4_dump_version_info(struct adapter *adapter)
{
	dev_info(adapter, "Chelsio rev %d\n",
		 CHELSIO_CHIP_RELEASE(adapter->params.chip));
	if (!adapter->params.fw_vers)
		dev_warn(adapter, "No firmware loaded\n");
	else
		dev_info(adapter, "Firmware version: %u.%u.%u.%u\n",
			 G_FW_HDR_FW_VER_MAJOR(adapter->params.fw_vers),
			 G_FW_HDR_FW_VER_MINOR(adapter->params.fw_vers),
			 G_FW_HDR_FW_VER_MICRO(adapter->params.fw_vers),
			 G_FW_HDR_FW_VER_BUILD(adapter->params.fw_vers));
	if (!adapter->params.bs_vers)
		dev_warn(adapter, "No bootstrap loaded\n");
	else
		dev_info(adapter, "Bootstrap version: %u.%u.%u.%u\n",
			 G_FW_HDR_FW_VER_MAJOR(adapter->params.bs_vers),
			 G_FW_HDR_FW_VER_MINOR(adapter->params.bs_vers),
			 G_FW_HDR_FW_VER_MICRO(adapter->params.bs_vers),
			 G_FW_HDR_FW_VER_BUILD(adapter->params.bs_vers));
	if (!adapter->params.tp_vers)
		dev_warn(adapter, "No TP Microcode loaded\n");
	else
		dev_info(adapter, "TP Microcode version: %u.%u.%u.%u\n",
			 G_FW_HDR_FW_VER_MAJOR(adapter->params.tp_vers),
			 G_FW_HDR_FW_VER_MINOR(adapter->params.tp_vers),
			 G_FW_HDR_FW_VER_MICRO(adapter->params.tp_vers),
			 G_FW_HDR_FW_VER_BUILD(adapter->params.tp_vers));
	if (!adapter->params.er_vers)
		dev_info(adapter, "No Expansion ROM loaded\n");
	else
		dev_info(adapter, "Expansion ROM version: %u.%u.%u.%u\n",
			 G_FW_HDR_FW_VER_MAJOR(adapter->params.er_vers),
			 G_FW_HDR_FW_VER_MINOR(adapter->params.er_vers),
			 G_FW_HDR_FW_VER_MICRO(adapter->params.er_vers),
			 G_FW_HDR_FW_VER_BUILD(adapter->params.er_vers));
}
void t4_dump_version_info ( struct adapter * adapter ) { dev_info ( adapter , " \n " , CHELSIO_CHIP_RELEASE ( adapter -> params . chip ) ) ; if ( ! adapter -> params . fw_vers ) dev_warn ( adapter , " \n " ) ; else dev_info ( adapter , " \n " , G_FW_HDR_FW_VER_MAJOR ( adapter -> params . fw_vers ) , G_FW_HDR_FW_VER_MINOR ( adapter -> params . fw_vers ) , G_FW_HDR_FW_VER_MICRO ( adapter -> params . fw_vers ) , G_FW_HDR_FW_VER_BUILD ( adapter -> params . fw_vers ) ) ; if ( ! adapter -> params . bs_vers ) dev_warn ( adapter , " \n " ) ; else dev_info ( adapter , " \n " , G_FW_HDR_FW_VER_MAJOR ( adapter -> params . bs_vers ) , G_FW_HDR_FW_VER_MINOR ( adapter -> params . bs_vers ) , G_FW_HDR_FW_VER_MICRO ( adapter -> params . bs_vers ) , G_FW_HDR_FW_VER_BUILD ( adapter -> params . bs_vers ) ) ; if ( ! adapter -> params . tp_vers ) dev_warn ( adapter , " \n " ) ; else dev_info ( adapter , " \n " , G_FW_HDR_FW_VER_MAJOR ( adapter -> params . tp_vers ) , G_FW_HDR_FW_VER_MINOR ( adapter -> params . tp_vers ) , G_FW_HDR_FW_VER_MICRO ( adapter -> params . tp_vers ) , G_FW_HDR_FW_VER_BUILD ( adapter -> params . tp_vers ) ) ; if ( ! adapter -> params . er_vers ) dev_info ( adapter , " \n " ) ; else dev_info ( adapter , " \n " , G_FW_HDR_FW_VER_MAJOR ( adapter -> params . er_vers ) , G_FW_HDR_FW_VER_MINOR ( adapter -> params . er_vers ) , G_FW_HDR_FW_VER_MICRO ( adapter -> params . er_vers ) , G_FW_HDR_FW_VER_BUILD ( adapter -> params . er_vers ) ) ; }
t4_dump_version_info - dump all of the adapter configuration IDs
 @adapter: the adapter
t4_dump_version_info - dump all of the adapter configuration IDs @adapter : the adapter
/**
	 * Device information.
	 */ /**
	 * Firmware Version.
	 */ /**
	 * Bootstrap Firmware Version.
	 */ /**
	 * TP Microcode Version.
	 */ /**
	 * Expansion ROM version.
	 */