TxEnabled = FALSE; 
TxEnabled = 0; 
void sFlushTxFIFO(CHANNEL_T * ChP){	int i;	Byte_t Ch;		/* channel number within AIOP */	int TxEnabled;		/* TRUE if transmitter enabled */	if (sGetTxCnt(ChP) == 0)	/* Tx FIFO empty */		return;		/* don't need to flush */	TxEnabled = FALSE;	if (ChP->TxControl[3] & TX_ENABLE) {		TxEnabled = TRUE;		sDisTransmit(ChP);	/* disable transmitter */	}	sStopRxProcessor(ChP);	/* stop Rx processor */	for (i = 0; i < 4000 / 200; i++)	/* delay 4 uS to allow proc to stop */		sInB(ChP->IntChan);	/* depends on bus i/o timing */	Ch = (Byte_t) sGetChanNum(ChP);	sOutB(ChP->Cmd, Ch | RESTXFCNT);	/* apply reset Tx FIFO count */	sOutB(ChP->Cmd, Ch);	/* remove reset Tx FIFO count */	sOutW((WordIO_t) ChP->IndexAddr, ChP->TxFIFOPtrs);	/* clear Tx in/out ptrs */	sOutW(ChP->IndexData, 0);	if (TxEnabled)		sEnTransmit(ChP);	/* enable transmitter */	sStartRxProcessor(ChP);	/* restart Rx processor */}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/f15313bf42337ade55376303932d8b6a62e6be43/rocket.c/buggy/drivers/char/rocket.c