lib/sw_services/xilnvm/examples/xilnvm_efuse_versal_client_example.c
static int XilNvm_EfuseShowDna(void)
{
	int Status = XST_FAILURE;
	XNvm_Dna *EfuseDna = (XNvm_Dna *)CacheAlignedArr;

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

	Status = XNvm_EfuseReadDna((UINTPTR)EfuseDna);
	if (Status != XST_SUCCESS) {
		goto END;
	}

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

	xil_printf("\r\nDNA:%08x%08x%08x%08x", EfuseDna->Dna[3],
			EfuseDna->Dna[2],
			EfuseDna->Dna[1],
			EfuseDna->Dna[0]);
	Status = XST_SUCCESS;

END:
	return Status;
}
/****************************************************************************/
/**
 * This function reads DNA eFuses data and displays.
 *
 * @return
 *	- XST_SUCCESS - If the read request is successful.
 *	- Error code - On failure.
 *
 ******************************************************************************/
This function reads DNA eFuses data and displays.
@return
- XST_SUCCESS - If the read request is successful.
- Error code - On failure.
This function reads DNA eFuses data and displays . @return - XST_SUCCESS - If the read request is successful . - Error code - On failure .
static int XilNvm_EfuseShowDna(void)
{
	int Status = XST_FAILURE;
	XNvm_Dna *EfuseDna = (XNvm_Dna *)CacheAlignedArr;
	Xil_DCacheInvalidateRange((UINTPTR)&CacheAlignedArr,
		sizeof(CacheAlignedArr));
	Status = XNvm_EfuseReadDna((UINTPTR)EfuseDna);
	if (Status != XST_SUCCESS) {
		goto END;
	}
	Xil_DCacheInvalidateRange((UINTPTR)&CacheAlignedArr,
		sizeof(CacheAlignedArr));
	xil_printf("\r\nDNA:%08x%08x%08x%08x", EfuseDna->Dna[3],
			EfuseDna->Dna[2],
			EfuseDna->Dna[1],
			EfuseDna->Dna[0]);
	Status = XST_SUCCESS;
END:
	return Status;
}
static int XilNvm_EfuseShowDna ( void ) { int Status = XST_FAILURE ; XNvm_Dna * EfuseDna = ( XNvm_Dna * ) CacheAlignedArr ; Xil_DCacheInvalidateRange ( ( UINTPTR ) & CacheAlignedArr , sizeof ( CacheAlignedArr ) ) ; Status = XNvm_EfuseReadDna ( ( UINTPTR ) EfuseDna ) ; if ( Status != XST_SUCCESS ) { goto END ; } Xil_DCacheInvalidateRange ( ( UINTPTR ) & CacheAlignedArr , sizeof ( CacheAlignedArr ) ) ; xil_printf ( " \r \n " , EfuseDna -> Dna [ 3 ] , EfuseDna -> Dna [ 2 ] , EfuseDna -> Dna [ 1 ] , EfuseDna -> Dna [ 0 ] ) ; Status = XST_SUCCESS ; END : return Status ; }
This function reads DNA eFuses data and displays.
This function reads DNA eFuses data and displays .