lib/sw_services/xilplmi/src/xplmi.c
void XPlmi_PrintPlmBanner(void)
{
	u32 Version;
	u8 PsVersion;
	u8 PmcVersion;
	u32 BootMode;
	u32 MultiBoot;
	u8 PmcVersionDecimal;

	/* Print the PLM Banner */
	XPlmi_Printf(DEBUG_PRINT_ALWAYS,
		"****************************************\n\r");
	XPlmi_Printf(DEBUG_PRINT_ALWAYS,
		"Xilinx Versal Platform Loader and Manager \n\r");
	XPlmi_Printf(DEBUG_PRINT_ALWAYS,
		"Release %s.%s   %s  -  %s\n\r",
		SDK_RELEASE_YEAR, SDK_RELEASE_QUARTER, __DATE__, __TIME__);

	/* Read the Version */
	Version = XPlmi_In32(PMC_TAP_VERSION);
	PsVersion = (u8)((Version & PMC_TAP_VERSION_PS_VERSION_MASK) >>
			PMC_TAP_VERSION_PS_VERSION_SHIFT);
	PmcVersion = (u8)((Version & PMC_TAP_VERSION_PMC_VERSION_MASK) >>
			PMC_TAP_VERSION_PMC_VERSION_SHIFT);
	BootMode = XPlmi_In32(CRP_BOOT_MODE_USER) &
			CRP_BOOT_MODE_USER_BOOT_MODE_MASK;
	MultiBoot = XPlmi_In32(PMC_GLOBAL_PMC_MULTI_BOOT);
	PmcVersionDecimal = (u8)(PmcVersion & XPLMI_PMC_VERSION_MASK);
	PmcVersion = (u8)(PmcVersion >> XPLMI_PMC_VERSION_SHIFT);

	XPlmi_Printf(DEBUG_PRINT_ALWAYS, "Platform Version: v%u.%u "
		"PMC: v%u.%u, PS: v%u.%u\n\r", PmcVersion, PmcVersionDecimal,
		PmcVersion, PmcVersionDecimal,
		(PsVersion >> XPLMI_PMC_VERSION_SHIFT),
		(PsVersion & XPLMI_PMC_VERSION_MASK));
	XPlmi_PrintRomVersion();
	XPlmi_Printf(DEBUG_PRINT_ALWAYS, "BOOTMODE: 0x%x, MULTIBOOT: 0x%x"
			"\n\r", BootMode, MultiBoot);
	XPlmi_Printf(DEBUG_PRINT_ALWAYS,
		"****************************************\n\r");
}
/*****************************************************************************/
/**
 * @brief	This function prints PLM banner
 *
 * @return	None
 *
 *****************************************************************************/
@brief       This function prints PLM banner
@return      None
@brief This function prints PLM banner @return None
void XPlmi_PrintPlmBanner(void)
{
	u32 Version;
	u8 PsVersion;
	u8 PmcVersion;
	u32 BootMode;
	u32 MultiBoot;
	u8 PmcVersionDecimal;
	XPlmi_Printf(DEBUG_PRINT_ALWAYS,
		"****************************************\n\r");
	XPlmi_Printf(DEBUG_PRINT_ALWAYS,
		"Xilinx Versal Platform Loader and Manager \n\r");
	XPlmi_Printf(DEBUG_PRINT_ALWAYS,
		"Release %s.%s   %s  -  %s\n\r",
		SDK_RELEASE_YEAR, SDK_RELEASE_QUARTER, __DATE__, __TIME__);
	Version = XPlmi_In32(PMC_TAP_VERSION);
	PsVersion = (u8)((Version & PMC_TAP_VERSION_PS_VERSION_MASK) >>
			PMC_TAP_VERSION_PS_VERSION_SHIFT);
	PmcVersion = (u8)((Version & PMC_TAP_VERSION_PMC_VERSION_MASK) >>
			PMC_TAP_VERSION_PMC_VERSION_SHIFT);
	BootMode = XPlmi_In32(CRP_BOOT_MODE_USER) &
			CRP_BOOT_MODE_USER_BOOT_MODE_MASK;
	MultiBoot = XPlmi_In32(PMC_GLOBAL_PMC_MULTI_BOOT);
	PmcVersionDecimal = (u8)(PmcVersion & XPLMI_PMC_VERSION_MASK);
	PmcVersion = (u8)(PmcVersion >> XPLMI_PMC_VERSION_SHIFT);
	XPlmi_Printf(DEBUG_PRINT_ALWAYS, "Platform Version: v%u.%u "
		"PMC: v%u.%u, PS: v%u.%u\n\r", PmcVersion, PmcVersionDecimal,
		PmcVersion, PmcVersionDecimal,
		(PsVersion >> XPLMI_PMC_VERSION_SHIFT),
		(PsVersion & XPLMI_PMC_VERSION_MASK));
	XPlmi_PrintRomVersion();
	XPlmi_Printf(DEBUG_PRINT_ALWAYS, "BOOTMODE: 0x%x, MULTIBOOT: 0x%x"
			"\n\r", BootMode, MultiBoot);
	XPlmi_Printf(DEBUG_PRINT_ALWAYS,
		"****************************************\n\r");
}
void XPlmi_PrintPlmBanner ( void ) { u32 Version ; u8 PsVersion ; u8 PmcVersion ; u32 BootMode ; u32 MultiBoot ; u8 PmcVersionDecimal ; XPlmi_Printf ( DEBUG_PRINT_ALWAYS , " \n \r " ) ; XPlmi_Printf ( DEBUG_PRINT_ALWAYS , " \n \r " ) ; XPlmi_Printf ( DEBUG_PRINT_ALWAYS , " \n \r " , SDK_RELEASE_YEAR , SDK_RELEASE_QUARTER , __DATE__ , __TIME__ ) ; Version = XPlmi_In32 ( PMC_TAP_VERSION ) ; PsVersion = ( u8 ) ( ( Version & PMC_TAP_VERSION_PS_VERSION_MASK ) >> PMC_TAP_VERSION_PS_VERSION_SHIFT ) ; PmcVersion = ( u8 ) ( ( Version & PMC_TAP_VERSION_PMC_VERSION_MASK ) >> PMC_TAP_VERSION_PMC_VERSION_SHIFT ) ; BootMode = XPlmi_In32 ( CRP_BOOT_MODE_USER ) & CRP_BOOT_MODE_USER_BOOT_MODE_MASK ; MultiBoot = XPlmi_In32 ( PMC_GLOBAL_PMC_MULTI_BOOT ) ; PmcVersionDecimal = ( u8 ) ( PmcVersion & XPLMI_PMC_VERSION_MASK ) ; PmcVersion = ( u8 ) ( PmcVersion >> XPLMI_PMC_VERSION_SHIFT ) ; XPlmi_Printf ( DEBUG_PRINT_ALWAYS , " " " \n \r " , PmcVersion , PmcVersionDecimal , PmcVersion , PmcVersionDecimal , ( PsVersion >> XPLMI_PMC_VERSION_SHIFT ) , ( PsVersion & XPLMI_PMC_VERSION_MASK ) ) ; XPlmi_PrintRomVersion ( ) ; XPlmi_Printf ( DEBUG_PRINT_ALWAYS , " " " \n \r " , BootMode , MultiBoot ) ; XPlmi_Printf ( DEBUG_PRINT_ALWAYS , " \n \r " ) ; }
@brief       This function prints PLM banner
 @return      None
@brief This function prints PLM banner @return None
/* Print the PLM Banner */ /* Read the Version */