On the transfer of data from the uart.c driver to the tty layer...

Alejandro C alexfestss at hotmail.com
Wed Sep 6 00:56:28 EST 2006

Hi all,

I'm working on a the uart.c driver to add support for SCCs in HDLC mode. The 
application I'm going to run on top will be sending Ethernet packets 
encapsulated in the data field of an HDLC frame. The idea was to make the 
buffer big enough so that a whole Eth. packet (max 1518 octects) could fit 
in just one buffer. I let the CPM interrupt on a frame basis and the problem 
I've come across is that the receive buffer in the struct tty_struct, where 
the tty layer collects the data from the driver 
(tty_struct.tty_flip_buffer.char_buf), is only 1024 bytes 
(2*TTY_FLIPBUF_SIZE). The easiest at this stage would be to make those 
buffers larger, but I don't know what sort of impact this might have... Any 
Any ideas on how to solve it in another fashion?

Help will be highly appreciated.



Acepta el reto MSN Premium: Correos más divertidos con fotos y textos 
increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. 

More information about the Linuxppc-dev mailing list