lib/sw_services/xilplmi/src/xplmi_generic.c
static int XPlmi_GetBoard(XPlmi_Cmd *Cmd)
{
	int Status = XST_FAILURE;
	u64 HighAddr = Cmd->Payload[0U];
	u32 LowAddr = Cmd->Payload[1U];
	u64 DestAddr = (HighAddr << XPLMI_NUM_BITS_IN_WORD) | LowAddr;
	u32 Len = Cmd->Payload[2U];
	u8* BoardName = XPlmi_BoardNameRW(Cmd, (u8)TRUE, &Len);

	Status = XPlmi_DmaXfr((u64)(u32)&BoardName[0U], DestAddr, Len,
			XPLMI_PMCDMA_0);
	if (Status != XST_SUCCESS) {
		goto END;
	}

	Cmd->Response[1U] = Len;
	Status = XST_SUCCESS;

END:
	return Status;
}
/*****************************************************************************/
/**
 * @brief	This function provides GET BOARD command execution.
 *
 * @param	Cmd is pointer to the command structure
 *		Command payload parameters are
 *		- High Addr
 *		- Low Addr
 *		- Max size in words
 *
 * @return	XST_SUCCESS on success and error code on failure
 *
 *****************************************************************************/
@brief       This function provides GET BOARD command execution.
@param       Cmd is pointer to the command structure
Command payload parameters are
- High Addr
- Low Addr
- Max size in words

@return      XST_SUCCESS on success and error code on failure
@brief This function provides GET BOARD command execution . @param Cmd is pointer to the command structure Command payload parameters are - High Addr - Low Addr - Max size in words @return XST_SUCCESS on success and error code on failure
static int XPlmi_GetBoard(XPlmi_Cmd *Cmd)
{
	int Status = XST_FAILURE;
	u64 HighAddr = Cmd->Payload[0U];
	u32 LowAddr = Cmd->Payload[1U];
	u64 DestAddr = (HighAddr << XPLMI_NUM_BITS_IN_WORD) | LowAddr;
	u32 Len = Cmd->Payload[2U];
	u8* BoardName = XPlmi_BoardNameRW(Cmd, (u8)TRUE, &Len);
	Status = XPlmi_DmaXfr((u64)(u32)&BoardName[0U], DestAddr, Len,
			XPLMI_PMCDMA_0);
	if (Status != XST_SUCCESS) {
		goto END;
	}
	Cmd->Response[1U] = Len;
	Status = XST_SUCCESS;
END:
	return Status;
}
static int XPlmi_GetBoard ( XPlmi_Cmd * Cmd ) { int Status = XST_FAILURE ; u64 HighAddr = Cmd -> Payload [ 0U ] ; u32 LowAddr = Cmd -> Payload [ 1U ] ; u64 DestAddr = ( HighAddr << XPLMI_NUM_BITS_IN_WORD ) | LowAddr ; u32 Len = Cmd -> Payload [ 2U ] ; u8 * BoardName = XPlmi_BoardNameRW ( Cmd , ( u8 ) TRUE , & Len ) ; Status = XPlmi_DmaXfr ( ( u64 ) ( u32 ) & BoardName [ 0U ] , DestAddr , Len , XPLMI_PMCDMA_0 ) ; if ( Status != XST_SUCCESS ) { goto END ; } Cmd -> Response [ 1U ] = Len ; Status = XST_SUCCESS ; END : return Status ; }
@brief       This function provides GET BOARD command execution.
@brief This function provides GET BOARD command execution .