XilinxProcessorIPLib/drivers/clockps/src/xclockps_divider.c
static XStatus XClock_DivFetchParent(XClock_Types *NodeType, u8 *DivIndex)
{
	/* Validate Args */
	XCLOCK_VALIDATE_PTR(NodeType);
	XCLOCK_VALIDATE_PTR(DivIndex);
	XCLOCK_VALIDATE_INDEX(DIVIDER, *DivIndex);

	*NodeType = (XClock_Types)XCLOCK_FETCH_PARENT_TYPE(Dividers[*DivIndex].Parent);
	*DivIndex = XCLOCK_FETCH_PARENT_INDEX(Dividers[*DivIndex].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	DivIndex 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_DivFetchParent(XClock_Types *NodeType, u8 *DivIndex)
{
	XCLOCK_VALIDATE_PTR(NodeType);
	XCLOCK_VALIDATE_PTR(DivIndex);
	XCLOCK_VALIDATE_INDEX(DIVIDER, *DivIndex);
	*NodeType = (XClock_Types)XCLOCK_FETCH_PARENT_TYPE(Dividers[*DivIndex].Parent);
	*DivIndex = XCLOCK_FETCH_PARENT_INDEX(Dividers[*DivIndex].Parent);
	return XST_SUCCESS;
}
static XStatus XClock_DivFetchParent ( XClock_Types * NodeType , u8 * DivIndex ) { XCLOCK_VALIDATE_PTR ( NodeType ) ; XCLOCK_VALIDATE_PTR ( DivIndex ) ; XCLOCK_VALIDATE_INDEX ( DIVIDER , * DivIndex ) ; * NodeType = ( XClock_Types ) XCLOCK_FETCH_PARENT_TYPE ( Dividers [ * DivIndex ] . Parent ) ; * DivIndex = XCLOCK_FETCH_PARENT_INDEX ( Dividers [ * DivIndex ] . 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 */