lib/sw_services/xilplmi/src/xplmi_generic.c
static int XPlmi_LogAddress(XPlmi_Cmd *Cmd)
{
	int Status = XST_FAILURE;
	u32 LowAddr = Cmd->Payload[XPLMI_LOG_ADDR_ARG_LOW_ADDR_INDEX];
	u64 HighAddr = 0UL;
	u64 Addr;
	u32 Val;

	if (Cmd->Len == XPLMI_LOG_ADDR_MAX_ARGS) {
		/* This indicates non-zero 32-bit higher address */
		HighAddr = Cmd->Payload[XPLMI_LOG_ADDR_ARG_HIGH_ADDR_INDEX];
	}
	Addr = (HighAddr << XPLMI_NUM_BITS_IN_WORD) | (u64)LowAddr;
	Val = XPlmi_In64(Addr);

	XPlmi_Printf(DEBUG_PRINT_ALWAYS, "Value at 0x%0x%08x: %0x\n\r",
			(u32)(Addr >> XPLMI_NUM_BITS_IN_WORD), (u32)Addr, Val);
	Status = XST_SUCCESS;

	return Status;
}
/*****************************************************************************/
/**
 * @brief	This function reads the value at an address and displays and adds
 * the value to PLM logs.
 *
 * @param	Cmd is pointer to the command structure
 *		Command payload parameters are
 *		- Low Address
 *		- High Address (Optional)
 *
 * @return	XST_SUCCESS on success and error code on failure
 *
 *****************************************************************************/
@brief       This function reads the value at an address and displays and adds
the value to PLM logs.

@param       Cmd is pointer to the command structure
Command payload parameters are
- Low Address
- High Address (Optional)

@return      XST_SUCCESS on success and error code on failure
@brief This function reads the value at an address and displays and adds the value to PLM logs . @param Cmd is pointer to the command structure Command payload parameters are - Low Address - High Address ( Optional ) @return XST_SUCCESS on success and error code on failure
static int XPlmi_LogAddress(XPlmi_Cmd *Cmd)
{
	int Status = XST_FAILURE;
	u32 LowAddr = Cmd->Payload[XPLMI_LOG_ADDR_ARG_LOW_ADDR_INDEX];
	u64 HighAddr = 0UL;
	u64 Addr;
	u32 Val;
	if (Cmd->Len == XPLMI_LOG_ADDR_MAX_ARGS) {
		HighAddr = Cmd->Payload[XPLMI_LOG_ADDR_ARG_HIGH_ADDR_INDEX];
	}
	Addr = (HighAddr << XPLMI_NUM_BITS_IN_WORD) | (u64)LowAddr;
	Val = XPlmi_In64(Addr);
	XPlmi_Printf(DEBUG_PRINT_ALWAYS, "Value at 0x%0x%08x: %0x\n\r",
			(u32)(Addr >> XPLMI_NUM_BITS_IN_WORD), (u32)Addr, Val);
	Status = XST_SUCCESS;
	return Status;
}
static int XPlmi_LogAddress ( XPlmi_Cmd * Cmd ) { int Status = XST_FAILURE ; u32 LowAddr = Cmd -> Payload [ XPLMI_LOG_ADDR_ARG_LOW_ADDR_INDEX ] ; u64 HighAddr = 0UL ; u64 Addr ; u32 Val ; if ( Cmd -> Len == XPLMI_LOG_ADDR_MAX_ARGS ) { HighAddr = Cmd -> Payload [ XPLMI_LOG_ADDR_ARG_HIGH_ADDR_INDEX ] ; } Addr = ( HighAddr << XPLMI_NUM_BITS_IN_WORD ) | ( u64 ) LowAddr ; Val = XPlmi_In64 ( Addr ) ; XPlmi_Printf ( DEBUG_PRINT_ALWAYS , " \n \r " , ( u32 ) ( Addr >> XPLMI_NUM_BITS_IN_WORD ) , ( u32 ) Addr , Val ) ; Status = XST_SUCCESS ; return Status ; }
@brief       This function reads the value at an address and displays and adds
 the value to PLM logs.
@brief This function reads the value at an address and displays and adds the value to PLM logs .
/* This indicates non-zero 32-bit higher address */