lib/sw_services/xilnvm/examples/xilnvm_efuse_versal_client_example.c
static int XilNvm_EfuseReadFuses(void)
{
	int Status = XST_FAILURE;
	u32 Index;
	s8 Row;

	Status = XilNvm_EfuseShowDna();
	if (Status != XST_SUCCESS) {
		goto END;
	}

	xil_printf("\n\r");

	for (Index = XNVM_EFUSE_PPK0; Index <= XNVM_EFUSE_PPK2; Index++) {
		Status = XilNvm_EfuseShowPpkHash(Index);
		if (Status != XST_SUCCESS) {
			goto END;
		}
	}

	xil_printf("\n\r");

	for (Index = XNVM_EFUSE_META_HEADER_IV_RANGE;
			Index <= XNVM_EFUSE_DATA_PARTITION_IV_RANGE; Index++) {
		Status = XilNvm_EfuseShowIv(Index);
		if (Status != XST_SUCCESS) {
			goto END;
		}
	}

	xil_printf("\n\r");

	for (Row = 0; Row < (s8)XNVM_NUM_OF_REVOKE_ID_FUSES; Row++) {
		Status = XilNvm_EfuseShowRevocationId(Row);
		if (Status != XST_SUCCESS) {
			goto END;
		}
	}

	xil_printf("\n\r");

	for (Row = 0; Row < (s8)XNVM_NUM_OF_REVOKE_ID_FUSES; Row++) {
		Status = XilNvm_EfuseShowOffChipId(Row);
		if (Status != XST_SUCCESS) {
			goto END;
		}
	}

	xil_printf("\n\r");

	Status = XilNvm_EfuseShowDecOnly();
	if (Status != XST_SUCCESS) {
		goto END;
	}

	xil_printf("\n\r");

	Status = XilNvm_EfuseShowUserFuses();
	if (Status != XST_SUCCESS) {
		goto END;
	}

	xil_printf("\n\r");

	Status = XilNvm_EfuseShowCtrlBits();

END:
	return Status;
}
/****************************************************************************/
/**
 * This function reads all eFuses data and displays.
 *
 * @return
 *	- XST_SUCCESS - If all the read requests are successful.
 *	- Error code - On failure.
 *
 ******************************************************************************/
This function reads all eFuses data and displays.
@return
- XST_SUCCESS - If all the read requests are successful.
- Error code - On failure.
This function reads all eFuses data and displays . @return - XST_SUCCESS - If all the read requests are successful . - Error code - On failure .
static int XilNvm_EfuseReadFuses(void)
{
	int Status = XST_FAILURE;
	u32 Index;
	s8 Row;
	Status = XilNvm_EfuseShowDna();
	if (Status != XST_SUCCESS) {
		goto END;
	}
	xil_printf("\n\r");
	for (Index = XNVM_EFUSE_PPK0; Index <= XNVM_EFUSE_PPK2; Index++) {
		Status = XilNvm_EfuseShowPpkHash(Index);
		if (Status != XST_SUCCESS) {
			goto END;
		}
	}
	xil_printf("\n\r");
	for (Index = XNVM_EFUSE_META_HEADER_IV_RANGE;
			Index <= XNVM_EFUSE_DATA_PARTITION_IV_RANGE; Index++) {
		Status = XilNvm_EfuseShowIv(Index);
		if (Status != XST_SUCCESS) {
			goto END;
		}
	}
	xil_printf("\n\r");
	for (Row = 0; Row < (s8)XNVM_NUM_OF_REVOKE_ID_FUSES; Row++) {
		Status = XilNvm_EfuseShowRevocationId(Row);
		if (Status != XST_SUCCESS) {
			goto END;
		}
	}
	xil_printf("\n\r");
	for (Row = 0; Row < (s8)XNVM_NUM_OF_REVOKE_ID_FUSES; Row++) {
		Status = XilNvm_EfuseShowOffChipId(Row);
		if (Status != XST_SUCCESS) {
			goto END;
		}
	}
	xil_printf("\n\r");
	Status = XilNvm_EfuseShowDecOnly();
	if (Status != XST_SUCCESS) {
		goto END;
	}
	xil_printf("\n\r");
	Status = XilNvm_EfuseShowUserFuses();
	if (Status != XST_SUCCESS) {
		goto END;
	}
	xil_printf("\n\r");
	Status = XilNvm_EfuseShowCtrlBits();
END:
	return Status;
}
static int XilNvm_EfuseReadFuses ( void ) { int Status = XST_FAILURE ; u32 Index ; s8 Row ; Status = XilNvm_EfuseShowDna ( ) ; if ( Status != XST_SUCCESS ) { goto END ; } xil_printf ( " \n \r " ) ; for ( Index = XNVM_EFUSE_PPK0 ; Index <= XNVM_EFUSE_PPK2 ; Index ++ ) { Status = XilNvm_EfuseShowPpkHash ( Index ) ; if ( Status != XST_SUCCESS ) { goto END ; } } xil_printf ( " \n \r " ) ; for ( Index = XNVM_EFUSE_META_HEADER_IV_RANGE ; Index <= XNVM_EFUSE_DATA_PARTITION_IV_RANGE ; Index ++ ) { Status = XilNvm_EfuseShowIv ( Index ) ; if ( Status != XST_SUCCESS ) { goto END ; } } xil_printf ( " \n \r " ) ; for ( Row = 0 ; Row < ( s8 ) XNVM_NUM_OF_REVOKE_ID_FUSES ; Row ++ ) { Status = XilNvm_EfuseShowRevocationId ( Row ) ; if ( Status != XST_SUCCESS ) { goto END ; } } xil_printf ( " \n \r " ) ; for ( Row = 0 ; Row < ( s8 ) XNVM_NUM_OF_REVOKE_ID_FUSES ; Row ++ ) { Status = XilNvm_EfuseShowOffChipId ( Row ) ; if ( Status != XST_SUCCESS ) { goto END ; } } xil_printf ( " \n \r " ) ; Status = XilNvm_EfuseShowDecOnly ( ) ; if ( Status != XST_SUCCESS ) { goto END ; } xil_printf ( " \n \r " ) ; Status = XilNvm_EfuseShowUserFuses ( ) ; if ( Status != XST_SUCCESS ) { goto END ; } xil_printf ( " \n \r " ) ; Status = XilNvm_EfuseShowCtrlBits ( ) ; END : return Status ; }
This function reads all eFuses data and displays.
This function reads all eFuses data and displays .