XilinxProcessorIPLib/drivers/devcfg/src/xdevcfg.c
void XDcfg_SetMiscControlRegister(XDcfg *InstancePtr, u32 Mask)
{
	u32 RegData;

	/*
	 * Assert the arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);


	RegData = XDcfg_ReadReg(InstancePtr->Config.BaseAddr,
					XDCFG_MCTRL_OFFSET);

	XDcfg_WriteReg(InstancePtr->Config.BaseAddr, XDCFG_MCTRL_OFFSET,
				(RegData | Mask));
}
/****************************************************************************/
/**
*
* The function sets the bit mask for the feature in Miscellaneous Control
* Register.
*
* @param	InstancePtr is a pointer to the XDcfg instance.
* @param	Mask is the bit-mask of the feature to be set.
*
* @return	None.
*
* @note		None
*
*****************************************************************************/
The function sets the bit mask for the feature in Miscellaneous Control
Register.
The function sets the bit mask for the feature in Miscellaneous Control Register .
void XDcfg_SetMiscControlRegister(XDcfg *InstancePtr, u32 Mask)
{
	u32 RegData;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	RegData = XDcfg_ReadReg(InstancePtr->Config.BaseAddr,
					XDCFG_MCTRL_OFFSET);
	XDcfg_WriteReg(InstancePtr->Config.BaseAddr, XDCFG_MCTRL_OFFSET,
				(RegData | Mask));
}
void XDcfg_SetMiscControlRegister ( XDcfg * InstancePtr , u32 Mask ) { u32 RegData ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; RegData = XDcfg_ReadReg ( InstancePtr -> Config . BaseAddr , XDCFG_MCTRL_OFFSET ) ; XDcfg_WriteReg ( InstancePtr -> Config . BaseAddr , XDCFG_MCTRL_OFFSET , ( RegData | Mask ) ) ; }
The function sets the bit mask for the feature in Miscellaneous Control
Register.
The function sets the bit mask for the feature in Miscellaneous Control Register .
/*
	 * Assert the arguments.
	 */