/*******************************************************************************
* mvXorWinInit
*
* DESCRIPTION:
*   This function sets the default address decode windows of the unit.
*   Note that if the address window is disabled in xorAddrDecMap, the
*   window parameters will be set but the window will remain disabled.
*
* INPUT:
*       None.
*
* OUTPUT:
*       None.
*
* RETURN:
*       MV_BAD_PARAM if parameters to function invalid, MV_OK otherwise.
*******************************************************************************/
MV_STATUS mvXorWinInit(MV_UNIT_WIN_INFO *addrWinMap)
{
	MV_U32 i;

	/* Initiate XOR address decode */
	for (i = 0; i < MV_XOR_MAX_UNIT; i++)
		mvXorInitWinsUnit(i, addrWinMap);

	return MV_OK;
}
Exemple #2
0
/*******************************************************************************
* mvXorInit - Initialize XOR engine
*
* DESCRIPTION:
*		This function initialize XOR unit. It set the default address decode
*		windows of the unit.
*		Note that if the address window is disabled in xorAddrDecMap, the
*		window parameters will be set but the window will remain disabled.
*
* INPUT:
*       None.
*
* OUTPUT:
*       None.
*
* RETURN:
*       MV_BAD_PARAM if parameters to function invalid, MV_OK otherwise.
*******************************************************************************/
MV_STATUS mvXorInit (MV_VOID)
{
	MV_U32         i;

	/* Initiate XOR address decode */
	for(i = 0; i < MV_XOR_MAX_UNIT; i++)
	    mvXorInitWinsUnit(i);

	mvXorHalInit(MV_XOR_MAX_CHAN);	
    
	return MV_OK;
}