XilinxProcessorIPLib/drivers/clockps/src/xclockps_mux.c
static XStatus XClock_MuxFetchParent(XClock_Types *NodeType, u8 *MuxIndex)
{
	u16 Parent;

	/* Validate Args */
	XCLOCK_VALIDATE_PTR(NodeType);
	XCLOCK_VALIDATE_PTR(MuxIndex);
	XCLOCK_VALIDATE_INDEX(MUX, *MuxIndex);

	Parent = Muxes[*MuxIndex].Parent[Muxes[*MuxIndex].ActiveParent];

	*NodeType = (XClock_Types)XCLOCK_FETCH_PARENT_TYPE(Parent);
	*MuxIndex = XCLOCK_FETCH_PARENT_INDEX(Parent);

	return XST_SUCCESS;
}
/*****************************************************************************/
/*
*
* This function fetchs the parent based on index in database.
*
* @param	ClockId is the identifier for output clock.
* @param	NodeType is the pointer holding type of the node.
* @param	MuxIndex is the pointer holding index of parent in database.
*
* @return	XST_SUCCESS if successful.
*		XST_INVALID_PARAM if output clock mapping not found.
*
* @note		None.
*
******************************************************************************/
This function fetchs the parent based on index in database.
This function fetchs the parent based on index in database .
static XStatus XClock_MuxFetchParent(XClock_Types *NodeType, u8 *MuxIndex)
{
	u16 Parent;
	XCLOCK_VALIDATE_PTR(NodeType);
	XCLOCK_VALIDATE_PTR(MuxIndex);
	XCLOCK_VALIDATE_INDEX(MUX, *MuxIndex);
	Parent = Muxes[*MuxIndex].Parent[Muxes[*MuxIndex].ActiveParent];
	*NodeType = (XClock_Types)XCLOCK_FETCH_PARENT_TYPE(Parent);
	*MuxIndex = XCLOCK_FETCH_PARENT_INDEX(Parent);
	return XST_SUCCESS;
}
static XStatus XClock_MuxFetchParent ( XClock_Types * NodeType , u8 * MuxIndex ) { u16 Parent ; XCLOCK_VALIDATE_PTR ( NodeType ) ; XCLOCK_VALIDATE_PTR ( MuxIndex ) ; XCLOCK_VALIDATE_INDEX ( MUX , * MuxIndex ) ; Parent = Muxes [ * MuxIndex ] . Parent [ Muxes [ * MuxIndex ] . ActiveParent ] ; * NodeType = ( XClock_Types ) XCLOCK_FETCH_PARENT_TYPE ( Parent ) ; * MuxIndex = XCLOCK_FETCH_PARENT_INDEX ( Parent ) ; return XST_SUCCESS ; }
This function fetchs the parent based on index in database.
This function fetchs the parent based on index in database .
/* Validate Args */