예제 #1
0
/*
 * Function async_unwrap_char (tty, rx_buff, byte)
 * arguments:
 *	tty->
 *	*rx_buf		O Receive data buffeer
 *	byte		I Receive byte
 */
void async_unwrap_char_tty(struct tty_struct *tty,
			   iobuff_t *rx_buff, __u8 byte)
{
	switch(byte) {
	case CE:
		async_unwrap_ce(tty, rx_buff, byte);
		break;
	case BOF:
		async_unwrap_bof(tty, rx_buff, byte);
		break;
	case EOF:
		async_unwrap_eof(tty, rx_buff, byte);
		break;
	default:
		async_unwrap_other(tty, rx_buff, byte);
		break;
	}
}
예제 #2
0
/*
 * Function async_unwrap_char (dev, rx_buff, byte)
 *
 *    Parse and de-stuff frame received from the IrDA-port
 *
 * This is the main entry point for SIR drivers.
 */
void async_unwrap_char(struct net_device *dev,
		       struct net_device_stats *stats,
		       iobuff_t *rx_buff, __u8 byte)
{
	switch(byte) {
	case CE:
		async_unwrap_ce(dev, stats, rx_buff, byte);
		break;
	case BOF:
		async_unwrap_bof(dev, stats, rx_buff, byte);
		break;
	case EOF:
		async_unwrap_eof(dev, stats, rx_buff, byte);
		break;
	default:
		async_unwrap_other(dev, stats, rx_buff, byte);
		break;
	}
}