lib/sw_services/xilplmi/src/xplmi.c
static void XPlmi_PrintRomVersion(void)
{
	u32 RomDigest;
	u8 RomVersion;

	RomDigest = XPlmi_In32(PMC_GLOBAL_ROM_VALIDATION_DIGEST_0);
	switch (RomDigest) {
		case XPLMI_DIGEST_PMC_1_0_ROM_1_0:
			RomVersion = XPLMI_ROM_VERSION_1_0;
			break;
		case XPLMI_DIGEST_PMC_2_0_ROM_2_0:
			RomVersion = XPLMI_ROM_VERSION_2_0;
			break;
		default:
			RomVersion = XPLMI_INVALID_ROM_VERSION;
			break;
	}

	if (RomVersion != XPLMI_INVALID_ROM_VERSION) {
		XPlmi_Printf(DEBUG_INFO, "ROM Version: v%u.%u\n\r",
			(RomVersion >> 4U), (RomVersion & 15U));
	}
}
/*****************************************************************************/
/**
 * @brief	This function prints ROM version using ROM digest value.
 *
 * @return	None
 *
 *****************************************************************************/
@brief       This function prints ROM version using ROM digest value.
@return      None
@brief This function prints ROM version using ROM digest value . @return None
static void XPlmi_PrintRomVersion(void)
{
	u32 RomDigest;
	u8 RomVersion;
	RomDigest = XPlmi_In32(PMC_GLOBAL_ROM_VALIDATION_DIGEST_0);
	switch (RomDigest) {
		case XPLMI_DIGEST_PMC_1_0_ROM_1_0:
			RomVersion = XPLMI_ROM_VERSION_1_0;
			break;
		case XPLMI_DIGEST_PMC_2_0_ROM_2_0:
			RomVersion = XPLMI_ROM_VERSION_2_0;
			break;
		default:
			RomVersion = XPLMI_INVALID_ROM_VERSION;
			break;
	}
	if (RomVersion != XPLMI_INVALID_ROM_VERSION) {
		XPlmi_Printf(DEBUG_INFO, "ROM Version: v%u.%u\n\r",
			(RomVersion >> 4U), (RomVersion & 15U));
	}
}
static void XPlmi_PrintRomVersion ( void ) { u32 RomDigest ; u8 RomVersion ; RomDigest = XPlmi_In32 ( PMC_GLOBAL_ROM_VALIDATION_DIGEST_0 ) ; switch ( RomDigest ) { case XPLMI_DIGEST_PMC_1_0_ROM_1_0 : RomVersion = XPLMI_ROM_VERSION_1_0 ; break ; case XPLMI_DIGEST_PMC_2_0_ROM_2_0 : RomVersion = XPLMI_ROM_VERSION_2_0 ; break ; default : RomVersion = XPLMI_INVALID_ROM_VERSION ; break ; } if ( RomVersion != XPLMI_INVALID_ROM_VERSION ) { XPlmi_Printf ( DEBUG_INFO , " \n \r " , ( RomVersion >> 4U ) , ( RomVersion & 15U ) ) ; } }
@brief       This function prints ROM version using ROM digest value.
@brief This function prints ROM version using ROM digest value .