/* fifo_icap_flush_fifo - This function flushes the FIFOs in the device. @drvdata: a pointer to the drvdata.  */
void fifo_icap_flush_fifo(struct hwicap_drvdata *drvdata)
/* fifo_icap_flush_fifo - This function flushes the FIFOs in the device. @drvdata: a pointer to the drvdata.  */
void fifo_icap_flush_fifo(struct hwicap_drvdata *drvdata)
{
	u32 reg_data;
	reg_data = in_be32(drvdata->base_address + XHI_CR_OFFSET);
	out_be32(drvdata->base_address + XHI_CR_OFFSET,
				reg_data | XHI_CR_FIFO_CLR_MASK);
	out_be32(drvdata->base_address + XHI_CR_OFFSET,
				reg_data & (~XHI_CR_FIFO_CLR_MASK));
}