lib/sw_services/xilplmi/src/xplmi_generic.c
static int XPlmi_CheckIpiAccess(u32 CmdId, u32 IpiReqType)
{
	int Status = XST_FAILURE;
	u32 ModuleCmdId = CmdId & XPLMI_PLM_GENERIC_CMD_ID_MASK;

	/* Secure check for PLMI IPI commands */
	switch (ModuleCmdId) {
		/*
		 * Check IPI request type for Event Logging IPI command
		 * and allow access only if the request is secure
		 */
		case XPLMI_PLM_GENERIC_EVENT_LOGGING_VAL:
			if (XPLMI_CMD_SECURE == IpiReqType) {
				Status = XST_SUCCESS;
			}
			break;

		/* Allow access for all other IPI commands */
		default:
			Status = XST_SUCCESS;
			break;
	}

	return Status;
}
/*****************************************************************************/
/**
 * @brief	This function checks if the IPI command is accessible or not
 *
 * @param	CmdId is the Command ID
 * @param	IpiReqType is the IPI command request type
 *
 * @return	XST_SUCCESS on success and XST_FAILURE on failure
 *
 *****************************************************************************/
@brief       This function checks if the IPI command is accessible or not
@param       CmdId is the Command ID
@param       IpiReqType is the IPI command request type

@return      XST_SUCCESS on success and XST_FAILURE on failure
@brief This function checks if the IPI command is accessible or not @param CmdId is the Command ID @param IpiReqType is the IPI command request type @return XST_SUCCESS on success and XST_FAILURE on failure
static int XPlmi_CheckIpiAccess(u32 CmdId, u32 IpiReqType)
{
	int Status = XST_FAILURE;
	u32 ModuleCmdId = CmdId & XPLMI_PLM_GENERIC_CMD_ID_MASK;
	switch (ModuleCmdId) {
		case XPLMI_PLM_GENERIC_EVENT_LOGGING_VAL:
			if (XPLMI_CMD_SECURE == IpiReqType) {
				Status = XST_SUCCESS;
			}
			break;
		default:
			Status = XST_SUCCESS;
			break;
	}
	return Status;
}
static int XPlmi_CheckIpiAccess ( u32 CmdId , u32 IpiReqType ) { int Status = XST_FAILURE ; u32 ModuleCmdId = CmdId & XPLMI_PLM_GENERIC_CMD_ID_MASK ; switch ( ModuleCmdId ) { case XPLMI_PLM_GENERIC_EVENT_LOGGING_VAL : if ( XPLMI_CMD_SECURE == IpiReqType ) { Status = XST_SUCCESS ; } break ; default : Status = XST_SUCCESS ; break ; } return Status ; }
@brief       This function checks if the IPI command is accessible or not
 @param       CmdId is the Command ID
 @param       IpiReqType is the IPI command request type
@brief This function checks if the IPI command is accessible or not @param CmdId is the Command ID @param IpiReqType is the IPI command request type
/* Secure check for PLMI IPI commands */ /*
		 * Check IPI request type for Event Logging IPI command
		 * and allow access only if the request is secure
		 */ /* Allow access for all other IPI commands */