int RxFIFOEnabled;	/* TRUE if Rx FIFO enabled */ 
int RxFIFOEnabled;	/* 1 if Rx FIFO enabled */ 
void sFlushRxFIFO(CHANNEL_T * ChP){	int i;	Byte_t Ch;		/* channel number within AIOP */	int RxFIFOEnabled;	/* TRUE if Rx FIFO enabled */	if (sGetRxCnt(ChP) == 0)	/* Rx FIFO empty */		return;		/* don't need to flush */	RxFIFOEnabled = FALSE;	if (ChP->R[0x32] == 0x08) {	/* Rx FIFO is enabled */		RxFIFOEnabled = TRUE;		sDisRxFIFO(ChP);	/* disable it */		for (i = 0; i < 2000 / 200; i++)	/* delay 2 uS to allow proc to disable FIFO */			sInB(ChP->IntChan);	/* depends on bus i/o timing */	}	sGetChanStatus(ChP);	/* clear any pending Rx errors in chan stat */	Ch = (Byte_t) sGetChanNum(ChP);	sOutB(ChP->Cmd, Ch | RESRXFCNT);	/* apply reset Rx FIFO count */	sOutB(ChP->Cmd, Ch);	/* remove reset Rx FIFO count */	sOutW((WordIO_t) ChP->IndexAddr, ChP->RxFIFOPtrs);	/* clear Rx out ptr */	sOutW(ChP->IndexData, 0);	sOutW((WordIO_t) ChP->IndexAddr, ChP->RxFIFOPtrs + 2);	/* clear Rx in ptr */	sOutW(ChP->IndexData, 0);	if (RxFIFOEnabled)		sEnRxFIFO(ChP);	/* enable Rx FIFO */}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/f15313bf42337ade55376303932d8b6a62e6be43/rocket.c/buggy/drivers/char/rocket.c