/* Return TRUE is we are currently receiving a frame  */
static int w83977af_is_receiving(struct w83977af_ir *self)
/* Return TRUE is we are currently receiving a frame  */
static int w83977af_is_receiving(struct w83977af_ir *self)
{
	int status = FALSE;
	int iobase;
	__u8 set;
	IRDA_ASSERT(self != NULL, return FALSE;);
	if (self->io.speed > 115200) {
		iobase = self->io.fir_base;
		set = inb(iobase+SSR);
		switch_bank(iobase, SET2);
		if ((inb(iobase+RXFDTH) & 0x3f) != 0) {
			status =  TRUE;
		}
		outb(set, iobase+SSR);
	} else 
		status = (self->rx_buff.state != OUTSIDE_FRAME);
	return status;
}