On Tue, Aug 15, 2006 at 01:35:17PM -0300, Ulises wrote: > Hi All, > I'm starting to develop a serial driver for a Bar Code Reader. Why do you need a new one? Doesn't the kernel serial driver work for you? > My questions is: Which is the relationship between the tty driver and > the uart driver? A uart driver controls the hardware, which talks to the serial core, which talks to the tty layer (the serial core is a tty driver). > For instance, take a look of serial_core.c > (http://lxr.linux.no/source/drivers/serial/serial_core.c#L2059).Both are > related but I cannot understand the relationship and which one you > should use in which case. > To register a serial device driver should I use: tty_register_driver() > or uart_register_driver ? Depends on what exactly your hardware looks like. If it is a uart like chip, use the serial core. Otherwise, use the tty core. But I'm really supprised that we don't support your device already, what kind is it? thanks, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/