XilinxProcessorIPLib/drivers/nandps/src/xnandps.c
static int XNandPs_IsBusy(XNandPs *InstancePtr)
{
	u32 Status;

	/*
	 * Read the memory controller status register
	 */
	Status = XNandPs_ReadReg(InstancePtr->Config.SmcBase +
			XNANDPS_MEMC_STATUS_OFFSET) &
		XNANDPS_MEMC_STATUS_RAW_INT_STATUS1_MASK;

	if (Status) {
		return FALSE;
	} else {
		return TRUE;
	}
}
/*****************************************************************************/
/**
*
* This function checks whether SMC controller busy in processing a request.
*
* @param	InstancePtr is a pointer to the XNandPs instance.
*
* @return	- TRUE if SMC is busy
*		- FALSE if SMC is free
*
* @note		None.
*
******************************************************************************/
This function checks whether SMC controller busy in processing a request.
This function checks whether SMC controller busy in processing a request .
static int XNandPs_IsBusy(XNandPs *InstancePtr)
{
	u32 Status;
	Status = XNandPs_ReadReg(InstancePtr->Config.SmcBase +
			XNANDPS_MEMC_STATUS_OFFSET) &
		XNANDPS_MEMC_STATUS_RAW_INT_STATUS1_MASK;
	if (Status) {
		return FALSE;
	} else {
		return TRUE;
	}
}
static int XNandPs_IsBusy ( XNandPs * InstancePtr ) { u32 Status ; Status = XNandPs_ReadReg ( InstancePtr -> Config . SmcBase + XNANDPS_MEMC_STATUS_OFFSET ) & XNANDPS_MEMC_STATUS_RAW_INT_STATUS1_MASK ; if ( Status ) { return FALSE ; } else { return TRUE ; } }
This function checks whether SMC controller busy in processing a request.
This function checks whether SMC controller busy in processing a request .
/*
	 * Read the memory controller status register
	 */