lib/sw_services/xilnvm/examples/xilnvm_efuse_versal_client_example.c
static int XilNvm_EfuseShowIv(XNvm_IvType IvType)
{
	int Status = XST_FAILURE;
	XNvm_Iv *EfuseIv = (XNvm_Iv *)CacheAlignedArr;
	u32 ReadIv[XNVM_EFUSE_IV_LEN_IN_WORDS] = {0U};
	s8 Row;

	Xil_DCacheInvalidateRange((UINTPTR)&CacheAlignedArr,
			sizeof(CacheAlignedArr));

	Status = XNvm_EfuseReadIv((UINTPTR)EfuseIv, IvType);
	if (Status != XST_SUCCESS) {
		goto END;
	}

	Xil_DCacheInvalidateRange((UINTPTR)&CacheAlignedArr,
			sizeof(CacheAlignedArr));

	xil_printf("\n\r IV%d:",IvType);

	XilNvm_FormatData((u8 *)EfuseIv->Iv, (u8 *)ReadIv,
			XNVM_EFUSE_IV_LEN_IN_BYES);
	for (Row = (XNVM_EFUSE_IV_LEN_IN_WORDS - 1U); Row >= 0; Row--) {
		xil_printf("%08x", ReadIv[Row]);
	}
	Status = XST_SUCCESS;

END:
	return Status;
}
/****************************************************************************/
/**
 * This function reads IV eFuses data and displays.
 *
 * @param	IvType		IvType MetaHeader IV or Blk IV or Plm IV or
 * 				Data partition IV
 *
 * @return
 *	- XST_SUCCESS - If the read request is successful.
 *	- Error code - On failure.
 *
 ******************************************************************************/
This function reads IV eFuses data and displays.
@param       IvType          IvType MetaHeader IV or Blk IV or Plm IV or
Data partition IV

@return
- XST_SUCCESS - If the read request is successful.
- Error code - On failure.
This function reads IV eFuses data and displays . @param IvType IvType MetaHeader IV or Blk IV or Plm IV or Data partition IV @return - XST_SUCCESS - If the read request is successful . - Error code - On failure .
static int XilNvm_EfuseShowIv(XNvm_IvType IvType)
{
	int Status = XST_FAILURE;
	XNvm_Iv *EfuseIv = (XNvm_Iv *)CacheAlignedArr;
	u32 ReadIv[XNVM_EFUSE_IV_LEN_IN_WORDS] = {0U};
	s8 Row;
	Xil_DCacheInvalidateRange((UINTPTR)&CacheAlignedArr,
			sizeof(CacheAlignedArr));
	Status = XNvm_EfuseReadIv((UINTPTR)EfuseIv, IvType);
	if (Status != XST_SUCCESS) {
		goto END;
	}
	Xil_DCacheInvalidateRange((UINTPTR)&CacheAlignedArr,
			sizeof(CacheAlignedArr));
	xil_printf("\n\r IV%d:",IvType);
	XilNvm_FormatData((u8 *)EfuseIv->Iv, (u8 *)ReadIv,
			XNVM_EFUSE_IV_LEN_IN_BYES);
	for (Row = (XNVM_EFUSE_IV_LEN_IN_WORDS - 1U); Row >= 0; Row--) {
		xil_printf("%08x", ReadIv[Row]);
	}
	Status = XST_SUCCESS;
END:
	return Status;
}
static int XilNvm_EfuseShowIv ( XNvm_IvType IvType ) { int Status = XST_FAILURE ; XNvm_Iv * EfuseIv = ( XNvm_Iv * ) CacheAlignedArr ; u32 ReadIv [ XNVM_EFUSE_IV_LEN_IN_WORDS ] = { 0U } ; s8 Row ; Xil_DCacheInvalidateRange ( ( UINTPTR ) & CacheAlignedArr , sizeof ( CacheAlignedArr ) ) ; Status = XNvm_EfuseReadIv ( ( UINTPTR ) EfuseIv , IvType ) ; if ( Status != XST_SUCCESS ) { goto END ; } Xil_DCacheInvalidateRange ( ( UINTPTR ) & CacheAlignedArr , sizeof ( CacheAlignedArr ) ) ; xil_printf ( " \n \r " , IvType ) ; XilNvm_FormatData ( ( u8 * ) EfuseIv -> Iv , ( u8 * ) ReadIv , XNVM_EFUSE_IV_LEN_IN_BYES ) ; for ( Row = ( XNVM_EFUSE_IV_LEN_IN_WORDS - 1U ) ; Row >= 0 ; Row -- ) { xil_printf ( " " , ReadIv [ Row ] ) ; } Status = XST_SUCCESS ; END : return Status ; }
This function reads IV eFuses data and displays.
This function reads IV eFuses data and displays .